public class GeodesyUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EPSG_4326
OGC identifier for WGS 84 (geographic 2D)
|
static String |
OGC_CRS84
OGC identifier for WGS 84 (longitude-latitude)
|
Constructor and Description |
---|
GeodesyUtils() |
Modifier and Type | Method and Description |
---|---|
static org.opengis.geometry.DirectPosition |
calculateDestination(org.opengis.geometry.coordinate.Position startingPos,
double azimuth,
double distance)
Determines the destination position given the azimuth and distance from
some starting position.
|
static String |
getAbbreviatedCRSIdentifier(String srsName)
Returns an abbreviated identifier for the given CRS reference.
|
static String |
getCRSIdentifier(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Returns a standard OGC identifier for the given coordinate reference
system (e.g.
|
static org.geotoolkit.geometry.ImmutableEnvelope |
getDomainOfValidity(String crsRef)
Returns an immutable envelope representing the valid geographic extent of
the CRS identified by the given URI reference.
|
static com.vividsolutions.jts.geom.Coordinate[] |
transformRingToRightHandedCS(org.geotoolkit.gml.xml.AbstractRing gmlRing)
Transforms the given GML ring to a right-handed coordinate system (if it
does not already use one) and returns the resulting coordinate sequence.
|
public static final String EPSG_4326
public static final String OGC_CRS84
public static org.geotoolkit.geometry.ImmutableEnvelope getDomainOfValidity(String crsRef) throws org.opengis.util.FactoryException
crsRef
- An absolute URI that identifies a CRS definition.org.opengis.util.FactoryException
- if the CRS reference cannot be resolved to a known
definition.public static String getCRSIdentifier(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
crs
- A CoordinateReferenceSystem
object.public static org.opengis.geometry.DirectPosition calculateDestination(org.opengis.geometry.coordinate.Position startingPos, double azimuth, double distance)
startingPos
- The starting position.azimuth
- The horizontal angle measured clockwise from a meridian.distance
- The great-circle (orthodromic) distance in the same units as
the ellipsoid axis (e.g. meters for EPSG 4326).public static com.vividsolutions.jts.geom.Coordinate[] transformRingToRightHandedCS(org.geotoolkit.gml.xml.AbstractRing gmlRing)
gmlRing
- A representation of a GML ring (simple closed curve).null
if the original CRS could
not be identified.public static String getAbbreviatedCRSIdentifier(String srsName)
srsName
- An absolute URI ('http' or 'urn' scheme) that identifies a CRS
in accord with OGC 09-048r3.authority:code
".Copyright © 2014. All rights reserved.