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 DirectPosition |
calculateDestination(Position startingPos,
double azimuth,
double distance)
Determines the destination position given the azimuth and distance from
some starting position.
|
static String |
convertSRSNameToURN(String srsName)
Converts an srsName identifier to the corresponding URN value if it is an
'http' URI.
|
static String |
getAbbreviatedCRSIdentifier(String srsName)
Returns an abbreviated identifier for the given CRS reference.
|
static String |
getCRSIdentifier(CoordinateReferenceSystem crs)
Returns a well-known identifier (URI) for the given coordinate reference
system using the 'urn' scheme (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 void |
removeConsecutiveDuplicates(List<com.vividsolutions.jts.geom.Coordinate> coordList,
double tolerancePPM)
Checks a coordinate list for consecutive duplicate positions and removes
them.
|
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.
|
static com.vividsolutions.jts.geom.Coordinate[] |
transformRingToRightHandedCSKeepAllCoords(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 FactoryException
crsRef - An absolute URI that identifies a CRS definition.FactoryException - if the CRS reference cannot be resolved to a known
definition.public static String getCRSIdentifier(CoordinateReferenceSystem crs)
crs - A CoordinateReferenceSystem object.public static DirectPosition calculateDestination(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 com.vividsolutions.jts.geom.Coordinate[] transformRingToRightHandedCSKeepAllCoords(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".public static String convertSRSNameToURN(String srsName)
srsName - An absolute URI that identifies a CRS in accord with OGC
09-048r3.public static void removeConsecutiveDuplicates(List<com.vividsolutions.jts.geom.Coordinate> coordList, double tolerancePPM)
coordList - A list of Coordinate objects.tolerancePPM - The tolerance for comparing coordinates, in parts per million
(ppm).Copyright © 2020 Open Geospatial Consortium. All rights reserved.