public class MultiAuthoritiesFactory extends GeodeticAuthorityFactory implements CRSAuthorityFactory, CSAuthorityFactory, DatumAuthorityFactory, CoordinateOperationAuthorityFactory
This factory requires that every codes given to a createFoo(String)
method are prefixed by a namespace,
for example "EPSG:4326"
or "EPSG::4326"
.
When a createFoo(String)
method is invoked, this class uses the authority part in the
“authority:code” argument for locating a factory capable to create a geodetic object
for the code part. If a factory is found in the list of factories given at construction time,
then the work is delegated to that factory. Otherwise a NoSuchAuthorityFactoryException
is thrown.
"urn:ogc:def:
type:
authority:
version:
code"
"http://www.opengis.net/def/
type/
authority/
version/
code"
"http://www.opengis.net/gml/srs/
authority.xml#
code"
MultiAuthoritiesFactory
uses the type information in the URN only for
delegating to a more specific method, never for delegating to a less specific method.
An exception will be thrown if the type in the URN is incompatible with the invoked method.
createObject("urn:ogc:def:crs:EPSG::4326")
is invoked,
then MultiAuthoritiesFactory
will delegate (indirectly, ignoring caching for this example) the object
creation to EPSGDataAccess.createCoordinateReferenceSystem(String)
instead of EPSGDataAccess.createObject(String)
because of the
"crs"
part in the URN. The more specific method gives better performances and avoid ambiguities."urn:ogc:def:
type,
type₁:
authority₁:
version₁:
code₁,
type₂:
authority₂:
version₂:
code₂"
"http://www.opengis.net/def/crs-compound?
1=http://www.opengis.net/def/crs/
authority₁/
version₁/
code₁&
2=http://www.opengis.net/def/crs/
authority₂/
version₂/
code₂"
MultiAuthoritiesFactory
invokes createObject(String)
for each component
and combines the result as described by the CRS.compound(CoordinateReferenceSystem...)
method.
URNs (but not URLs) can also combine a
geodetic datum with an
ellipsoidal coordinate system for creating a new
geographic CRS, or a base geographic CRS with a
conversion and a
Cartesian coordinate system for creating a new
projected coordinate reference system, or
coordinate operations
for creating a concatenated operation.
MultiAuthoritiesFactory
accepts an arbitrary amount of factories for the same authority, provided that
those factories have different version numbers. If a createFoo(String)
method is invoked with a URN
containing a version number different than zero, then MultiAuthoritiesFactory
will search for a factory
with that exact version, or throw a NoSuchAuthorityFactoryException
if no suitable factory is found.
If a createFoo(String)
method is invoked with the version number omitted, then MultiAuthoritiesFactory
will use the first factory in iteration order for the requested authority regardless of its version number.
MultiAuthoritiesFactory
instance could contain two EPSGFactory
instances:
one for version 8.2 and another one for version 7.9 of the EPSG dataset.
A specific version can be requested in the URN given to createFoo(String)
methods,
for example "urn:ogc:def:crs:EPSG:8.2:4326"
.
If no version is given of if the given version is zero,
then the first EPSG factory in iteration order is used regardless of its version number.
Iterable
instances,
do not need to be thread-safe. See constructor Javadoc for more information.CRS.getAuthorityFactory(String)
Defined in the sis-referencing
module
Constructor and Description |
---|
MultiAuthoritiesFactory(Iterable<? extends CRSAuthorityFactory> crsFactories,
Iterable<? extends CSAuthorityFactory> csFactories,
Iterable<? extends DatumAuthorityFactory> datumFactories,
Iterable<? extends CoordinateOperationAuthorityFactory> copFactories)
Creates a new multi-factories instance using the given lists of factories.
|
Modifier and Type | Method and Description |
---|---|
CartesianCS |
createCartesianCS(String code)
Creates a 2- or 3-dimensional Cartesian coordinate system made of straight orthogonal axes.
|
CompoundCRS |
createCompoundCRS(String code)
Creates a CRS describing the position of points through two or more independent coordinate reference systems.
|
CoordinateOperation |
createCoordinateOperation(String code)
Creates an operation for transforming coordinates in the source CRS to coordinates in the target CRS.
|
CoordinateReferenceSystem |
createCoordinateReferenceSystem(String code)
Creates an arbitrary coordinate reference system from a code.
|
CoordinateSystem |
createCoordinateSystem(String code)
Creates an arbitrary coordinate system from a code.
|
CoordinateSystemAxis |
createCoordinateSystemAxis(String code)
Creates a coordinate system axis with name, direction, unit and range of values.
|
CylindricalCS |
createCylindricalCS(String code)
Creates a 3-dimensional coordinate system made of a polar coordinate system
extended by a straight perpendicular axis.
|
Datum |
createDatum(String code)
Creates an arbitrary datum from a code.
|
DerivedCRS |
createDerivedCRS(String code)
Creates a CRS that is defined by its coordinate conversion from another CRS (not by a datum).
|
Ellipsoid |
createEllipsoid(String code)
Creates a geometric figure that can be used to describe the approximate shape of the earth.
|
EllipsoidalCS |
createEllipsoidalCS(String code)
Creates a 2- or 3-dimensional coordinate system for geodetic latitude and longitude, sometime with ellipsoidal height.
|
EngineeringCRS |
createEngineeringCRS(String code)
Creates a 1-, 2- or 3-dimensional contextually local coordinate reference system.
|
EngineeringDatum |
createEngineeringDatum(String code)
Creates a datum defining the origin of an engineering coordinate reference system.
|
Extent |
createExtent(String code)
Creates information about spatial, vertical, and temporal extent (usually a domain of validity) from a code.
|
Set<CoordinateOperation> |
createFromCoordinateReferenceSystemCodes(String sourceCRS,
String targetCRS)
Creates operations from source and target coordinate reference system codes.
|
GeocentricCRS |
createGeocentricCRS(String code)
Creates a 3-dimensional coordinate reference system with the origin at the approximate centre of mass of the earth.
|
GeodeticDatum |
createGeodeticDatum(String code)
Creates a datum defining the location and orientation of an ellipsoid that approximates the shape of the earth.
|
GeographicCRS |
createGeographicCRS(String code)
Creates a 2- or 3-dimensional coordinate reference system based on an ellipsoidal approximation of the geoid.
|
ImageCRS |
createImageCRS(String code)
Creates a 2-dimensional engineering coordinate reference system applied to locations in images.
|
ImageDatum |
createImageDatum(String code)
Creates a datum defining the origin of an image coordinate reference system.
|
IdentifiedObject |
createObject(String code)
Creates an arbitrary object from a code.
|
OperationMethod |
createOperationMethod(String code)
Creates a description of the algorithm and parameters used to perform a coordinate operation.
|
ParameterDescriptor<?> |
createParameterDescriptor(String code)
Creates a definition of a single parameter used by an operation method.
|
PolarCS |
createPolarCS(String code)
Creates a 2-dimensional coordinate system for coordinates represented by a distance from the origin
and an angle from a fixed direction.
|
PrimeMeridian |
createPrimeMeridian(String code)
Creates a prime meridian defining the origin from which longitude values are determined.
|
ProjectedCRS |
createProjectedCRS(String code)
Creates a 2-dimensional coordinate reference system used to approximate the shape of the earth on a planar surface.
|
SphericalCS |
createSphericalCS(String code)
Creates a 3-dimensional coordinate system with one distance measured from the origin and two angular coordinates.
|
TemporalCRS |
createTemporalCRS(String code)
Creates a 1-dimensional coordinate reference system used for the recording of time.
|
TemporalDatum |
createTemporalDatum(String code)
Creates a datum defining the origin of a temporal coordinate reference system.
|
TimeCS |
createTimeCS(String code)
Creates a 1-dimensional coordinate system for heights or depths of points.
|
Unit<?> |
createUnit(String code)
Creates an unit of measurement from a code.
|
VerticalCRS |
createVerticalCRS(String code)
Creates a 1-dimensional coordinate reference system used for recording heights or depths.
|
VerticalCS |
createVerticalCS(String code)
Creates a 1-dimensional coordinate system for heights or depths of points.
|
VerticalDatum |
createVerticalDatum(String code)
Creates a datum identifying a particular reference level surface used as a zero-height surface.
|
Citation |
getAuthority()
Returns the database or specification that defines the codes recognized by this factory.
|
Set<String> |
getAuthorityCodes(Class<? extends IdentifiedObject> type)
Returns the set of authority codes for objects of the given type.
|
<T extends AuthorityFactory> |
getAuthorityFactory(Class<T> type,
String authority,
String version)
Returns the factory identified by the given type, authority and version.
|
Set<String> |
getCodeSpaces()
Returns the code spaces of all factories given to the constructor.
|
InternationalString |
getDescriptionText(String code)
Returns a description of the object corresponding to a code.
|
boolean |
isLenient()
Returns whether this factory should relax some rules when processing a given authority code.
|
IdentifiedObjectFinder |
newIdentifiedObjectFinder()
Creates a finder which can be used for looking up unidentified objects.
|
void |
reload()
Clears the cache and notifies this
MultiAuthoritiesFactory that all factories will need to
be fetched again from the providers given at construction time. |
void |
setLenient(boolean lenient)
Sets whether this factory should relax some rules when processing a given code.
|
createParametricCRS, createParametricCS, createParametricDatum, toString, trimNamespace
getVendor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVendor
public MultiAuthoritiesFactory(Iterable<? extends CRSAuthorityFactory> crsFactories, Iterable<? extends CSAuthorityFactory> csFactories, Iterable<? extends DatumAuthorityFactory> datumFactories, Iterable<? extends CoordinateOperationAuthorityFactory> copFactories)
createFoo(String)
methods will scan the supplied factories in their iteration order when first needed.
The first factory having the requested namespace will be used.
MultiAuthoritiesFactory
may iterate over the same Iterable
more than once.
Each iteration shall return the same instances than previous iterations,
unless reload()
has been invoked.
The Iterable
s do not need to be thread-safe.
MultiAuthoritiesFactory
will use them only in blocks synchronized on the Iterable
instance.
For example all usages of crsFactory
will be done inside a synchronized(crsFactory)
block.
Iterable
contains more than one factory for the same namespace and version,
then only the first occurrence will be used. All additional factories for the same namespace
and version will be ignored, after a warning has been logged.
MultiAuthoritiesFactory
caches the factories found from the given Iterable
s,
but does not cache the objects created by those factories.
This constructor assumes that the given factories already do their own caching.crsFactories
- the factories for creating CoordinateReferenceSystem
objects, or null if none.csFactories
- the factories for creating CoordinateSystem
objects, or null if none.datumFactories
- the factories for creating Datum
objects, or null if none.copFactories
- the factories for creating CoordinateOperation
objects, or null if none.public boolean isLenient()
true
, then the behavior of this MultiAuthoritiesFactory
is changed as below:
false
, which means that an exception will be thrown
if there is no factory specifically for the requested version.public void setLenient(boolean lenient)
lenient
- whether this factory should relax some rules when processing a given authority code.public Citation getAuthority()
null
since MultiAuthoritiesFactory
is not
about a particular authority.getAuthority
in interface AuthorityFactory
getAuthority
in class GeodeticAuthorityFactory
null
if unknown.AbstractFactory.getVendor()
public Set<String> getAuthorityCodes(Class<? extends IdentifiedObject> type) throws FactoryException
The Set.contains(Object)
method of the returned set is lenient:
it accepts various ways to format a code even if the iterator returns only one form.
For example the contains(Object)
method may return true
for "EPSG:4326"
,
"EPSG::4326"
, "urn:ogc:def:crs:EPSG::4326"
, etc. even if
the iterator returns only "EPSG:4326"
.
Warnings:
Set.size()
method on the returned collection should be avoided
since it may be costly.getAuthorityCodes
in interface AuthorityFactory
type
- the spatial reference objects type.FactoryException
- if access to an underlying factory failed.public Set<String> getCodeSpaces()
getCodeSpaces
in class GeodeticAuthorityFactory
public final <T extends AuthorityFactory> T getAuthorityFactory(Class<T> type, String authority, String version) throws NoSuchAuthorityFactoryException
T
- the compile-time value of type
.type
- the type of the desired factory as one of the CRSAuthorityFactory
, CSAuthorityFactory
,
DatumAuthorityFactory
or CoordinateOperationFactory
interfaces.authority
- the namespace or authority identifier of the desired factory.
Examples: "EPSG"
, "CRS"
or "AUTO2"
.version
- the version of the desired factory, or null
for the default version.NoSuchAuthorityFactoryException
- if no suitable factory has been found.public InternationalString getDescriptionText(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:
type:
authority:
version:
codehttp://www.opengis.net/def/
type/
authority/
version/
codehttp://www.opengis.net/gml/srs/
authority.xml#
codegetDescriptionText
in interface AuthorityFactory
getDescriptionText
in class GeodeticAuthorityFactory
code
- value allocated by authority.null
if the object
corresponding to the specified code
has no description.FactoryException
- if an error occurred while fetching the description.public IdentifiedObject createObject(String code) throws FactoryException
:
code — note that this form is ambiguous:
version:
code — note that this form is ambiguousurn:ogc:def:
type:
authority:
version:
codehttp://www.opengis.net/def/
type/
authority/
version/
codehttp://www.opengis.net/gml/srs/
authority.xml#
codecreateObject(String)
method
because different kinds of objects can have the same code.createObject
in interface AuthorityFactory
createObject
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.AbstractIdentifiedObject
public CoordinateReferenceSystem createCoordinateReferenceSystem(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:crs:
authority:
version:
codehttp://www.opengis.net/def/crs/
authority/
version/
codehttp://www.opengis.net/gml/srs/
authority.xml#
codecreateCoordinateReferenceSystem
in interface CRSAuthorityFactory
createCoordinateReferenceSystem
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.AbstractCRS
,
CRS.forCode(String)
public GeographicCRS createGeographicCRS(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:crs:
authority:
version:
codehttp://www.opengis.net/def/crs/
authority/
version/
codehttp://www.opengis.net/gml/srs/
authority.xml#
codecreateGeographicCRS
in interface CRSAuthorityFactory
createGeographicCRS
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultGeographicCRS
,
CommonCRS.geographic()
,
CommonCRS.geographic3D()
public GeocentricCRS createGeocentricCRS(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:crs:
authority:
version:
codehttp://www.opengis.net/def/crs/
authority/
version/
codehttp://www.opengis.net/gml/srs/
authority.xml#
codecreateGeocentricCRS
in interface CRSAuthorityFactory
createGeocentricCRS
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultGeocentricCRS
,
CommonCRS.geocentric()
public ProjectedCRS createProjectedCRS(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:crs:
authority:
version:
codehttp://www.opengis.net/def/crs/
authority/
version/
codehttp://www.opengis.net/gml/srs/
authority.xml#
codecreateProjectedCRS
in interface CRSAuthorityFactory
createProjectedCRS
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultProjectedCRS
public VerticalCRS createVerticalCRS(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:crs:
authority:
version:
codehttp://www.opengis.net/def/crs/
authority/
version/
codehttp://www.opengis.net/gml/srs/
authority.xml#
codecreateVerticalCRS
in interface CRSAuthorityFactory
createVerticalCRS
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultVerticalCRS
,
CommonCRS.Vertical.crs()
public TemporalCRS createTemporalCRS(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:crs:
authority:
version:
codehttp://www.opengis.net/def/crs/
authority/
version/
codehttp://www.opengis.net/gml/srs/
authority.xml#
codecreateTemporalCRS
in interface CRSAuthorityFactory
createTemporalCRS
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultTemporalCRS
,
CommonCRS.Temporal.crs()
public CompoundCRS createCompoundCRS(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:crs:
authority:
version:
codehttp://www.opengis.net/def/crs/
authority/
version/
codehttp://www.opengis.net/gml/srs/
authority.xml#
codecreateCompoundCRS
in interface CRSAuthorityFactory
createCompoundCRS
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultCompoundCRS
public DerivedCRS createDerivedCRS(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:crs:
authority:
version:
codehttp://www.opengis.net/def/crs/
authority/
version/
codehttp://www.opengis.net/gml/srs/
authority.xml#
codecreateDerivedCRS
in interface CRSAuthorityFactory
createDerivedCRS
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultDerivedCRS
public EngineeringCRS createEngineeringCRS(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:crs:
authority:
version:
codehttp://www.opengis.net/def/crs/
authority/
version/
codehttp://www.opengis.net/gml/srs/
authority.xml#
codecreateEngineeringCRS
in interface CRSAuthorityFactory
createEngineeringCRS
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultEngineeringCRS
public ImageCRS createImageCRS(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:crs:
authority:
version:
codehttp://www.opengis.net/def/crs/
authority/
version/
codehttp://www.opengis.net/gml/srs/
authority.xml#
codecreateImageCRS
in interface CRSAuthorityFactory
createImageCRS
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultImageCRS
public Datum createDatum(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:datum:
authority:
version:
codehttp://www.opengis.net/def/datum/
authority/
version/
codecreateDatum
in interface DatumAuthorityFactory
createDatum
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.AbstractDatum
public GeodeticDatum createGeodeticDatum(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:datum:
authority:
version:
codehttp://www.opengis.net/def/datum/
authority/
version/
codecreateGeodeticDatum
in interface DatumAuthorityFactory
createGeodeticDatum
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultGeodeticDatum
,
CommonCRS.datum()
public VerticalDatum createVerticalDatum(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:datum:
authority:
version:
codehttp://www.opengis.net/def/datum/
authority/
version/
codecreateVerticalDatum
in interface DatumAuthorityFactory
createVerticalDatum
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultVerticalDatum
,
CommonCRS.Vertical.datum()
public TemporalDatum createTemporalDatum(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:datum:
authority:
version:
codehttp://www.opengis.net/def/datum/
authority/
version/
codecreateTemporalDatum
in interface DatumAuthorityFactory
createTemporalDatum
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultTemporalDatum
,
CommonCRS.Temporal.datum()
public EngineeringDatum createEngineeringDatum(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:datum:
authority:
version:
codehttp://www.opengis.net/def/datum/
authority/
version/
codecreateEngineeringDatum
in interface DatumAuthorityFactory
createEngineeringDatum
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultEngineeringDatum
public ImageDatum createImageDatum(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:datum:
authority:
version:
codehttp://www.opengis.net/def/datum/
authority/
version/
codecreateImageDatum
in interface DatumAuthorityFactory
createImageDatum
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultImageDatum
public Ellipsoid createEllipsoid(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:ellipsoid:
authority:
version:
codehttp://www.opengis.net/def/ellipsoid/
authority/
version/
codecreateEllipsoid
in interface DatumAuthorityFactory
createEllipsoid
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultEllipsoid
,
CommonCRS.ellipsoid()
public PrimeMeridian createPrimeMeridian(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:meridian:
authority:
version:
codehttp://www.opengis.net/def/meridian/
authority/
version/
codecreatePrimeMeridian
in interface DatumAuthorityFactory
createPrimeMeridian
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultPrimeMeridian
,
CommonCRS.primeMeridian()
public Extent createExtent(String code) throws FactoryException
:
code:
version:
codecreateExtent
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultExtent
public CoordinateSystem createCoordinateSystem(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:cs:
authority:
version:
codehttp://www.opengis.net/def/cs/
authority/
version/
codecreateCoordinateSystem
in interface CSAuthorityFactory
createCoordinateSystem
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.AbstractCS
,
CoordinateSystems.getEpsgCode(Unit, AxisDirection...)
public EllipsoidalCS createEllipsoidalCS(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:cs:
authority:
version:
codehttp://www.opengis.net/def/cs/
authority/
version/
codecreateEllipsoidalCS
in interface CSAuthorityFactory
createEllipsoidalCS
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultEllipsoidalCS
public VerticalCS createVerticalCS(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:cs:
authority:
version:
codehttp://www.opengis.net/def/cs/
authority/
version/
codecreateVerticalCS
in interface CSAuthorityFactory
createVerticalCS
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultVerticalCS
public TimeCS createTimeCS(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:cs:
authority:
version:
codehttp://www.opengis.net/def/cs/
authority/
version/
codecreateTimeCS
in interface CSAuthorityFactory
createTimeCS
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultTimeCS
public CartesianCS createCartesianCS(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:cs:
authority:
version:
codehttp://www.opengis.net/def/cs/
authority/
version/
codecreateCartesianCS
in interface CSAuthorityFactory
createCartesianCS
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultCartesianCS
public SphericalCS createSphericalCS(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:cs:
authority:
version:
codehttp://www.opengis.net/def/cs/
authority/
version/
codecreateSphericalCS
in interface CSAuthorityFactory
createSphericalCS
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultSphericalCS
public CylindricalCS createCylindricalCS(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:cs:
authority:
version:
codehttp://www.opengis.net/def/cs/
authority/
version/
codecreateCylindricalCS
in interface CSAuthorityFactory
createCylindricalCS
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultCylindricalCS
public PolarCS createPolarCS(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:cs:
authority:
version:
codehttp://www.opengis.net/def/cs/
authority/
version/
codecreatePolarCS
in interface CSAuthorityFactory
createPolarCS
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultPolarCS
public CoordinateSystemAxis createCoordinateSystemAxis(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:axis:
authority:
version:
codehttp://www.opengis.net/def/axis/
authority/
version/
codecreateCoordinateSystemAxis
in interface CSAuthorityFactory
createCoordinateSystemAxis
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultCoordinateSystemAxis
public Unit<?> createUnit(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:uom:
authority:
version:
codehttp://www.opengis.net/def/uom/
authority/
version/
codecreateUnit
in interface CSAuthorityFactory
createUnit
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.Units.valueOfEPSG(int)
public ParameterDescriptor<?> createParameterDescriptor(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:parameter:
authority:
version:
codehttp://www.opengis.net/def/parameter/
authority/
version/
codecreateParameterDescriptor
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultParameterDescriptor
,
Apache SIS™ Coordinate Operation Methodspublic OperationMethod createOperationMethod(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:method:
authority:
version:
codehttp://www.opengis.net/def/method/
authority/
version/
codecreateOperationMethod
in interface CoordinateOperationAuthorityFactory
createOperationMethod
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.DefaultOperationMethod
,
Apache SIS™ Coordinate Operation Methodspublic CoordinateOperation createCoordinateOperation(String code) throws FactoryException
:
code:
version:
codeurn:ogc:def:coordinateOperation:
authority:
version:
codehttp://www.opengis.net/def/coordinateOperation/
authority/
version/
codecreateCoordinateOperation
in interface CoordinateOperationAuthorityFactory
createCoordinateOperation
in class GeodeticAuthorityFactory
code
- value allocated by authority.FactoryException
- if the object creation failed.AbstractCoordinateOperation
public Set<CoordinateOperation> createFromCoordinateReferenceSystemCodes(String sourceCRS, String targetCRS) throws FactoryException
createFromCoordinateReferenceSystemCodes
in interface CoordinateOperationAuthorityFactory
createFromCoordinateReferenceSystemCodes
in class GeodeticAuthorityFactory
sourceCRS
- coded value of source coordinate reference system.targetCRS
- coded value of target coordinate reference system.sourceCRS
to targetCRS
.FactoryException
- if the object creation failed.public IdentifiedObjectFinder newIdentifiedObjectFinder() throws FactoryException
newIdentifiedObjectFinder
in class GeodeticAuthorityFactory
FactoryException
- if the finder can not be created.IdentifiedObjects.newFinder(String)
public void reload()
MultiAuthoritiesFactory
that all factories will need to
be fetched again from the providers given at construction time. In addition, all providers that are
instances of ServiceLoader
will have their reload()
method invoked.
This method is intended for use in situations in which new factories can be installed into a running Java virtual machine.
Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.