|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.dataanalysis.geo.utils.CrsHelper
public final class CrsHelper
This class wraps the GeoTools/GeoAPI coordinate reference system methods, providing a set of convenience methods such as transformations and validity checks.
| Field Summary | |
|---|---|
static String |
PLATE_CARREE_CRS_CODE
|
static List<String> |
SUPPORTED_CRS_CODES
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PLATE_CARREE_CRS_CODE
public static final List<String> SUPPORTED_CRS_CODES
| Method Detail |
|---|
public static CrsHelper fromCrsCode(String crsCode)
throws Exception
Exceptionpublic 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 performed
public 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 performed
public 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 performed
public 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()
public static void main(String[] args)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||