Package ucar.unidata.geoloc
Interface Projection
-
public interface Projection
Projective geometry transformations from (lat,lon) to (x,y) on a projective cartesian surface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
crossSeam(ProjectionPoint pt1, ProjectionPoint pt2)
Does the line between these two points cross the projection "seam", which is a discontinuity in the function latlon to/from projection planeString
getClassName()
The name of the implementing class.String
getName()
The name of this projection.AttributeContainer
getProjectionAttributes()
Get projection parameters.boolean
isLatLon()
Is this the lat/lon Projection?default ProjectionPoint
latLonToProj(double lat, double lon)
Convert lat, lon to Projection point.ProjectionPoint
latLonToProj(LatLonPoint latlon)
Convert a LatLonPoint to projection coordinates.ProjectionRect
latLonToProjBB(LatLonRect latlonRect)
Convert a lat/lon bounding box to a world coordinate bounding box, by finding the minimum enclosing box.default LatLonPoint
projToLatLon(double x, double y)
Convert projection x, y to LatLonPoint point.LatLonPoint
projToLatLon(ProjectionPoint ppt)
Convert projection coordinates to a LatLonPoint.LatLonRect
projToLatLonBB(ProjectionRect bb)
Compute lat/lon bounding box from projection bounding box.
-
-
-
Method Detail
-
getClassName
String getClassName()
The name of the implementing class.
-
getName
String getName()
The name of this projection.
-
isLatLon
boolean isLatLon()
Is this the lat/lon Projection?
-
latLonToProj
default ProjectionPoint latLonToProj(double lat, double lon)
Convert lat, lon to Projection point.
-
latLonToProj
ProjectionPoint latLonToProj(LatLonPoint latlon)
Convert a LatLonPoint to projection coordinates.
-
projToLatLon
default LatLonPoint projToLatLon(double x, double y)
Convert projection x, y to LatLonPoint point.
-
projToLatLon
LatLonPoint projToLatLon(ProjectionPoint ppt)
Convert projection coordinates to a LatLonPoint.
-
crossSeam
boolean crossSeam(ProjectionPoint pt1, ProjectionPoint pt2)
Does the line between these two points cross the projection "seam", which is a discontinuity in the function latlon to/from 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.
-
getProjectionAttributes
AttributeContainer getProjectionAttributes()
Get projection parameters. Add as Attributes to a Coordinate Transform Variable (ctv).
-
latLonToProjBB
ProjectionRect latLonToProjBB(LatLonRect latlonRect)
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
LatLonRect projToLatLonBB(ProjectionRect bb)
Compute lat/lon bounding box from projection bounding box.- Parameters:
bb
- projection bounding box- Returns:
- lat, lon bounding box.
-
-