/** * get the Projection. */ public ProjectionImpl getProjection() { return gcs.getProjection(); }
/** * get the Projection. */ public ProjectionImpl getProjection() { return gcs.getProjection(); }
/** * get the Projection. */ public ProjectionImpl getProjection() { return gcs.getProjection(); }
public LatLonPoint getLatLon(double xcoord, double ycoord) { Projection dataProjection = getProjection(); return dataProjection.projToLatLon(new ProjectionPointImpl(xcoord, ycoord), new LatLonPointImpl()); }
public LatLonPoint getLatLon(double xcoord, double ycoord) { Projection dataProjection = getProjection(); return dataProjection.projToLatLon(new ProjectionPointImpl(xcoord, ycoord), new LatLonPointImpl()); }
public LatLonPoint getLatLon(double xcoord, double ycoord) { Projection dataProjection = getProjection(); return dataProjection.projToLatLon(new ProjectionPointImpl(xcoord, ycoord), new LatLonPointImpl()); }
/** * Given a lat,lon point, find the x,y index in the coordinate system. * * @param lat latitude position. * @param lon longitude position. * @param result put result in here, may be null * @return int[2], 0=x,1=y indices in the coordinate system of the point. These will be -1 if out of range. */ @Override public int[] findXYindexFromLatLon(double lat, double lon, int[] result) { Projection dataProjection = getProjection(); ProjectionPoint pp = dataProjection.latLonToProj(new LatLonPointImpl(lat, lon), new ProjectionPointImpl()); return findXYindexFromCoord(pp.getX(), pp.getY(), result); }
/** * Given a lat,lon point, find the x,y index in the coordinate system. * If outside the range, the closest point is returned * * @param lat latitude position. * @param lon longitude position. * @param result put result in here, may be null * @return int[2], 0=x,1=y indices in the coordinate system of the point. */ @Override public int[] findXYindexFromLatLonBounded(double lat, double lon, int[] result) { Projection dataProjection = getProjection(); ProjectionPoint pp = dataProjection.latLonToProj(new LatLonPointImpl(lat, lon), new ProjectionPointImpl()); return findXYindexFromCoordBounded(pp.getX(), pp.getY(), result); }
/** * Given a lat,lon point, find the x,y index in the coordinate system. * * @param lat latitude position. * @param lon longitude position. * @param result put result in here, may be null * @return int[2], 0=x,1=y indices in the coordinate system of the point. These will be -1 if out of range. */ @Override public int[] findXYindexFromLatLon(double lat, double lon, int[] result) { Projection dataProjection = getProjection(); ProjectionPoint pp = dataProjection.latLonToProj(new LatLonPointImpl(lat, lon), new ProjectionPointImpl()); return findXYindexFromCoord(pp.getX(), pp.getY(), result); }
/** * Given a lat,lon point, find the x,y index in the coordinate system. * * @param lat latitude position. * @param lon longitude position. * @param result put result in here, may be null * @return int[2], 0=x,1=y indices in the coordinate system of the point. These will be -1 if out of range. */ @Override public int[] findXYindexFromLatLon(double lat, double lon, int[] result) { Projection dataProjection = getProjection(); ProjectionPoint pp = dataProjection.latLonToProj(new LatLonPointImpl(lat, lon), new ProjectionPointImpl()); return findXYindexFromCoord(pp.getX(), pp.getY(), result); }
/** * Given a lat,lon point, find the x,y index in the coordinate system. * If outside the range, the closest point is returned * * @param lat latitude position. * @param lon longitude position. * @param result put result in here, may be null * @return int[2], 0=x,1=y indices in the coordinate system of the point. */ @Override public int[] findXYindexFromLatLonBounded(double lat, double lon, int[] result) { Projection dataProjection = getProjection(); ProjectionPoint pp = dataProjection.latLonToProj(new LatLonPointImpl(lat, lon), new ProjectionPointImpl()); return findXYindexFromCoordBounded(pp.getX(), pp.getY(), result); }
/** * Given a lat,lon point, find the x,y index in the coordinate system. * If outside the range, the closest point is returned * * @param lat latitude position. * @param lon longitude position. * @param result put result in here, may be null * @return int[2], 0=x,1=y indices in the coordinate system of the point. */ @Override public int[] findXYindexFromLatLonBounded(double lat, double lon, int[] result) { Projection dataProjection = getProjection(); ProjectionPoint pp = dataProjection.latLonToProj(new LatLonPointImpl(lat, lon), new ProjectionPointImpl()); return findXYindexFromCoordBounded(pp.getX(), pp.getY(), result); }
double minx, maxx, miny, maxy; ProjectionImpl proj = getProjection(); if (proj != null && !(proj instanceof VerticalPerspectiveView) && !(proj instanceof MSGnavigation)) { // LOOK kludge - how to do this generrally ?? ProjectionRect prect = getProjection().latLonToProjBB(rect); // allow VerticalPerspectiveView to override minx = prect.getMinPoint().getX(); miny = prect.getMinPoint().getY();
double minx, maxx, miny, maxy; ProjectionImpl proj = getProjection(); if (proj != null && !(proj instanceof VerticalPerspectiveView) && !(proj instanceof MSGnavigation) && !(proj instanceof Geostationary)) { // LOOK kludge - how to do this generrally ?? ProjectionRect prect = getProjection().latLonToProjBB(rect); // allow projection to override minx = prect.getMinPoint().getX(); miny = prect.getMinPoint().getY();
double minx, maxx, miny, maxy; ProjectionImpl proj = getProjection(); if (proj != null && !(proj instanceof VerticalPerspectiveView) && !(proj instanceof MSGnavigation) && !(proj instanceof Geostationary)) { // LOOK kludge - how to do this generrally ?? ProjectionRect prect = getProjection().latLonToProjBB(rect); // allow projection to override minx = prect.getMinPoint().getX(); miny = prect.getMinPoint().getY();
ProjectionImpl projOrig = from.getProjection(); if (projOrig != null) { proj = projOrig.constructCopy();
ProjectionImpl projOrig = from.getProjection(); if (projOrig != null) { proj = projOrig.constructCopy();
ProjectionImpl dataProjection = getProjection(); ProjectionRect bb = getBoundingBox(); llbb = dataProjection.projToLatLonBB(bb);
ProjectionImpl dataProjection = getProjection(); ProjectionRect bb = getBoundingBox(); llbb = dataProjection.projToLatLonBB(bb);
Projection dataProjection = getProjection(); ProjectionRect bb = getBoundingBox();