public class GeospatialUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EPSG_4326 |
static String |
EPSG_4326_URN |
static String |
LAT_LON_ORDER |
static String |
LON_LAT_ORDER |
Constructor and Description |
---|
GeospatialUtil() |
Modifier and Type | Method and Description |
---|---|
static Double |
parseDMSLatitudeWithDecimalSeconds(String dmsLat)
Parses Latitude in the DMS format of DD:MM:SS.S N/S
|
static Double |
parseDMSLongitudeWithDecimalSeconds(String dmsLon)
Parses Longitude in the DMS format of [D]DD:MM:SS.S E/W
|
static com.vividsolutions.jts.geom.Geometry |
transformToEPSG4326LonLatFormat(com.vividsolutions.jts.geom.Geometry geometry,
org.opengis.referencing.crs.CoordinateReferenceSystem sourceCrs)
Transform a geometry to EPSG:4326 format with lon/lat coordinate ordering.
|
static com.vividsolutions.jts.geom.Geometry |
transformToEPSG4326LonLatFormat(com.vividsolutions.jts.geom.Geometry geometry,
String sourceCrsName)
Transform a geometry to EPSG:4326 format with lon/lat coordinate ordering.
|
public static final String EPSG_4326
public static final String EPSG_4326_URN
public static final String LAT_LON_ORDER
public static final String LON_LAT_ORDER
public static Double parseDMSLatitudeWithDecimalSeconds(String dmsLat) throws GeoFormatException
dmsLat
- Degrees Minutes Seconds formatted latitude.GeoFormatException
public static Double parseDMSLongitudeWithDecimalSeconds(String dmsLon) throws GeoFormatException
dmsLon
- Degrees Minutes Seconds formatted longitude.GeoFormatException
public static com.vividsolutions.jts.geom.Geometry transformToEPSG4326LonLatFormat(com.vividsolutions.jts.geom.Geometry geometry, String sourceCrsName) throws GeoFormatException
geometry
- - Geometry to transformsourceCrsName
- - Source geometry's coordinate reference systemGeoFormatException
public static com.vividsolutions.jts.geom.Geometry transformToEPSG4326LonLatFormat(com.vividsolutions.jts.geom.Geometry geometry, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCrs) throws GeoFormatException
geometry
- - Geometry to transformsourceCrs
- - Source geometry's coordinate reference systemGeoFormatException
This work is licensed under a Creative Commons Attribution 4.0 International License.