public class IlvWKTProjectionFactory extends Object
IlvWKTCoordinateSystemFactory
to instantiate a projection from a WKT string.IlvWKTCoordinateSystemFactory
Constructor and Description |
---|
IlvWKTProjectionFactory()
Creates a new projection factory.
|
Modifier and Type | Method and Description |
---|---|
IlvProjection |
fromName(String name,
IlvGeographicCoordinateSystem geocs,
IlvLinearUnit lunit,
Properties oparams)
Returns the projection corresponding to the specified name.
|
String |
toWKT(IlvProjection projection,
boolean withParameters)
Returns the WKT representation of the specified projection.
|
String |
toWKT(IlvProjection projection,
boolean withParameters,
IlvLinearUnit lunit,
IlvAngularUnit aunit)
Returns the WKT representation of the specified projection.
|
String |
wktName(IlvProjection projection,
Properties params)
Returns the WKT name of the specified projection, with its parameters
set as properties, using meters and degrees.
|
String |
wktName(IlvProjection projection,
Properties params,
IlvLinearUnit lunit,
IlvAngularUnit aunit)
Returns the WKT name of the specified projection, with its parameters
set as properties, using the specified units.
|
public IlvWKTProjectionFactory()
public IlvProjection fromName(String name, IlvGeographicCoordinateSystem geocs, IlvLinearUnit lunit, Properties oparams) throws IlvProjectionException
IlvProjection.setUnit()
), since unit conversion is performed
by the transformation.name
- The name of the projection.geocs
- The geographic coordinate system for the projection.lunit
- The linear unit used in the projection.oparams
- The projection parameters.null
if the projection is unknown.IlvProjectionException
- If the projection could not be initialized.public String wktName(IlvProjection projection, Properties params)
params
must be an empty
Properties
; each projection parameter is set as a property
in this holder.projection
- The projection.params
- The projection parameters.public String wktName(IlvProjection projection, Properties params, IlvLinearUnit lunit, IlvAngularUnit aunit)
params
must be an empty
Properties
; each projection parameter is set as a property
in this holder.projection
- The projection.params
- The projection parameters.lunit
- Linear unit to use for projection parameters in the output string.aunit
- Angular unit of projection parameters in the output string.public String toWKT(IlvProjection projection, boolean withParameters)
projection
- The projection.withParameters
- If true
, the projection parameters
are appended to the WKT representation of the projection.
By default, projection parameters are saved in meters and degrees.toWKT(IlvProjection, boolean, IlvLinearUnit, IlvAngularUnit)
public String toWKT(IlvProjection projection, boolean withParameters, IlvLinearUnit lunit, IlvAngularUnit aunit)
projection
- The projection.withParameters
- If true
, the projection parameters
are appended to the WKT representation of the projection.lunit
- Linear unit to use for projection parameters in the output string.aunit
- Angular unit of projection parameters in the output string.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.