public class Sinusoidal extends ProjectionImpl
atts, defaultMapArea, EARTH_RADIUS, INDEX_LAT, INDEX_LON, INDEX_X, INDEX_Y, isLatLon, name, PI, PI_OVER_2, PI_OVER_4, TOLERANCE
Constructor and Description |
---|
Sinusoidal()
Constructor with default parameters
|
Sinusoidal(double centMeridian,
double false_easting,
double false_northing,
double radius)
Construct a Sinusoidal 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.
|
double |
getCentMeridian()
Get the central Meridian in degrees
|
double |
getEarthRadius() |
double |
getFalseEasting()
Get the false easting, in km.
|
double |
getFalseNorthing()
Get the false northing, in km.
|
java.util.List<ProjectionPoint> |
getMapEdgeIntercepts(ProjectionRect projBB)
Returns the points at which
projBB intersects the map edge. |
java.util.List<ProjectionPoint> |
getMapEdgeInterceptsAtX(double x0)
Returns the points at which the line
x = x0 intersects the map edge. |
java.util.List<ProjectionPoint> |
getMapEdgeInterceptsAtY(double y0)
Returns the points at which the line
y = y0 intersects the map edge. |
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
|
LatLonRect |
projToLatLonBB(ProjectionRect projBB)
Compute lat/lon bounding box from projection bounding box by finding the minimum enclosing box.
|
void |
setCentMeridian(double centMeridian)
Set the central Meridian
|
void |
setFalseEasting(double falseEasting)
Set the false_easting, in km.
|
void |
setFalseNorthing(double falseNorthing)
Set the false northing, in km.
|
java.lang.String |
toString()
Get a String representation of this projection.
|
addParameter, addParameter, addParameter, findProjectionParameter, getClassName, getDefaultMapArea, getDefaultMapAreaLL, getHeader, getName, getProjectionParameters, getProjectionTypeLabel, isLatLon, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProj, latLonToProjBB, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLon, projToLatLonBBold, setDefaultMapArea, setName
public Sinusoidal()
public Sinusoidal(double centMeridian, double false_easting, double false_northing, double radius)
centMeridian
- central Meridian (degrees)false_easting
- false_easting in kmfalse_northing
- false_northing in kmradius
- earth radius in kmpublic ProjectionImpl constructCopy()
ProjectionImpl
constructCopy
in class ProjectionImpl
public double getCentMeridian()
public double getFalseEasting()
public double getFalseNorthing()
public double getEarthRadius()
public void setCentMeridian(double centMeridian)
centMeridian
- central Meridian in degreespublic void setFalseEasting(double falseEasting)
falseEasting
- x offsetpublic void setFalseNorthing(double falseNorthing)
falseNorthing
- y offsetpublic 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 java.lang.String toString()
ProjectionImpl
toString
in class ProjectionImpl
public java.lang.String paramsToString()
paramsToString
in interface Projection
paramsToString
in class ProjectionImpl
public 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 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 LatLonRect projToLatLonBB(ProjectionRect projBB)
ProjectionImpl
projToLatLonBB
in class ProjectionImpl
projBB
- projection bounding boxpublic java.util.List<ProjectionPoint> getMapEdgeIntercepts(ProjectionRect projBB)
projBB
intersects the map edge.projBB
- defines a bounding box that may intersect the map edge, in projection coordinates.projBB
intersects the map edge. May be empty.public java.util.List<ProjectionPoint> getMapEdgeInterceptsAtX(double x0)
x = x0
intersects the map edge.x0
- defines a line that may intersect the map edge, in projection coordinates.x = x0
intersects the map edge. May be empty.public java.util.List<ProjectionPoint> getMapEdgeInterceptsAtY(double y0)
y = y0
intersects the map edge.y0
- defines a line that intersects the map edge, in projection coordinates.y = y0
intersects the map edge. May be empty.