Class SpatialReference
java.lang.Object
com.eco.bio7.gdal.SpatialReference
- All Implemented Interfaces:
AutoCloseable
A coordinate reference system of GDAL (OGRSpatialReference). The axis order
is the traditional one of GIS (x = easting or longitude, y = northing or
latitude), also for EPSG:4326. Close it after use.
-
Method Summary
Modifier and TypeMethodDescriptionThe authority and code (e.g., "EPSG:32632"), null if unknown.voidclose()static SpatialReferencefromEpsg(int code) A coordinate system of the EPSG database (e.g., 4326 for WGS84 longitude/latitude).static SpatialReferencefromUserInput(String definition) A coordinate system of a definition: "EPSG:32632", WKT, a PROJ string, "WGS84", a file with a definition, ...static SpatialReferenceA coordinate system of a WKT definition.booleanbooleanname()The name (e.g., "WGS 84 / UTM zone 32N").toProj4()toString()toWkt()transformTo(SpatialReference target) The transformation of coordinates of this system into the target system.
-
Method Details
-
fromEpsg
A coordinate system of the EPSG database (e.g., 4326 for WGS84 longitude/latitude). -
fromWkt
A coordinate system of a WKT definition. -
fromUserInput
A coordinate system of a definition: "EPSG:32632", WKT, a PROJ string, "WGS84", a file with a definition, ... -
toWkt
-
toPrettyWkt
-
toProj4
-
name
The name (e.g., "WGS 84 / UTM zone 32N"). -
authority
The authority and code (e.g., "EPSG:32632"), null if unknown. -
isGeographic
public boolean isGeographic() -
isProjected
public boolean isProjected() -
transformTo
The transformation of coordinates of this system into the target system. Close it after use. -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
toString
-