Package org.geotools.gml2
Enum Class SrsSyntax
- All Implemented Interfaces:
Serializable
,Comparable<SrsSyntax>
,Constable
Enumeration describing the syntax to use for an srsName URI.
- Author:
- Justin Deoliveira, OpenGeo
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCommonly used syntax outside of gml that follows the form:Deprecated, please useAUTH_CODE
insteadNewest form from OGC using a url syntax of the form:First form of url syntax used by GML 2.1.2 that follows the form:Revised form of urn syntax used by GML 3 that follows the form:First form of urn syntax used by GML 3 that follows the form: -
Method Summary
Modifier and TypeMethodDescriptionPrefix used by this syntax.Expects either an identifier in the form of "authority:code", or just a code.abstract String
static SrsSyntax
Returns the enum constant of this class with the specified name.static SrsSyntax[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EPSG_CODE
Deprecated, please useAUTH_CODE
insteadEPSG:1234
. -
AUTH_CODE
Commonly used syntax outside of gml that follows the form:EPSG:1234
. -
OGC_HTTP_URL
First form of url syntax used by GML 2.1.2 that follows the form:http://www.opengis.net/gml/srs/epsg.xml#1234
. -
OGC_URN_EXPERIMENTAL
First form of urn syntax used by GML 3 that follows the form:urn:x-ogc:def:crs:EPSG:1234
. -
OGC_URN
Revised form of urn syntax used by GML 3 that follows the form:urn:ogc:def:crs:EPSG::1234
. -
OGC_HTTP_URI
Newest form from OGC using a url syntax of the form:"http://www.opengis.net/def/crs/EPSG/0/1234
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getPrefix
Prefix used by this syntax. Please use getSRS instead, in order to build a full URI, the prefix assumes a fixed EPSG authority. -
getSRS
-
getSRS
Expects either an identifier in the form of "authority:code", or just a code. If just a code then the "EPSG" authority is assumed.- Parameters:
identifier
-- Returns:
-