|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFactory
ReferencingFactory
AbstractAuthorityFactory
DirectAuthorityFactory
AutoCRSFactory
@ThreadSafe public class AutoCRSFactory
The factory for projected CRS in the AUTO and AUTO2
space. The expected format is AUTO:code,<unit>,lon0,lat0 where the AUTO prefix
is optional. The <unit> parameter is also optional, since it was not present in the WMS
1.0 specification (it has been added later).
The parameters are as below:
code - the projection code, as one of the following values:
unit - the unit of measurement code, as one of the codes documented
in the Units.valueOfEPSG(int) method. This code is optional. If not
provided, then the default value is 9001 (metre).
long0 - the central meridian. For UTM projections (42001), it can be computed as
(zone*6 - 183) where zone is the UTM zone in the range 1 to 60
inclusive.
lat0 - the latitude of origin.
Examples
An orthographic CRS centered at 100 degrees West longitude and 45 degrees North latitude,
with ordinates in metres.
Same CRS as above, but with conversion factor allowing ordinate values in U.S. feet:AUTO2:42003,1,-100,45
AUTO2:42003,0.3048006096012192,-100,45
| referencing/geotk-referencing (download) | View source code for this class |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class Factory |
|---|
Factory.Availability, Factory.Organizer |
| Field Summary |
|---|
| Fields inherited from class DirectAuthorityFactory |
|---|
factories |
| Fields inherited from class AbstractAuthorityFactory |
|---|
nameFactory |
| Fields inherited from class ReferencingFactory |
|---|
LOGGER |
| Fields inherited from class Factory |
|---|
EMPTY_HINTS, hints |
| Constructor Summary | |
|---|---|
AutoCRSFactory()
Constructs a default factory for the AUTO authority. |
|
AutoCRSFactory(Hints userHints)
Constructs a factory for the AUTO authority using the specified hints. |
|
| Method Summary | |
|---|---|
CoordinateReferenceSystem |
createCoordinateReferenceSystem(String code)
Creates a coordinate reference system from the specified code. |
IdentifiedObject |
createObject(String code)
Creates an object from the specified code. |
ProjectedCRS |
createProjectedCRS(String code)
Creates a projected coordinate reference system from the specified code. |
Citation |
getAuthority()
Returns the authority for this factory. |
Set<String> |
getAuthorityCodes(Class<? extends IdentifiedObject> type)
Provides a complete set of the known codes provided by this authority. |
InternationalString |
getDescriptionText(String code)
Returns the CRS name for the given code. |
| Methods inherited from class DirectAuthorityFactory |
|---|
getImplementationHints |
| Methods inherited from class ReferencingFactory |
|---|
ensureNonNull, getVendor |
| Methods inherited from class Factory |
|---|
availability, equals, hasCompatibleHints, hashCode, setOrdering, toString |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface CRSAuthorityFactory |
|---|
createCompoundCRS, createDerivedCRS, createEngineeringCRS, createGeocentricCRS, createGeographicCRS, createImageCRS, createTemporalCRS, createVerticalCRS |
| Methods inherited from interface Factory |
|---|
getVendor |
| Constructor Detail |
|---|
public AutoCRSFactory()
AUTO authority.
public AutoCRSFactory(Hints userHints)
AUTO authority using the specified hints.
userHints - An optional set of hints, or null for the default ones.| Method Detail |
|---|
public Citation getAuthority()
getAuthority in interface AuthorityFactorygetAuthority in class AbstractAuthorityFactory
public Set<String> getAuthorityCodes(Class<? extends IdentifiedObject> type)
throws FactoryException
"42001",
"42002", etc. The authority name ("AUTO")
and the lon0,lat0 part are not included. This is consistent with the
codes returned by the EPSG factory and avoid duplication, since the authority is the
same for every codes returned by this factory. It also make it easier for clients to
prepend whatever authority name they wish, as for example in the
all authorities factory.
getAuthorityCodes in interface AuthorityFactoryFactoryException
public InternationalString getDescriptionText(String code)
throws FactoryException
getDescriptionText in interface AuthorityFactoryFactoryException - if an error occurred while fetching the description.
public IdentifiedObject createObject(String code)
throws FactoryException
createCoordinateReferenceSystem(code).
createObject in interface AuthorityFactorycreateObject in class AbstractAuthorityFactorycode - Value allocated by authority.
FactoryException - if the object creation failed.
public CoordinateReferenceSystem createCoordinateReferenceSystem(String code)
throws FactoryException
createProjectedCRS(code).
createCoordinateReferenceSystem in interface CRSAuthorityFactorycreateCoordinateReferenceSystem in class AbstractAuthorityFactorycode - Value allocated by authority.
FactoryException - if the object creation failed.
public ProjectedCRS createProjectedCRS(String code)
throws FactoryException
createProjectedCRS in interface CRSAuthorityFactorycreateProjectedCRS in class AbstractAuthorityFactorycode - Value allocated by authority.
FactoryException - if the object creation failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||