public class WKTPreferencesCRSFactory
extends org.geotools.referencing.factory.AbstractAuthorityFactory
implements org.opengis.referencing.crs.CRSAuthorityFactory
Modifier and Type | Field and Description |
---|---|
static String |
AUTHORITY
The authority
|
static String |
AUTHORITY_PREFIX
The authority prefix
|
protected org.opengis.referencing.crs.CRSFactory |
crsFactory
CRS factory
|
protected static WKTPreferencesCRSFactory |
INSTANCE
The one and only factory instance
|
Modifier | Constructor and Description |
---|---|
protected |
WKTPreferencesCRSFactory()
Creates a new instance
|
protected |
WKTPreferencesCRSFactory(org.opengis.referencing.crs.CRSFactory factory)
Create a new instance, use the given CRS factory
|
Modifier and Type | Method and Description |
---|---|
void |
addWKT(String code,
String wkt)
Add a WKT
|
org.opengis.referencing.crs.CompoundCRS |
createCompoundCRS(String str) |
org.opengis.referencing.crs.CoordinateReferenceSystem |
createCoordinateReferenceSystem(String code) |
org.opengis.referencing.crs.DerivedCRS |
createDerivedCRS(String str) |
org.opengis.referencing.crs.EngineeringCRS |
createEngineeringCRS(String str) |
org.opengis.referencing.crs.GeocentricCRS |
createGeocentricCRS(String str) |
org.opengis.referencing.crs.GeographicCRS |
createGeographicCRS(String code) |
org.opengis.referencing.crs.ImageCRS |
createImageCRS(String str) |
org.opengis.referencing.IdentifiedObject |
createObject(String code) |
org.opengis.referencing.crs.ProjectedCRS |
createProjectedCRS(String code) |
org.opengis.referencing.crs.TemporalCRS |
createTemporalCRS(String str) |
org.opengis.referencing.crs.VerticalCRS |
createVerticalCRS(String str) |
org.opengis.metadata.citation.Citation |
getAuthority() |
Set<String> |
getAuthorityCodes(Class<? extends org.opengis.referencing.IdentifiedObject> clazz) |
List<String> |
getCodes()
Get the available CRS codes (with the authority prefix)
|
org.opengis.util.InternationalString |
getDescriptionText(String code) |
static WKTPreferencesCRSFactory |
getInstance()
Get the factory instance
|
org.opengis.metadata.citation.Citation |
getVendor() |
String |
getWKT(String code)
Get the WKT for the given code
|
static void |
install()
Install the factory with the
ReferencingFactoryFinder |
static void |
registerWKT(String code,
String wkt)
Register a WKT with the factory
|
void |
removeWKT(String code)
Add a WKT
|
createCartesianCS, createCoordinateOperation, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createDatum, createEllipsoid, createEllipsoidalCS, createEngineeringDatum, createExtent, createFromCoordinateReferenceSystemCodes, createGeodeticDatum, createImageDatum, createOperationMethod, createParameterDescriptor, createPolarCS, createPrimeMeridian, createSphericalCS, createTemporalDatum, createTimeCS, createUnit, createVerticalCS, createVerticalDatum, dispose, getBackingStoreDescription, getIdentifiedObjectFinder, noSuchAuthorityCode, trimAuthority
public static final String AUTHORITY
public static final String AUTHORITY_PREFIX
protected static WKTPreferencesCRSFactory INSTANCE
protected org.opengis.referencing.crs.CRSFactory crsFactory
protected WKTPreferencesCRSFactory()
protected WKTPreferencesCRSFactory(org.opengis.referencing.crs.CRSFactory factory)
factory
- the CRS factory to usepublic static WKTPreferencesCRSFactory getInstance()
public static void install()
ReferencingFactoryFinder
public static void registerWKT(String code, String wkt)
code
- the CRS code (e.g. 4326 or EPSG:4326)wkt
- the CRS well known textpublic void addWKT(String code, String wkt)
code
- the CRS code (e.g. 4326 or EPSG:4326)wkt
- the CRS well known textpublic void removeWKT(String code)
code
- the CRS code (e.g. 4326 or EPSG:4326) that the WKT is
associated topublic String getWKT(String code)
code
- the CRS code (e.g. 4326 or EPSG:4326) that the WKT is
associated tonull
public List<String> getCodes()
public org.opengis.referencing.crs.CoordinateReferenceSystem createCoordinateReferenceSystem(String code) throws org.opengis.referencing.FactoryException
createCoordinateReferenceSystem
in interface org.opengis.referencing.crs.CRSAuthorityFactory
createCoordinateReferenceSystem
in class org.geotools.referencing.factory.AbstractAuthorityFactory
org.opengis.referencing.FactoryException
CRSAuthorityFactory.createCoordinateReferenceSystem(String)
public org.opengis.referencing.IdentifiedObject createObject(String code) throws org.opengis.referencing.FactoryException
createObject
in interface org.opengis.referencing.AuthorityFactory
createObject
in class org.geotools.referencing.factory.AbstractAuthorityFactory
org.opengis.referencing.FactoryException
AuthorityFactory.createObject(String)
public org.opengis.referencing.crs.ProjectedCRS createProjectedCRS(String code) throws org.opengis.referencing.FactoryException
createProjectedCRS
in interface org.opengis.referencing.crs.CRSAuthorityFactory
createProjectedCRS
in class org.geotools.referencing.factory.AbstractAuthorityFactory
org.opengis.referencing.FactoryException
CRSAuthorityFactory.createProjectedCRS(String)
public org.opengis.referencing.crs.GeographicCRS createGeographicCRS(String code) throws org.opengis.referencing.FactoryException
createGeographicCRS
in interface org.opengis.referencing.crs.CRSAuthorityFactory
createGeographicCRS
in class org.geotools.referencing.factory.AbstractAuthorityFactory
org.opengis.referencing.FactoryException
CRSAuthorityFactory.createGeographicCRS(String)
public org.opengis.metadata.citation.Citation getAuthority()
getAuthority
in interface org.opengis.referencing.AuthorityFactory
getAuthority
in class org.geotools.referencing.factory.AbstractAuthorityFactory
AuthorityFactory.getAuthority()
public Set<String> getAuthorityCodes(Class<? extends org.opengis.referencing.IdentifiedObject> clazz) throws org.opengis.referencing.FactoryException
getAuthorityCodes
in interface org.opengis.referencing.AuthorityFactory
org.opengis.referencing.FactoryException
The following implementation filters the set of codes based on the
"PROJCS" and "GEOGCS" at the start of the WKT strings. It is assumed
that we only have GeographicCRS and ProjectedCRS's here.
public org.opengis.metadata.citation.Citation getVendor()
getVendor
in class org.geotools.referencing.factory.ReferencingFactory
Factory.getVendor()
public org.opengis.util.InternationalString getDescriptionText(String code) throws org.opengis.referencing.FactoryException
getDescriptionText
in interface org.opengis.referencing.AuthorityFactory
org.opengis.referencing.FactoryException
AuthorityFactory.getDescriptionText(String)
public org.opengis.referencing.crs.CompoundCRS createCompoundCRS(String str) throws org.opengis.referencing.FactoryException
createCompoundCRS
in interface org.opengis.referencing.crs.CRSAuthorityFactory
createCompoundCRS
in class org.geotools.referencing.factory.AbstractAuthorityFactory
org.opengis.referencing.FactoryException
CRSAuthorityFactory.createCompoundCRS(String)
public org.opengis.referencing.crs.DerivedCRS createDerivedCRS(String str) throws org.opengis.referencing.FactoryException
createDerivedCRS
in interface org.opengis.referencing.crs.CRSAuthorityFactory
createDerivedCRS
in class org.geotools.referencing.factory.AbstractAuthorityFactory
org.opengis.referencing.FactoryException
CRSAuthorityFactory.createDerivedCRS(String)
public org.opengis.referencing.crs.EngineeringCRS createEngineeringCRS(String str) throws org.opengis.referencing.FactoryException
createEngineeringCRS
in interface org.opengis.referencing.crs.CRSAuthorityFactory
createEngineeringCRS
in class org.geotools.referencing.factory.AbstractAuthorityFactory
org.opengis.referencing.FactoryException
CRSAuthorityFactory.createEngineeringCRS(String)
public org.opengis.referencing.crs.GeocentricCRS createGeocentricCRS(String str) throws org.opengis.referencing.FactoryException
createGeocentricCRS
in interface org.opengis.referencing.crs.CRSAuthorityFactory
createGeocentricCRS
in class org.geotools.referencing.factory.AbstractAuthorityFactory
org.opengis.referencing.FactoryException
CRSAuthorityFactory.createGeocentricCRS(String)
public org.opengis.referencing.crs.ImageCRS createImageCRS(String str) throws org.opengis.referencing.FactoryException
createImageCRS
in interface org.opengis.referencing.crs.CRSAuthorityFactory
createImageCRS
in class org.geotools.referencing.factory.AbstractAuthorityFactory
org.opengis.referencing.FactoryException
CRSAuthorityFactory.createImageCRS(String)
public org.opengis.referencing.crs.TemporalCRS createTemporalCRS(String str) throws org.opengis.referencing.FactoryException
createTemporalCRS
in interface org.opengis.referencing.crs.CRSAuthorityFactory
createTemporalCRS
in class org.geotools.referencing.factory.AbstractAuthorityFactory
org.opengis.referencing.FactoryException
CRSAuthorityFactory.createTemporalCRS(String)
public org.opengis.referencing.crs.VerticalCRS createVerticalCRS(String str) throws org.opengis.referencing.FactoryException
createVerticalCRS
in interface org.opengis.referencing.crs.CRSAuthorityFactory
createVerticalCRS
in class org.geotools.referencing.factory.AbstractAuthorityFactory
org.opengis.referencing.FactoryException
CRSAuthorityFactory.createVerticalCRS(String)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a