|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.factory.AbstractFactory
eu.esdihumboldt.hale.ui.common.crs.WKTPreferencesCRSFactory
public class WKTPreferencesCRSFactory
CRS factory based on WKT stored in Java preferences
Field Summary | |
---|---|
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 |
Fields inherited from class org.geotools.factory.AbstractFactory |
---|
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority |
Constructor Summary | |
---|---|
protected |
WKTPreferencesCRSFactory()
Creates a new instance |
protected |
WKTPreferencesCRSFactory(org.opengis.referencing.crs.CRSFactory factory)
Create a new instance, use the given CRS factory |
Method Summary | |
---|---|
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 |
Methods inherited from class org.geotools.factory.AbstractFactory |
---|
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String AUTHORITY
public static final String AUTHORITY_PREFIX
protected static WKTPreferencesCRSFactory INSTANCE
protected org.opengis.referencing.crs.CRSFactory crsFactory
Constructor Detail |
---|
protected WKTPreferencesCRSFactory()
protected WKTPreferencesCRSFactory(org.opengis.referencing.crs.CRSFactory factory)
factory
- the CRS factory to useMethod Detail |
---|
public 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 to
null
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
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
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
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
org.opengis.referencing.FactoryException
CRSAuthorityFactory.createGeographicCRS(String)
public org.opengis.metadata.citation.Citation getAuthority()
getAuthority
in interface org.opengis.referencing.AuthorityFactory
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()
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
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
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
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
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
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
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
org.opengis.referencing.FactoryException
CRSAuthorityFactory.createVerticalCRS(String)
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |