public final class CrsHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PLATE_CARREE_CRS_CODE |
static List<String> |
SUPPORTED_CRS_CODES |
| Modifier and Type | Method and Description |
|---|---|
ucar.unidata.geoloc.LatLonPoint |
crsToLatLon(double x,
double y)
Transforms the given x-y point in this
CRS to a LatLonPoint. |
ucar.unidata.geoloc.LatLonPoint |
crsToLatLon(ucar.unidata.geoloc.ProjectionPoint point)
Transforms the given x-y point in this
CRS to a LatLonPoint. |
static CrsHelper |
fromCrsCode(String crsCode) |
org.opengis.referencing.crs.CoordinateReferenceSystem |
getCoordinateReferenceSystem() |
boolean |
isLatLon() |
boolean |
isPointValidForCrs(double x,
double y) |
boolean |
isPointValidForCrs(ucar.unidata.geoloc.ProjectionPoint point) |
ucar.unidata.geoloc.ProjectionPoint |
latLonToCrs(double longitude,
double latitude)
Transforms the given longitude-latitude point to an x-y point in this
CRS. |
ucar.unidata.geoloc.ProjectionPoint |
latLonToCrs(ucar.unidata.geoloc.LatLonPoint latLonPoint)
Transforms the given LatLonPoint to an x-y point in this
CRS. |
static void |
main(String[] args) |
public static final String PLATE_CARREE_CRS_CODE
public org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
public boolean isPointValidForCrs(ucar.unidata.geoloc.ProjectionPoint point)
public boolean isPointValidForCrs(double x,
double y)
public ucar.unidata.geoloc.LatLonPoint crsToLatLon(double x,
double y)
throws org.opengis.referencing.operation.TransformException
CRS to a LatLonPoint.org.opengis.referencing.operation.TransformException - if the required transformation could not be performedpublic ucar.unidata.geoloc.LatLonPoint crsToLatLon(ucar.unidata.geoloc.ProjectionPoint point)
throws org.opengis.referencing.operation.TransformException
CRS to a LatLonPoint.org.opengis.referencing.operation.TransformException - if the required transformation could not be performedpublic ucar.unidata.geoloc.ProjectionPoint latLonToCrs(ucar.unidata.geoloc.LatLonPoint latLonPoint)
throws org.opengis.referencing.operation.TransformException
CRS.org.opengis.referencing.operation.TransformException - if the required transformation could not be performedpublic ucar.unidata.geoloc.ProjectionPoint latLonToCrs(double longitude,
double latitude)
throws org.opengis.referencing.operation.TransformException
CRS.org.opengis.referencing.operation.TransformException - if the required transformation could not be performedpublic boolean isLatLon()
Copyright © 2018. All Rights Reserved.