|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.di.core.geospatial.SRS
public class SRS
This class stores meta-data for a spatial reference system. It also contains
factory methods to create CoordinateReferenceSystem
instances from a
SRS
object.
SRSFactory
Field Summary | |
---|---|
static String |
AUTH_EPSG
The code for the EPSG authority |
String |
authority
Mandatory: The authority |
String |
description
Mandatory: The description of this SRS instance |
boolean |
is_custom
Mandatory: Indicates, if this SRS is custom defined |
String |
srid
Mandatory: The SRID as a String. |
static SRS |
UNKNOWN
|
static int |
UNKNOWN_SRID
|
static String |
XML_AUTH
|
static String |
XML_CUST
|
static String |
XML_DESC
|
static String |
XML_SRID
|
static String |
XML_WKT
|
Constructor Summary | |
---|---|
SRS(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Creates a new instance of SRS according to an existing
CoordinateReferenceSystem object. |
|
SRS(File prjFile)
|
|
SRS(String wkt)
Creates a new instance of SRS according to a WKT definition
This is a convenience constructor. |
|
SRS(String authority,
String srid,
String description)
Creates a new instance of SRS by defining authority, srid and
and description. |
|
SRS(String authority,
String srid,
String description,
boolean is_custom,
String wkt)
Helper constructor for SRSFactory |
|
SRS(String authority,
String srid,
String description,
org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Creates a new instance of SRS by defining all necessary attributes
manually. |
Method Summary | |
---|---|
Object |
clone()
|
int |
compareTo(SRS other)
|
static SRS |
createFromEPSG(String srid)
|
boolean |
equals(Object obj)
|
org.opengis.referencing.crs.CoordinateReferenceSystem |
getCRS()
Creates a CoordinateReferenceSystem object from the existing properties
in this object. |
int |
getSRID()
Get the SRID for the corresponding CoordinateReferenceSystem . |
String |
getXML()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final String authority
public final String srid
public final String description
SRS
instance
public boolean is_custom
SRS
is custom defined
public static final String XML_AUTH
public static final String XML_SRID
public static final String XML_DESC
public static final String XML_CUST
public static final String XML_WKT
public static final SRS UNKNOWN
public static final int UNKNOWN_SRID
public static final String AUTH_EPSG
Constructor Detail |
---|
public SRS(String authority, String srid, String description, org.opengis.referencing.crs.CoordinateReferenceSystem crs)
SRS
by defining all necessary attributes
manually.
authority
- The authority e.g. EPSG.srid
- The spatial reference system identifier.description
- A description text of this spatial reference system.crs
- The CoordinateReferenceSystempublic SRS(String authority, String srid, String description)
SRS
by defining authority, srid and
and description.
authority
- The authority e.g. EPSG.srid
- The spatial reference system identifier.description
- A description text of this spatial reference system.public SRS(org.opengis.referencing.crs.CoordinateReferenceSystem crs) throws KettleStepException
SRS
according to an existing
CoordinateReferenceSystem
object.
crs
- The CoordinateReferenceSystem
object.
KettleStepException
public SRS(String wkt) throws KettleStepException
SRS
according to a WKT definition
This is a convenience constructor.
wkt
- The WKT string
KettleStepException
public SRS(File prjFile)
public SRS(String authority, String srid, String description, boolean is_custom, String wkt) throws KettleException
authority
- srid
- description
- is_custom
- wkt
-
KettleException
Method Detail |
---|
public int getSRID()
CoordinateReferenceSystem
.
Note: For GUI operations that must be performed fast, use the public
property srid
instead.
crs
- CRS to map to an EPSG code.
SRS.UNKNOWN_SRID
otherwise.public org.opengis.referencing.crs.CoordinateReferenceSystem getCRS() throws KettleStepException
CoordinateReferenceSystem
object from the existing properties
in this object. The CRS will only be created, if needed, otherwise the existing
instance will be returned.
CoordinateReferenceSystem
.
KettleStepException
public int compareTo(SRS other)
compareTo
in interface Comparable<SRS>
public Object clone()
clone
in class Object
public boolean equals(Object obj)
equals
in class Object
public String getXML()
getXML
in interface XMLInterface
public static SRS createFromEPSG(String srid)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |