|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Builds up complex objects from simpler objects or values.
CS_CoordinateSystemFactory
allows applications to make coordinate
systems that cannot be created by a CS_CoordinateSystemAuthorityFactory
.
This factory is very flexible, whereas the authority factory is easier to use.
So CS_CoordinateSystemAuthorityFactory
can be used to make 'standard'
coordinate systems, and CS_CoordinateSystemFactory
can be used to make
'special' coordinate 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.
Method Summary | |
CS_CompoundCoordinateSystem |
createCompoundCoordinateSystem(java.lang.String name,
CS_CoordinateSystem head,
CS_CoordinateSystem tail)
Creates a compound coordinate system. |
CS_Ellipsoid |
createEllipsoid(java.lang.String name,
double semiMajorAxis,
double semiMinorAxis,
CS_LinearUnit linearUnit)
Creates an ellipsoid from radius values. |
CS_FittedCoordinateSystem |
createFittedCoordinateSystem(java.lang.String name,
CS_CoordinateSystem base,
java.lang.String toBaseWKT,
CS_AxisInfo[] arAxes)
Creates a fitted coordinate system. |
CS_Ellipsoid |
createFlattenedSphere(java.lang.String name,
double semiMajorAxis,
double inverseFlattening,
CS_LinearUnit linearUnit)
Creates an ellipsoid from an major radius, and inverse flattening. |
CS_CoordinateSystem |
createFromWKT(java.lang.String wellKnownText)
Creates a coordinate system object from a Well-Known Text string. |
CS_CoordinateSystem |
createFromXML(java.lang.String xml)
Creates a coordinate system object from an XML string. |
CS_GeographicCoordinateSystem |
createGeographicCoordinateSystem(java.lang.String name,
CS_AngularUnit angularUnit,
CS_HorizontalDatum horizontalDatum,
CS_PrimeMeridian primeMeridian,
CS_AxisInfo axis0,
CS_AxisInfo axis1)
Creates a GCS, which could be Lat/Lon or Lon/Lat. |
CS_HorizontalDatum |
createHorizontalDatum(java.lang.String name,
CS_DatumType horizontalDatumType,
CS_Ellipsoid ellipsoid,
CS_WGS84ConversionInfo toWGS84)
Creates horizontal datum from ellipsoid and Bursa-Wolf parameters. |
CS_LocalCoordinateSystem |
createLocalCoordinateSystem(java.lang.String name,
CS_LocalDatum datum,
CS_Unit unit,
CS_AxisInfo[] arAxes)
Creates a local coordinate system. |
CS_LocalDatum |
createLocalDatum(java.lang.String name,
CS_DatumType localDatumType)
Creates a local datum. |
CS_PrimeMeridian |
createPrimeMeridian(java.lang.String name,
CS_AngularUnit angularUnit,
double longitude)
Creates a prime meridian, relative to Greenwich. |
CS_ProjectedCoordinateSystem |
createProjectedCoordinateSystem(java.lang.String name,
CS_GeographicCoordinateSystem gcs,
CS_Projection projection,
CS_LinearUnit linearUnit,
CS_AxisInfo axis0,
CS_AxisInfo axis1)
Creates a projected coordinate system using a projection object. |
CS_Projection |
createProjection(java.lang.String name,
java.lang.String wktProjectionClass,
CS_ProjectionParameter[] parameters)
Creates a projection. |
CS_VerticalCoordinateSystem |
createVerticalCoordinateSystem(java.lang.String name,
CS_VerticalDatum verticalDatum,
CS_LinearUnit verticalUnit,
CS_AxisInfo axis)
Creates a vertical coordinate system from a datum and linear units. |
CS_VerticalDatum |
createVerticalDatum(java.lang.String name,
CS_DatumType verticalDatumType)
Creates a vertical datum from an enumerated type value. |
Method Detail |
public CS_CoordinateSystem createFromXML(java.lang.String xml) throws java.rmi.RemoteException
xml
- Coordinate system encoded in XML format.
java.rmi.RemoteException
- if a remote method call failed.public CS_CoordinateSystem createFromWKT(java.lang.String wellKnownText) throws java.rmi.RemoteException
wellKnownText
- Coordinate system encoded in Well-Known Text format.
java.rmi.RemoteException
- if a remote method call failed.public CS_CompoundCoordinateSystem createCompoundCoordinateSystem(java.lang.String name, CS_CoordinateSystem head, CS_CoordinateSystem tail) throws java.rmi.RemoteException
name
- Name to give new object.head
- Coordinate system to use for earlier ordinates.tail
- Coordinate system to use for later ordinates.
java.rmi.RemoteException
- if a remote method call failed.public CS_FittedCoordinateSystem createFittedCoordinateSystem(java.lang.String name, CS_CoordinateSystem base, java.lang.String toBaseWKT, CS_AxisInfo[] arAxes) throws java.rmi.RemoteException
name
- Name to give new object.base
- Coordinate system to base the fitted CS on.toBaseWKT
- Well-Known Text of transform from returned CS to base CS.arAxes
- Axes for fitted coordinate system. The number of axes must match the source dimension of the transform "toBaseWKT".
java.rmi.RemoteException
- if a remote method call failed.public CS_LocalCoordinateSystem createLocalCoordinateSystem(java.lang.String name, CS_LocalDatum datum, CS_Unit unit, CS_AxisInfo[] arAxes) throws java.rmi.RemoteException
name
- Name to give new object.datum
- Local datum to use in created CS.unit
- Units to use for all axes in created CS.arAxes
- Axes to use in created CS.
java.rmi.RemoteException
- if a remote method call failed.public CS_Ellipsoid createEllipsoid(java.lang.String name, double semiMajorAxis, double semiMinorAxis, CS_LinearUnit linearUnit) throws java.rmi.RemoteException
name
- Name to give new object.semiMajorAxis
- Equatorial radius in supplied linear units.semiMinorAxis
- Polar radius in supplied linear units.linearUnit
- Linear units of ellipsoid axes.
java.rmi.RemoteException
- if a remote method call failed.public CS_Ellipsoid createFlattenedSphere(java.lang.String name, double semiMajorAxis, double inverseFlattening, CS_LinearUnit linearUnit) throws java.rmi.RemoteException
name
- Name to give new object.semiMajorAxis
- Equatorial radius in supplied linear units.inverseFlattening
- Eccentricity of ellipsoid.linearUnit
- Linear units of major axis.
java.rmi.RemoteException
- if a remote method call failed.public CS_ProjectedCoordinateSystem createProjectedCoordinateSystem(java.lang.String name, CS_GeographicCoordinateSystem gcs, CS_Projection projection, CS_LinearUnit linearUnit, CS_AxisInfo axis0, CS_AxisInfo axis1) throws java.rmi.RemoteException
name
- Name to give new object.gcs
- Geographic coordinate system to base projection on.projection
- Projection from GCS to PCS.linearUnit
- Linear units of returned PCS.axis0
- Details of 0th ordinates in returned PCS coordinates.axis1
- Details of 1st ordinates in returned PCS coordinates.
java.rmi.RemoteException
- if a remote method call failed.public CS_Projection createProjection(java.lang.String name, java.lang.String wktProjectionClass, CS_ProjectionParameter[] parameters) throws java.rmi.RemoteException
name
- Name to give new object.wktProjectionClass
- Classification string for projection (e.g. "Transverse_Mercator").parameters
- Parameters to use for projection, in units of intended PCS.
java.rmi.RemoteException
- if a remote method call failed.public CS_HorizontalDatum createHorizontalDatum(java.lang.String name, CS_DatumType horizontalDatumType, CS_Ellipsoid ellipsoid, CS_WGS84ConversionInfo toWGS84) throws java.rmi.RemoteException
name
- Name to give new object.horizontalDatumType
- Type of horizontal datum to create.ellipsoid
- Ellipsoid to use in new horizontal datum.toWGS84
- Suggested approximate conversion from new datum to WGS84.
java.rmi.RemoteException
- if a remote method call failed.public CS_PrimeMeridian createPrimeMeridian(java.lang.String name, CS_AngularUnit angularUnit, double longitude) throws java.rmi.RemoteException
name
- Name to give new object.angularUnit
- Angular units of longitude.longitude
- Longitude of prime meridian in supplied angular units East of Greenwich.
java.rmi.RemoteException
- if a remote method call failed.public CS_GeographicCoordinateSystem createGeographicCoordinateSystem(java.lang.String name, CS_AngularUnit angularUnit, CS_HorizontalDatum horizontalDatum, CS_PrimeMeridian primeMeridian, CS_AxisInfo axis0, CS_AxisInfo axis1) throws java.rmi.RemoteException
name
- Name to give new object.angularUnit
- Angular units for created GCS.horizontalDatum
- Horizontal datum for created GCS.primeMeridian
- Prime Meridian for created GCS.axis0
- Details of 0th ordinates in returned GCS coordinates.axis1
- Details of 1st ordinates in returned GCS coordinates.
java.rmi.RemoteException
- if a remote method call failed.public CS_LocalDatum createLocalDatum(java.lang.String name, CS_DatumType localDatumType) throws java.rmi.RemoteException
name
- Name to give new object.localDatumType
- Type of local datum to create.
java.rmi.RemoteException
- if a remote method call failed.public CS_VerticalDatum createVerticalDatum(java.lang.String name, CS_DatumType verticalDatumType) throws java.rmi.RemoteException
name
- Name to give new object.verticalDatumType
- Type of vertical datum to create.
java.rmi.RemoteException
- if a remote method call failed.public CS_VerticalCoordinateSystem createVerticalCoordinateSystem(java.lang.String name, CS_VerticalDatum verticalDatum, CS_LinearUnit verticalUnit, CS_AxisInfo axis) throws java.rmi.RemoteException
name
- Name to give new object.verticalDatum
- Datum to use for new coordinate system.verticalUnit
- Units to use for new coordinate system.axis
- Axis to use for new coordinate system.
java.rmi.RemoteException
- if a remote method call failed.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |