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(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.
|
List<ProjectionPoint> |
getMapEdgeIntercepts(ProjectionRect projBB)
Returns the points at which
projBB intersects the map edge. |
List<ProjectionPoint> |
getMapEdgeInterceptsAtX(double x0)
Returns the points at which the line
x = x0 intersects the map edge. |
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
|
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.
|
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, setNamepublic 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()
ProjectionImplconstructCopy in class ProjectionImplpublic 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(Object o)
ProjectionImplequals in interface Projectionequals in class ProjectionImplo - projection in questionpublic String toString()
ProjectionImpltoString in class ProjectionImplpublic String paramsToString()
paramsToString in interface ProjectionparamsToString in class ProjectionImplpublic boolean crossSeam(ProjectionPoint pt1, ProjectionPoint pt2)
crossSeam in interface ProjectioncrossSeam in class ProjectionImplpt1 - the line goes between these two pointspt2 - the line goes between these two pointspublic ProjectionPoint latLonToProj(LatLonPoint latLon, ProjectionPointImpl result)
latLonToProj in interface ProjectionlatLonToProj in class ProjectionImpllatLon - convert from these lat, lon coordinatesresult - the object to write topublic LatLonPoint projToLatLon(ProjectionPoint world, LatLonPointImpl result)
projToLatLon in interface ProjectionprojToLatLon in class ProjectionImplworld - convert from these projection coordinatesresult - the object to write topublic LatLonRect projToLatLonBB(ProjectionRect projBB)
ProjectionImplprojToLatLonBB in class ProjectionImplprojBB - projection bounding boxpublic 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 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 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.