Package ucar.unidata.geoloc
Interface Projection
- All Known Implementing Classes:
ProjectionImpl
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".Deprecated.Do not use.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.latLonToProj(LatLonPoint latlon, ProjectionPointImpl result) Deprecated.use latLonToProj(LatLonPoint latlon)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.projToLatLon(ProjectionPoint ppt, LatLonPointImpl result) Deprecated.use projToLatLon(ProjectionPoint ppt)Deprecated.use Projections.projToLatLonBB(Projection proj, ...)
-
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
Deprecated.use latLonToProj(LatLonPoint latlon) -
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
Deprecated.use projToLatLon(ProjectionPoint ppt) -
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.
-
getDefaultMapArea
Deprecated.Do not use.Get a reasonable bounding box in this projection. Projections are typically specific to an area of the world; theres no bounding box that works for all projections.- Returns:
- a reasonable bounding box in this projection.
-
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
-
projToLatLonBB
Deprecated.use Projections.projToLatLonBB(Projection proj, ...)Compute lat/lon bounding box from projection bounding box.- Parameters:
bb- projection bounding box- Returns:
- lat, lon bounding box.
-