org.opengis.referencing.crs
Interface CRSFactory
-
- All Superinterfaces:
- Factory, ObjectFactory
@UML(identifier="CS_CoordinateSystemFactory", specification=OGC_01009) public interface CRSFactory extends ObjectFactory
Builds up complex coordinate reference systems from simpler objects or values.CRSFactoryallows applications to make coordinate reference systems that cannot be created by aCRSAuthorityFactory. This factory is very flexible, whereas the authority factory is easier to use. SoCRSAuthorityFactorycan be used to make "standard" coordinate reference systems, andCRSFactorycan be used to make "special" coordinate reference systems. For example, the EPSG authority has codes for USA state plane coordinate systems using the NAD83 datum, but these coordinate systems always use meters. EPSG does not have codes for NAD83 state plane coordinate systems that use feet units. This factory lets an application create such a hybrid coordinate system.- Since:
- GeoAPI 1.0
- See Also:
CSFactory,DatumFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description CompoundCRScreateCompoundCRS(java.util.Map<java.lang.String,? extends java.lang.Object> properties, CoordinateReferenceSystem[] elements)Creates a compound coordinate reference system from an ordered list ofCoordinateReferenceSystemobjects.DerivedCRScreateDerivedCRS(java.util.Map<java.lang.String,? extends java.lang.Object> properties, OperationMethod method, CoordinateReferenceSystem base, MathTransform baseToDerived, CoordinateSystem derivedCS)Creates a derived coordinate reference system.EngineeringCRScreateEngineeringCRS(java.util.Map<java.lang.String,? extends java.lang.Object> properties, EngineeringDatum datum, CoordinateSystem cs)Creates a engineering coordinate reference system.CoordinateReferenceSystemcreateFromWKT(java.lang.String wkt)Creates a coordinate reference system object from a string.CoordinateReferenceSystemcreateFromXML(java.lang.String xml)Creates a coordinate reference system object from a XML string.GeocentricCRScreateGeocentricCRS(java.util.Map<java.lang.String,? extends java.lang.Object> properties, GeodeticDatum datum, CartesianCS cs)Creates a geocentric coordinate reference system from a cartesian coordinate system.GeocentricCRScreateGeocentricCRS(java.util.Map<java.lang.String,? extends java.lang.Object> properties, GeodeticDatum datum, SphericalCS cs)Creates a geocentric coordinate reference system from a spherical coordinate system.GeographicCRScreateGeographicCRS(java.util.Map<java.lang.String,? extends java.lang.Object> properties, GeodeticDatum datum, EllipsoidalCS cs)Creates a geographic coordinate reference system.ImageCRScreateImageCRS(java.util.Map<java.lang.String,? extends java.lang.Object> properties, ImageDatum datum, AffineCS cs)Creates an image coordinate reference system.ProjectedCRScreateProjectedCRS(java.util.Map<java.lang.String,? extends java.lang.Object> properties, OperationMethod method, GeographicCRS base, MathTransform baseToDerived, CartesianCS derivedCS)Creates a projected coordinate reference system from a transform.TemporalCRScreateTemporalCRS(java.util.Map<java.lang.String,? extends java.lang.Object> properties, TemporalDatum datum, TimeCS cs)Creates a temporal coordinate reference system.VerticalCRScreateVerticalCRS(java.util.Map<java.lang.String,? extends java.lang.Object> properties, VerticalDatum datum, VerticalCS cs)Creates a vertical coordinate reference system.
-
-
-
Method Detail
-
createCompoundCRS
@UML(identifier="createCompoundCoordinateSystem", specification=OGC_01009) CompoundCRS createCompoundCRS(java.util.Map<java.lang.String,? extends java.lang.Object> properties, CoordinateReferenceSystem[] elements) throws FactoryException
Creates a compound coordinate reference system from an ordered list ofCoordinateReferenceSystemobjects.- Parameters:
properties- Name and other properties to give to the new object. Available properties are listed there.elements- ordered array ofCoordinateReferenceSystemobjects.- Throws:
FactoryException- if the object creation failed.
-
createEngineeringCRS
@UML(identifier="createLocalCoordinateSystem", specification=OGC_01009) EngineeringCRS createEngineeringCRS(java.util.Map<java.lang.String,? extends java.lang.Object> properties, EngineeringDatum datum, CoordinateSystem cs) throws FactoryException
Creates a engineering coordinate reference system.- Parameters:
properties- Name and other properties to give to the new object. Available properties are listed there.datum- Engineering datum to use in created CRS.cs- The coordinate system for the created CRS.- Throws:
FactoryException- if the object creation failed.
-
createImageCRS
ImageCRS createImageCRS(java.util.Map<java.lang.String,? extends java.lang.Object> properties, ImageDatum datum, AffineCS cs) throws FactoryException
Creates an image coordinate reference system.- Parameters:
properties- Name and other properties to give to the new object. Available properties are listed there.datum- Image datum to use in created CRS.cs- The Cartesian or Oblique Cartesian coordinate system for the created CRS.- Throws:
FactoryException- if the object creation failed.
-
createTemporalCRS
TemporalCRS createTemporalCRS(java.util.Map<java.lang.String,? extends java.lang.Object> properties, TemporalDatum datum, TimeCS cs) throws FactoryException
Creates a temporal coordinate reference system.- Parameters:
properties- Name and other properties to give to the new object. Available properties are listed there.datum- Temporal datum to use in created CRS.cs- The Temporal coordinate system for the created CRS.- Throws:
FactoryException- if the object creation failed.
-
createVerticalCRS
@UML(identifier="createVerticalCoordinateSystem", specification=OGC_01009) VerticalCRS createVerticalCRS(java.util.Map<java.lang.String,? extends java.lang.Object> properties, VerticalDatum datum, VerticalCS cs) throws FactoryException
Creates a vertical coordinate reference system.- Parameters:
properties- Name and other properties to give to the new object. Available properties are listed there.datum- Vertical datum to use in created CRS.cs- The Vertical coordinate system for the created CRS.- Throws:
FactoryException- if the object creation failed.
-
createGeocentricCRS
GeocentricCRS createGeocentricCRS(java.util.Map<java.lang.String,? extends java.lang.Object> properties, GeodeticDatum datum, CartesianCS cs) throws FactoryException
Creates a geocentric coordinate reference system from a cartesian coordinate system.- Parameters:
properties- Name and other properties to give to the new object. Available properties are listed there.datum- Geodetic datum to use in created CRS.cs- The cartesian coordinate system for the created CRS.- Throws:
FactoryException- if the object creation failed.
-
createGeocentricCRS
GeocentricCRS createGeocentricCRS(java.util.Map<java.lang.String,? extends java.lang.Object> properties, GeodeticDatum datum, SphericalCS cs) throws FactoryException
Creates a geocentric coordinate reference system from a spherical coordinate system.- Parameters:
properties- Name and other properties to give to the new object. Available properties are listed there.datum- Geodetic datum to use in created CRS.cs- The spherical coordinate system for the created CRS.- Throws:
FactoryException- if the object creation failed.
-
createGeographicCRS
@UML(identifier="createGeographicCoordinateSystem", specification=OGC_01009) GeographicCRS createGeographicCRS(java.util.Map<java.lang.String,? extends java.lang.Object> properties, GeodeticDatum datum, EllipsoidalCS cs) throws FactoryException
Creates a geographic coordinate reference system. It could be Latitude/Longitude or Longitude/Latitude.- Parameters:
properties- Name and other properties to give to the new object. Available properties are listed there.datum- Geodetic datum to use in created CRS.cs- The ellipsoidal coordinate system for the created CRS.- Throws:
FactoryException- if the object creation failed.
-
createDerivedCRS
@UML(identifier="createFittedCoordinateSystem", specification=OGC_01009) DerivedCRS createDerivedCRS(java.util.Map<java.lang.String,? extends java.lang.Object> properties, OperationMethod method, CoordinateReferenceSystem base, MathTransform baseToDerived, CoordinateSystem derivedCS) throws FactoryException
Creates a derived coordinate reference system. If the transformation is an affine map performing a rotation, then any mixed axes must have identical units. For example, a (lat_deg, lon_deg, height_feet) system can be rotated in the (lat, lon) plane, since both affected axes are in degrees. But you should not rotate this coordinate system in any other plane.It is the user's responsability to ensure that the
baseToDerivedtransform performs all required steps, including unit conversions and change of axis order, if needed.- Parameters:
properties- Name and other properties to give to the new object. Available properties are listed there. Properties for theConversionobject to be created can be specified with the"conversion."prefix added in front of property names (example:"conversion.name").method- A description of the method for the conversion.base- Coordinate reference system to base the derived CRS on. The number of axes must matches the source dimentions of the transformbaseToDerived.baseToDerived- The transform from the base CRS to the newly created CRS.derivedCS- The coordinate system for the derived CRS. The number of axes must matches the target dimensions of the transformbaseToDerived.- Throws:
FactoryException- if the object creation failed.
-
createProjectedCRS
@UML(identifier="createProjectedCoordinateSystem", specification=OGC_01009) ProjectedCRS createProjectedCRS(java.util.Map<java.lang.String,? extends java.lang.Object> properties, OperationMethod method, GeographicCRS base, MathTransform baseToDerived, CartesianCS derivedCS) throws FactoryException
Creates a projected coordinate reference system from a transform.It is the user's responsability to ensure that the
baseToDerivedtransform performs all required steps, including unit conversions and change of axis order, if needed.- Parameters:
properties- Name and other properties to give to the new object. Available properties are listed there. Properties for theProjectionobject to be created can be specified with the"conversion."prefix added in front of property names (example:"conversion.name").method- A description of the method for the projection.base- Geographic coordinate reference system to base the projection on. The number of axes must matches the source dimentions of the transformbaseToDerived.baseToDerived- The transform from the geographic to the projected CRS.derivedCS- The coordinate system for the projected CRS. The number of axes must matches the target dimensions of the transformbaseToDerived.- Throws:
FactoryException- if the object creation failed.
-
createFromXML
@UML(identifier="createFromXML", specification=OGC_01009) CoordinateReferenceSystem createFromXML(java.lang.String xml) throws FactoryException
Creates a coordinate reference system object from a XML string.- Parameters:
xml- Coordinate reference system encoded in XML format.- Throws:
FactoryException- if the object creation failed.
-
createFromWKT
@UML(identifier="createFromWKT", specification=OGC_01009) CoordinateReferenceSystem createFromWKT(java.lang.String wkt) throws FactoryException
Creates a coordinate reference system object from a string. The definition for WKT is shown using Extended Backus Naur Form (EBNF).- Parameters:
wkt- Coordinate system encoded in Well-Known Text format.- Throws:
FactoryException- if the object creation failed.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG