Package org.apache.sis.referencing.factory
package org.apache.sis.referencing.factory
Creates Coordinate Reference System (CRS) objects from given properties or authority codes.
This package provides two kinds of factories:
GeodeticAuthorityFactory
creates geodetic objects from codes defined by an authority. An authority is an organization that maintains definitions of authority codes. An authority code is a compact string defined by an authority to reference a particular spatial reference object. A frequently used set of authority codes is the EPSG geodetic dataset, a database of coordinate systems and other spatial referencing objects where each object has a code number ID.GeodeticObjectFactory
creates complex objects that cannot be created by the authority factories. Allows also inversion of control when used with the EPSG authority factory or with the WKT parser.
sql
sub-package require a connection to a database.
Authorities | Implementation class | Conditions |
---|---|---|
CRS , AUTO and AUTO2 |
CommonAuthorityFactory |
None. |
EPSG |
EPSGFactory |
Requires installation of EPSG dataset. |
- Since:
- 0.6
- Version:
- 1.3
-
ClassDescriptionIdentification of an authority factory by its type, namespace and version.Delegates object creations to one of the
create
methods in a backingAuthorityFactory
.Implementation ofConcurrentAuthorityFactory.printCacheContent(PrintWriter)
.Result of parsing a code in "OGC", "CRS", "AUTO" or "AUTO2" namespace.Creates coordinate reference systems in the "OGC
", "CRS
" or"AUTO(2)"
namespaces.ConcurrentAuthorityFactory<DAO extends GeodeticAuthorityFactory>A concurrent authority factory that caches all objects created by another factory.Holds the reference to a Data Access Object used byConcurrentAuthorityFactory
, together with information about its usage.An implementation ofIdentifiedObjectFinder
which delegates the work to the underlying Data Access Object and caches the result.The key objects to use in theConcurrentAuthorityFactory.cache
.A hook to be executed either when theConcurrentAuthorityFactory
is collected by the garbage collector, when the Java Virtual Machine is shutdown, or when the module is uninstalled by the OSGi or Servlet container.Thrown when a factory contains invalid data.A map of authority codes filtered by their type.Creates geodetic objects from codes defined by an authority.Creates Coordinate Reference System (CRS) implementations, with their Coordinate System (CS) and Datum components.Searches in an authority factory for objects approximately equal to a given object.The domain of the search (for example whether to include deprecated objects in the search).IdentifiedObjectSet<T extends org.opengis.referencing.IdentifiedObject>A lazy set ofIdentifiedObject
instances created from their authority codes only when first needed.Thrown when a factorycreateFoo(…)
method is given invalid parameters.An iterator over all elements given by an array ofIterable<E>
, skipping null elements.Thrown when a particular object cannot be created because a resource is missing.A factory that delegates the object creation to another factory determined from the authority part in “authority:code” arguments.A proxy that does not execute immediately thecreate
method on a factory, but instead stores information for later execution.AIdentifiedObjectFinder
which tests every factories declared in the collection of factories.Thrown when no factory has been found for a given authority name.Most recently used objects stored or accessed inConcurrentAuthorityFactory.findPool
, retained by strong references for preventing too early garbage collection.Thrown when a whole factory cannot be created because a resource is missing.