Package ucar.unidata.geoloc
Interface Projection
public interface Projection
Projective geometry transformations from (lat,lon) to (x,y) on
a projective cartesian surface.
Unless it is a rotation from (lat,lon) to (lat,lon).
-
Method Summary
Modifier and TypeMethodDescriptionbooleancrossSeam(ProjectionPoint pt1, ProjectionPoint pt2) Does the line between these two points cross the projection "seam", which is a discontinuity in the function latlon <-> projection planebooleanCheck for equality with the object in questionThe name of this class of projections, eg "Transverse Mercator".getName()The name of this projection.List<ucar.unidata.util.Parameter>Get parameters as list of ucar.unidata.util.ParameterbooleanisLatLon()Is this the lat/lon Projection ?default ProjectionPointlatLonToProj(double lat, double lon) Convert lat, lon to Projection point.latLonToProj(LatLonPoint latlon) Convert a LatLonPoint to projection coordinates.latLonToProjBB(LatLonRect latlonRect) Convert a lat/lon bounding box to a world coordinate bounding box, by finding the minimum enclosing box.String representation of the projection parameters.default LatLonPointprojToLatLon(double x, double y) Convert projection x, y to LatLonPoint point.Convert projection coordinates to a LatLonPoint.
-
Method Details
-
getClassName
String getClassName()The name of this class of projections, eg "Transverse Mercator". -
getName
String getName()The name of this projection. -
isLatLon
boolean isLatLon()Is this the lat/lon Projection ? -
paramsToString
String paramsToString()String representation of the projection parameters. -
latLonToProj
Convert lat, lon to Projection point. -
latLonToProj
Convert a LatLonPoint to projection coordinates.- Parameters:
latlon- convert from these lat, lon coordinates- Returns:
- ProjectionPoint convert to these projection coordinates
-
projToLatLon
Convert projection x, y to LatLonPoint point. -
projToLatLon
Convert projection coordinates to a LatLonPoint.- Parameters:
ppt- convert from these projection coordinates- Returns:
- lat/lon coordinates
-
crossSeam
Does the line between these two points cross the projection "seam", which is a discontinuity in the function latlon <-> projection plane- Parameters:
pt1- the line goes between these two pointspt2- the line goes between these two points- Returns:
- false if there is no seam, or the line does not cross it.
-
equals
Check for equality with the object in question -
getProjectionParameters
List<ucar.unidata.util.Parameter> getProjectionParameters()Get parameters as list of ucar.unidata.util.Parameter- Returns:
- List of parameters TODO will return ImmutableList in ver6
-
latLonToProjBB
Convert a lat/lon bounding box to a world coordinate bounding box, by finding the minimum enclosing box. Handles lat/lon points that do not intersect the projection panel.- Parameters:
latlonRect- input lat,lon bounding box- Returns:
- minimum enclosing box in world coordinates, or null if no part of the LatLonRect intersects the projection plane
-