public abstract class GeodeticAuthorityFactory extends AbstractFactory implements AuthorityFactory
"4326"
.This class defines a default implementation for most methods defined in the DatumAuthorityFactory
,
CSAuthorityFactory
and CRSAuthorityFactory
interfaces. However, those interfaces do not appear
in the implements
clause of this class declaration. This is up to subclasses to decide which interfaces
they declare to implement.
The default implementation for all createFoo(String)
methods ultimately invokes
createObject(String)
, which may be the only method that a subclass need to override.
However, other methods may be overridden as well for better performances.
Defined in the sis-referencing
module
Modifier | Constructor and Description |
---|---|
protected |
GeodeticAuthorityFactory()
Creates a new authority factory for geodetic objects.
|
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.
|
abstract IdentifiedObject |
createObject(String code)
Returns 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.
|
DefaultParametricCRS |
createParametricCRS(String code)
Creates a 1-dimensional parametric coordinate reference system.
|
DefaultParametricCS |
createParametricCS(String code)
Creates a 1-dimensional parametric coordinate system.
|
DefaultParametricDatum |
createParametricDatum(String code)
Creates a datum defining the origin of a parametric coordinate reference system.
|
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 time elapsed in the specified time units
from a specified time origin.
|
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.
|
abstract Citation |
getAuthority()
Returns the database or specification that defines the codes recognized by this factory.
|
Set<String> |
getCodeSpaces()
Returns all namespaces recognized by this factory.
|
InternationalString |
getDescriptionText(String code)
Returns a description of the object corresponding to a code.
|
IdentifiedObjectFinder |
newIdentifiedObjectFinder()
Creates a finder which can be used for looking up unidentified objects.
|
String |
toString()
Returns a string representation of this factory for debugging purpose only.
|
protected String |
trimNamespace(String code)
Trims the namespace, if present.
|
getVendor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAuthorityCodes
getVendor
protected GeodeticAuthorityFactory()
public abstract Citation getAuthority()
null
if it can not obtain this information, for example because
the connection to a database is not available.
Citation ├─ Title ……………………………………………………… EPSG Geodetic Parameter Dataset ├─ Identifier ………………………………………… EPSG ├─ Online resource (1 of 2) │ ├─ Linkage ………………………………………… http://epsg-registry.org/ │ └─ Function ……………………………………… Browse └─ Online resource (2 of 2) ├─ Linkage ………………………………………… jdbc:derby:/my/path/to/SIS_DATA/Databases/SpatialMetadata ├─ Description ……………………………… EPSG dataset version 8.9 on “Apache Derby Embedded JDBC Driver” version 10.12. └─ Function ……………………………………… ConnectionThe online resource description with a “Connection” function is a SIS extension.
getAuthority
in interface AuthorityFactory
null
if unknown.AbstractFactory.getVendor()
public Set<String> getCodeSpaces()
createFoo(String)
methods, for example "EPSG"
in "EPSG:4326"
.
Namespaces are case-insensitive.
The namespaces are closely related to the authority. Often the namespace is the authority identifier, but not always.
EPSGFactory
authority identifier is "EPSG"
and its getCodeSpaces()
method returns a set containing "EPSG"
. So in this example,
authority and namespace match. That namespace value means that EPSGFactory.createFoo(String)
methods accept both "EPSG:4326"
(case-insensitive) and "4326"
codes as argument.EPSGDataAccess
authority identifier is "EPSG"
but its getCodeSpaces()
method returns an empty set. This means that despite the EPSG authority,
EPSGDataAccess.createFoo(String)
methods accept only codes like "4326"
without
"EPSG:"
prefix (the reason is that EPSGDataAccess
is not expected to be used directly).CommonAuthorityFactory
authority identifiers are ISO 19128 and OGC 06-042 (the WMS specification)
but its getCodeSpaces()
method returns a set containing "CRS"
, "AUTO"
and "AUTO2"
.
While ISO 19128 is defined as the first authority, the namespace is actually defined by OGC.public InternationalString getDescriptionText(String code) throws FactoryException
createObject(String)
for the given code
and returns the object name.
This may be costly since it involves a full object creation.
Subclasses are encouraged to provide a more efficient implementation if they can.getDescriptionText
in interface AuthorityFactory
code
- value allocated by authority.null
if the object
corresponding to the specified code
has no description.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if an error occurred while fetching the description.public abstract IdentifiedObject createObject(String code) throws NoSuchAuthorityCodeException, FactoryException
Datum
,
CoordinateSystem
, CoordinateReferenceSystem
or CoordinateOperation
.
This method may be used when the type of the object to create is unknown.
But it is recommended to invoke the most specific createFoo(String)
method when
the desired type is known, both for performance reason and for avoiding ambiguity.
GeodeticAuthorityFactory
implementation, all createFoo(String)
methods ultimately
delegate to this createObject(String)
method and verify if the created object is of the desired type.
Overriding this method is sufficient for supporting the more specific createFoo(String)
methods,
but subclasses are encouraged to override the later for efficiency.createObject
in interface AuthorityFactory
code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.AbstractIdentifiedObject
public CoordinateReferenceSystem createCoordinateReferenceSystem(String code) throws NoSuchAuthorityCodeException, FactoryException
GeographicCRS
, ProjectedCRS
,
VerticalCRS
or CompoundCRS
.
If the coordinate reference system type is known at compile time,
it is recommended to invoke the most precise method instead of this one (for example
createGeographicCRS(String)
instead of
createCoordinateReferenceSystem(code)
if the caller know he is asking for a
geographic coordinate reference system).
GeodeticAuthorityFactory
subclass in use.
Two frequently used authorities are "CRS" and "EPSG", which include the following codes:
Code | Type | Description |
---|---|---|
CRS:84 | Geographic | Like EPSG:4326 except for (longitude, latitude) axis order |
EPSG:4326 | Geographic | World Geodetic System 1984 |
EPSG:4979 | Geographic 3D | World Geodetic System 1984 |
EPSG:4978 | Geocentric | World Geodetic System 1984 |
EPSG:3395 | Projected | WGS 84 / World Mercator |
EPSG:5714 | Vertical | Mean Sea Level height |
EPSG:6349 | Compound | NAD83(2011) + NAVD88 height |
EPSG:5800 | Engineering | Astra Minas Grid |
createObject(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.AbstractCRS
,
CRS.forCode(String)
public GeographicCRS createGeographicCRS(String code) throws NoSuchAuthorityCodeException, FactoryException
GeodeticAuthorityFactory
subclass in use.
Two frequently used authorities are "CRS" and "EPSG", which include the following codes:
Code | Type | Description |
---|---|---|
CRS:27 | Geographic | Like EPSG:4267 except for (longitude, latitude) axis order |
CRS:83 | Geographic | Like EPSG:4269 except for (longitude, latitude) axis order |
CRS:84 | Geographic | Like EPSG:4326 except for (longitude, latitude) axis order |
EPSG:4322 | Geographic | World Geodetic System 1972 |
EPSG:4985 | Geographic 3D | World Geodetic System 1972 |
EPSG:4326 | Geographic | World Geodetic System 1984 |
EPSG:4979 | Geographic 3D | World Geodetic System 1984 |
EPSG:4267 | Geographic | North American Datum 1927 |
EPSG:4269 | Geographic | North American Datum 1983 |
EPSG:4230 | Geographic | European Datum 1950 |
EPSG:4258 | Geographic | European Terrestrial Reference Frame 1989 |
EPSG:4937 | Geographic 3D | European Terrestrial Reference Frame 1989 |
EPSG:4047 | Geographic | GRS 1980 Authalic Sphere |
createCoordinateReferenceSystem(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultGeographicCRS
,
CommonCRS.geographic()
,
CommonCRS.geographic3D()
public GeocentricCRS createGeocentricCRS(String code) throws NoSuchAuthorityCodeException, FactoryException
GeodeticAuthorityFactory
subclass in use.
A frequently used authority is "EPSG", which includes the following codes:
Code | Description |
---|---|
EPSG:4936 | European Terrestrial Reference Frame 1989 |
EPSG:4978 | World Geodetic System 1984 |
EPSG:4984 | World Geodetic System 1972 |
createCoordinateReferenceSystem(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed.DefaultGeocentricCRS
,
CommonCRS.geocentric()
public ProjectedCRS createProjectedCRS(String code) throws NoSuchAuthorityCodeException, FactoryException
GeodeticAuthorityFactory
subclass in use.
A frequently used authority is "EPSG", which contains more than 4000 codes for projected CRS.
Some of them are:
Code | Description |
---|---|
EPSG:3034 | ETRS89 / Lambert Conic Conformal Europe |
EPSG:3395 | WGS 84 / World Mercator |
EPSG:6350 | NAD83(2011) / Conus Albers Equal Area |
createCoordinateReferenceSystem(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultProjectedCRS
public VerticalCRS createVerticalCRS(String code) throws NoSuchAuthorityCodeException, FactoryException
GeodeticAuthorityFactory
subclass in use.
A frequently used authority is "EPSG", which includes the following codes:
Code | Description |
---|---|
EPSG:5715 | Mean Sea Level depth |
EPSG:5714 | Mean Sea Level height |
createCoordinateReferenceSystem(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultVerticalCRS
,
CommonCRS.Vertical.crs()
public TemporalCRS createTemporalCRS(String code) throws NoSuchAuthorityCodeException, FactoryException
createCoordinateReferenceSystem(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultTemporalCRS
,
CommonCRS.Temporal.crs()
public DefaultParametricCRS createParametricCRS(String code) throws NoSuchAuthorityCodeException, FactoryException
createCoordinateReferenceSystem(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.
org.opengis.referencing.crs.ParametricCRS
. This change is pending GeoAPI revision.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultParametricCRS
public CompoundCRS createCompoundCRS(String code) throws NoSuchAuthorityCodeException, FactoryException
GeodeticAuthorityFactory
subclass in use.
A frequently used authority is "EPSG", which includes the following codes:
Code | Description |
---|---|
EPSG:6349 | NAD83(2011) + NAVD88 height |
EPSG:7423 | ETRS89 + EVRF2007 height |
createCoordinateReferenceSystem(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultCompoundCRS
public DerivedCRS createDerivedCRS(String code) throws NoSuchAuthorityCodeException, FactoryException
DerivedCRS
can not be ProjectedCRS
themselves, but may be derived from a projected CRS.
createCoordinateReferenceSystem(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultDerivedCRS
public EngineeringCRS createEngineeringCRS(String code) throws NoSuchAuthorityCodeException, FactoryException
GeodeticAuthorityFactory
subclass in use.
A frequently used authority is "EPSG", which includes the following codes:
Code | Description |
---|---|
EPSG:5800 | Astra Minas Grid |
createCoordinateReferenceSystem(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultEngineeringCRS
public ImageCRS createImageCRS(String code) throws NoSuchAuthorityCodeException, FactoryException
createCoordinateReferenceSystem(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultImageCRS
public Datum createDatum(String code) throws NoSuchAuthorityCodeException, FactoryException
GeodeticDatum
, VerticalDatum
or TemporalDatum
.
If the datum is known at compile time, it is recommended to invoke the most precise method instead of this one.
GeodeticAuthorityFactory
subclass in use.
A frequently used authority is "EPSG", which contains hundred of datum. Some of them are:
Code | Type | Description |
---|---|---|
EPSG:6326 | Geodetic | World Geodetic System 1984 |
EPSG:6322 | Geodetic | World Geodetic System 1972 |
EPSG:1027 | Vertical | EGM2008 geoid |
EPSG:5100 | Vertical | Mean Sea Level |
EPSG:9315 | Engineering | Seismic bin grid datum |
createObject(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.AbstractDatum
public GeodeticDatum createGeodeticDatum(String code) throws NoSuchAuthorityCodeException, FactoryException
GeodeticAuthorityFactory
subclass in use.
A frequently used authority is "EPSG", which contains hundred of datum. Some of them are:
Code | Description |
---|---|
EPSG:6326 | World Geodetic System 1984 |
EPSG:6322 | World Geodetic System 1972 |
EPSG:6269 | North American Datum 1983 |
EPSG:6258 | European Terrestrial Reference System 1989 |
createDatum(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultGeodeticDatum
,
CommonCRS.datum()
public VerticalDatum createVerticalDatum(String code) throws NoSuchAuthorityCodeException, FactoryException
GeodeticAuthorityFactory
subclass in use.
A frequently used authority is "EPSG", which includes the following codes:
Code | Description |
---|---|
EPSG:5100 | Mean Sea Level |
EPSG:1027 | EGM2008 geoid |
EPSG:1131 | Japanese Geodetic Datum 2011 (vertical) |
EPSG:5215 | European Vertical Reference Frame 2007 |
createDatum(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultVerticalDatum
,
CommonCRS.Vertical.datum()
public TemporalDatum createTemporalDatum(String code) throws NoSuchAuthorityCodeException, FactoryException
createDatum(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultTemporalDatum
,
CommonCRS.Temporal.datum()
public DefaultParametricDatum createParametricDatum(String code) throws NoSuchAuthorityCodeException, FactoryException
createDatum(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.
org.opengis.referencing.datum.ParametricDatum
. This change is pending GeoAPI revision.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultParametricDatum
public EngineeringDatum createEngineeringDatum(String code) throws NoSuchAuthorityCodeException, FactoryException
GeodeticAuthorityFactory
subclass in use.
A frequently used authority is "EPSG", which includes the following codes:
Code | Description |
---|---|
EPSG:9315 | Seismic bin grid datum |
EPSG:9300 | Astra Minas |
createDatum(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultEngineeringDatum
public ImageDatum createImageDatum(String code) throws NoSuchAuthorityCodeException, FactoryException
createDatum(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultImageDatum
public Ellipsoid createEllipsoid(String code) throws NoSuchAuthorityCodeException, FactoryException
GeodeticAuthorityFactory
subclass in use.
A frequently used authority is "EPSG", which includes the following codes:
Code | Description |
---|---|
EPSG:7030 | WGS 84 |
EPSG:7034 | Clarke 1880 |
EPSG:7048 | GRS 1980 Authalic Sphere |
createObject(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultEllipsoid
,
CommonCRS.ellipsoid()
public PrimeMeridian createPrimeMeridian(String code) throws NoSuchAuthorityCodeException, FactoryException
GeodeticAuthorityFactory
subclass in use.
A frequently used authority is "EPSG", which includes the following codes:
Code | Description |
---|---|
EPSG:8901 | Greenwich |
EPSG:8903 | Paris |
EPSG:8904 | Bogota |
EPSG:8905 | Madrid |
EPSG:8906 | Rome |
createObject(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultPrimeMeridian
,
CommonCRS.primeMeridian()
public Extent createExtent(String code) throws NoSuchAuthorityCodeException, FactoryException
GeodeticAuthorityFactory
subclass in use.
A frequently used authority is "EPSG", which includes the following codes:
Code | Description |
---|---|
EPSG:1262 | World |
EPSG:3391 | World - between 80°S and 84°N |
createObject(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultExtent
public CoordinateSystem createCoordinateSystem(String code) throws NoSuchAuthorityCodeException, FactoryException
EllipsoidalCS
, CartesianCS
, VerticalCS
or TimeCS
.
If the coordinate system is known at compile time, it is recommended to invoke the most precise
method instead of this one.
GeodeticAuthorityFactory
subclass in use.
A frequently used authority is "EPSG", which includes the following codes:
Code | Type | Axes | Orientations | Unit |
---|---|---|---|---|
EPSG:4496 | Cartesian 2D CS | easting, northing (E,N) | east, north | metre |
EPSG:6422 | Ellipsoidal 2D CS | latitude, longitude | north, east | degree |
EPSG:6423 | Ellipsoidal 3D CS | latitude, longitude, ellipsoidal height | north, east, up | degree, degree, metre |
EPSG:6404 | Spherical 3D CS | latitude, longitude, radius | north, east, up | degree, degree, metre |
EPSG:6499 | Vertical CS | height (H) | up | metre |
createObject(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.AbstractCS
,
CoordinateSystems.getEpsgCode(Unit, AxisDirection...)
public EllipsoidalCS createEllipsoidalCS(String code) throws NoSuchAuthorityCodeException, FactoryException
GeodeticAuthorityFactory
subclass in use.
A frequently used authority is "EPSG", which includes the following codes:
Code | Axes | Orientations | Unit |
---|---|---|---|
EPSG:6422 | latitude, longitude | north, east | degree |
EPSG:6424 | longitude, latitude | east, north | degree |
EPSG:6429 | longitude, latitude | east, north | radian |
EPSG:6423 | latitude, longitude, ellipsoidal height | north, east, up | degree, degree, metre |
createCoordinateSystem(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultEllipsoidalCS
public VerticalCS createVerticalCS(String code) throws NoSuchAuthorityCodeException, FactoryException
GeodeticAuthorityFactory
subclass in use.
A frequently used authority is "EPSG", which includes the following codes:
Code | Axes | Orientations | Unit |
---|---|---|---|
EPSG:6498 | depth (D) | down | metre |
EPSG:6499 | height (H) | up | metre |
createCoordinateSystem(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultVerticalCS
public TimeCS createTimeCS(String code) throws NoSuchAuthorityCodeException, FactoryException
createCoordinateSystem(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultTimeCS
public DefaultParametricCS createParametricCS(String code) throws NoSuchAuthorityCodeException, FactoryException
createCoordinateSystem(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.
org.opengis.referencing.cs.ParametricCS
. This change is pending GeoAPI revision.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultParametricCS
public CartesianCS createCartesianCS(String code) throws NoSuchAuthorityCodeException, FactoryException
GeodeticAuthorityFactory
subclass in use.
A frequently used authority is "EPSG", which includes the following codes:
Code | Axes | Orientations | Unit |
---|---|---|---|
EPSG:4406 | easting, northing (E,N) | east, north | kilometre |
EPSG:4496 | easting, northing (E,N) | east, north | metre |
EPSG:4500 | northing, easting (N,E) | north, east | metre |
EPSG:4491 | westing, northing (W,N) | west, north | metre |
createCoordinateSystem(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultCartesianCS
public SphericalCS createSphericalCS(String code) throws NoSuchAuthorityCodeException, FactoryException
GeodeticAuthorityFactory
subclass in use.
A frequently used authority is "EPSG", which includes the following codes:
Code | Axes | Orientations | Unit |
---|---|---|---|
EPSG:6404 | latitude, longitude, radius | north, east, up | degree, degree, metre |
createCoordinateSystem(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultSphericalCS
public CylindricalCS createCylindricalCS(String code) throws NoSuchAuthorityCodeException, FactoryException
createCoordinateSystem(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultCylindricalCS
public PolarCS createPolarCS(String code) throws NoSuchAuthorityCodeException, FactoryException
createCoordinateSystem(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultPolarCS
public CoordinateSystemAxis createCoordinateSystemAxis(String code) throws NoSuchAuthorityCodeException, FactoryException
GeodeticAuthorityFactory
subclass in use.
A frequently used authority is "EPSG", which includes the following codes:
Code | Description | Unit |
---|---|---|
EPSG:106 | Latitude (φ) | degree |
EPSG:107 | Longitude (λ) | degree |
EPSG:1 | Easting (E) | metre |
EPSG:2 | Northing (N) | metre |
createObject(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultCoordinateSystemAxis
public Unit<?> createUnit(String code) throws NoSuchAuthorityCodeException, FactoryException
GeodeticAuthorityFactory
subclass in use.
A frequently used authority is "EPSG", which includes the following codes:
Code | Description |
---|---|
EPSG:9002 | decimal degree |
EPSG:9001 | metre |
EPSG:9030 | kilometre |
EPSG:1040 | second |
EPSG:1029 | year |
Units.valueOfEPSG(int)
for a more complete list of codes.createObject(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.Units.valueOfEPSG(int)
public ParameterDescriptor<?> createParameterDescriptor(String code) throws NoSuchAuthorityCodeException, FactoryException
GeodeticAuthorityFactory
subclass in use.
A frequently used authority is "EPSG", which includes the following codes:
Code | Description |
---|---|
EPSG:8801 | Latitude of natural origin |
EPSG:8802 | Longitude of natural origin |
EPSG:8805 | Scale factor at natural origin |
EPSG:8806 | False easting |
EPSG:8807 | False northing |
createObject(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultParameterDescriptor
,
Apache SIS™ Coordinate Operation Methodspublic OperationMethod createOperationMethod(String code) throws NoSuchAuthorityCodeException, FactoryException
OperationMethod
is a kind of metadata: it does not perform any coordinate operation
(e.g. map projection) by itself, but tells us what is needed in order to perform such operation.
Available methods depend both on the set declared by the authority and on the
list of methods implemented in Apache SIS.
In order to be supported, an operation method must have its formulas coded in the Java programming language.
See MathTransformProvider
for more information.
createObject(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.DefaultOperationMethod
,
Apache SIS™ Coordinate Operation Methodspublic CoordinateOperation createCoordinateOperation(String code) throws NoSuchAuthorityCodeException, FactoryException
GeodeticAuthorityFactory
subclass in use.
A frequently used authority is "EPSG", which includes the following codes:
Code | Description |
---|---|
EPSG:1133 | ED50 to WGS 84 (1) |
EPSG:1241 | NAD27 to NAD83 (1) |
EPSG:1173 | NAD27 to WGS 84 (4) |
EPSG:6326 | NAD83(2011) to NAVD88 height (1) |
createObject(String)
and casts the result.
If the result can not be casted, then a NoSuchAuthorityCodeException
is thrown.code
- value allocated by authority.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the object creation failed for some other reason.AbstractCoordinateOperation
public Set<CoordinateOperation> createFromCoordinateReferenceSystemCodes(String sourceCRS, String targetCRS) throws NoSuchAuthorityCodeException, FactoryException
sourceCRS
- coded value of source coordinate reference system.targetCRS
- coded value of target coordinate reference system.sourceCRS
to targetCRS
.NoSuchAuthorityCodeException
- if a specified code was not found.FactoryException
- if the object creation failed for some other reason.public IdentifiedObjectFinder newIdentifiedObjectFinder() throws FactoryException
ID[…]
" or
"AUTHORITY[…]
" element in Well Known Text.FactoryException
- if the finder can not be created.IdentifiedObjects.newFinder(String)
protected final String trimNamespace(String code)
"EPSG:"
prefix, then the prefix is removed.
Otherwise, the string is returned unchanged (except for leading and trailing spaces).code
- the code to trim.getCodeSpaces()
.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.