Class SpatialReferenceIGNFCRSAuthorityFactory
java.lang.Object
org.geotools.util.factory.AbstractFactory
org.jorigin.geotools.referencing.spatialreference.SpatialReferenceCRSAuthorityFactory
org.jorigin.geotools.referencing.spatialreference.SpatialReferenceIGNFCRSAuthorityFactory
- All Implemented Interfaces:
org.geotools.api.referencing.AuthorityFactory,org.geotools.api.referencing.crs.CRSAuthorityFactory,org.geotools.api.referencing.Factory,org.geotools.util.factory.Factory,org.geotools.util.factory.RegistrableFactory
A
CRSAuthorityFactory that request Coordinates References System from the spatialreference.org for the authority Institut national de l'information Géographique et Forestiere (IGN).
This factory can process coordinates reference system with code "IGNF:XXXX".- Author:
- Julien SEINTURIER - Université de Toulon / CNRS LIS umr 7020 - github.com/jseinturier (julien.seinturier@univ-tln.fr)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe IGNF authoritystatic final StringThe IGNF authorityprotected static SpatialReferenceIGNFCRSAuthorityFactoryThe default coordinate system authority factory.Fields inherited from class org.jorigin.geotools.referencing.spatialreference.SpatialReferenceCRSAuthorityFactory
cache, crsFactory, LOGGERFields inherited from class org.geotools.util.factory.AbstractFactory
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new spatialreference.org CRS factory for IGNF authority. -
Method Summary
Modifier and TypeMethodDescriptionorg.geotools.api.metadata.citation.CitationgetAuthorityCodes(Class clazz) Returns the set of authority codes of the given type.static org.geotools.api.referencing.crs.CRSAuthorityFactoryReturns a default coordinate system factory backed by the spatialreference.org website.Methods inherited from class org.jorigin.geotools.referencing.spatialreference.SpatialReferenceCRSAuthorityFactory
createCompoundCRS, createCoordinateReferenceSystem, createDerivedCRS, createEngineeringCRS, createGeocentricCRS, createGeographicCRS, createImageCRS, createObject, createProjectedCRS, createTemporalCRS, createVerticalCRS, getAuthorityName, getDescriptionText, getObjectFactory, getVendor, setAuthorityNameMethods inherited from class org.geotools.util.factory.AbstractFactory
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toString
-
Field Details
-
AUTHORITY_NAME
-
AUTHORITY_URL
-
DEFAULT
The default coordinate system authority factory. Will be constructed only when first requested.
-
-
Constructor Details
-
SpatialReferenceIGNFCRSAuthorityFactory
public SpatialReferenceIGNFCRSAuthorityFactory()Create a new spatialreference.org CRS factory for IGNF authority.
-
-
Method Details
-
getDefault
Returns a default coordinate system factory backed by the spatialreference.org website.- Returns:
- The default factory.
- Throws:
IOException- if the connection to the spatialreference.org website cannot be established.
-
getAuthority
public org.geotools.api.metadata.citation.Citation getAuthority() -
getAuthorityCodes
public Set<String> getAuthorityCodes(Class clazz) throws org.geotools.api.referencing.FactoryException Returns the set of authority codes of the given type. The type argument specify the base class. For example if this factory is an instance of CRSAuthorityFactory, then:- CoordinateReferenceSystem.class asks for all authority codes accepted by createGeographicCRS, createProjectedCRS, createVerticalCRS, createTemporalCRS and their friends.
- ProjectedCRS.class asks only for authority codes accepted by createProjectedCRS.
- Parameters:
clazz- The spatial reference objects type (may be Object.class).- Returns:
- The set of authority codes for spatial reference objects of the given type. If this factory doesn't contains any object of the given type, then this method returns an empty set.
- Throws:
org.geotools.api.referencing.FactoryException- if access to the underlying database failed.
-