public class ProjectionAdapter extends ProjectionImpl
Projection
,
ProjectionImpl
,
Serialized Formatts, defaultMapArea, EARTH_RADIUS, INDEX_LAT, INDEX_LON, INDEX_X, INDEX_Y, isLatLon, name, PI, PI_OVER_2, PI_OVER_4, TOLERANCE
Constructor and Description |
---|
ProjectionAdapter(Projection proj)
Create a new ProjectionImpl from a Projection
|
Modifier and Type | Method and Description |
---|---|
ProjectionImpl |
constructCopy()
copy constructor - avoid clone !!
|
boolean |
crossSeam(ProjectionPoint pt1,
ProjectionPoint pt2)
Does the line between these two points cross the projection "seam".
|
boolean |
equals(java.lang.Object o)
Returns true if this represents the same Projection as proj.
|
static ProjectionImpl |
factory(Projection proj)
Create a ProjectionImpl from the projection
|
java.lang.String |
getClassName()
Get the class name
|
ProjectionRect |
getDefaultMapArea()
Get a reasonable bounding box for this projection.
|
int |
hashCode() |
ProjectionPoint |
latLonToProj(LatLonPoint latlon,
ProjectionPointImpl result)
Convert a LatLonPoint to projection coordinates
|
java.lang.String |
paramsToString()
Get the parameters as a String
|
LatLonPoint |
projToLatLon(ProjectionPoint world,
LatLonPointImpl result)
Convert projection coordinates to a LatLonPoint
Note: a new object is not created on each call for the return value.
|
addParameter, addParameter, addParameter, findProjectionParameter, getDefaultMapAreaLL, getHeader, getName, getProjectionParameters, getProjectionTypeLabel, isLatLon, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProjBB, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLonBB, projToLatLonBBold, setDefaultMapArea, setName, toString
public ProjectionAdapter(Projection proj)
proj
- projection to usepublic static ProjectionImpl factory(Projection proj)
proj
- projectionpublic ProjectionImpl constructCopy()
ProjectionImpl
constructCopy
in class ProjectionImpl
public java.lang.String getClassName()
getClassName
in interface Projection
getClassName
in class ProjectionImpl
public java.lang.String paramsToString()
paramsToString
in interface Projection
paramsToString
in class ProjectionImpl
public boolean equals(java.lang.Object o)
ProjectionImpl
equals
in interface Projection
equals
in class ProjectionImpl
o
- projection in questionpublic int hashCode()
hashCode
in class java.lang.Object
public ProjectionPoint latLonToProj(LatLonPoint latlon, ProjectionPointImpl result)
latLonToProj
in interface Projection
latLonToProj
in class ProjectionImpl
latlon
- convert from these lat, lon coordinatesresult
- the object to write topublic LatLonPoint projToLatLon(ProjectionPoint world, LatLonPointImpl result)
projToLatLon
in interface Projection
projToLatLon
in class ProjectionImpl
world
- convert from these projection coordinatesresult
- the object to write topublic boolean crossSeam(ProjectionPoint pt1, ProjectionPoint pt2)
crossSeam
in interface Projection
crossSeam
in class ProjectionImpl
pt1
- the line goes between these two pointspt2
- the line goes between these two pointspublic ProjectionRect getDefaultMapArea()
getDefaultMapArea
in interface Projection
getDefaultMapArea
in class ProjectionImpl