public class IlvWKTCoordinateSystemFactory extends Object
IlvCoordinateSystem
s from
WKT.IlvWKTProjectionFactory
,
IlvWKTDatumFactory
Constructor and Description |
---|
IlvWKTCoordinateSystemFactory()
Creates a new default coordinate system factory, with
default projection and datum factories.
|
IlvWKTCoordinateSystemFactory(IlvWKTProjectionFactory projFactory,
IlvWKTDatumFactory datumFactory)
Creates a new coordinate system factory, with the specified
projection and datum factories.
|
Modifier and Type | Method and Description |
---|---|
IlvCoordinateSystem |
fromWKT(String wkt)
Returns the coordinate system described by the specified WKT.
|
IlvWKTDatumFactory |
getDatumFactory()
Returns the datum factory used by this coordinate system factory.
|
IlvWKTProjectionFactory |
getProjectionFactory()
Returns the projection factory used by this coordinate system factory.
|
boolean |
isIgnoringUnknownDatums()
Returns
true if this factory ignores unknown datums and
replaces all unknown datums with a WGS 84 datum. |
void |
setIgnoringUnknownDatums(boolean set)
Sets whether this factory ignores unknown datums and
replaces all unknown datums with a WGS 84 datum.
|
String |
toWKT(IlvCoordinateSystem cs)
Returns the WKT representation of the specified
IlvCoordinateSystem . |
String |
toWKT(IlvGeocentricCoordinateSystem cs)
Returns the WKT representation of the specified
IlvGeocentricCoordinateSystem . |
String |
toWKT(IlvGeographicCoordinateSystem cs)
Returns the WKT representation of the specified
IlvGeographicCoordinateSystem . |
String |
toWKT(IlvMeridian meridian,
IlvAngularUnit unit)
Returns the WKT representation of the specified
IlvMeridian ,
using the specified unit to express the longitude. |
String |
toWKT(IlvProjectedCoordinateSystem cs)
Returns the WKT representation of the specified
IlvProjectedCoordinateSystem . |
String |
toWKT(IlvUnit unit)
Returns the WKT representation of the specified
IlvUnit . |
public IlvWKTCoordinateSystemFactory()
public IlvWKTCoordinateSystemFactory(IlvWKTProjectionFactory projFactory, IlvWKTDatumFactory datumFactory)
public IlvWKTProjectionFactory getProjectionFactory()
public IlvWKTDatumFactory getDatumFactory()
public boolean isIgnoringUnknownDatums()
true
if this factory ignores unknown datums and
replaces all unknown datums with a WGS 84 datum.
false
and the fromWKT
method encounters an unknown datum, it throws an
IllegalArgumentException
.true
if this factory ignores unknown datums.public void setIgnoringUnknownDatums(boolean set)
set
- If true
if this factory ignores unknown datums.public IlvCoordinateSystem fromWKT(String wkt) throws IlvProjectionException
wkt
- The Well Known Text.IlvCoordinateSystem
or null
if the specified WKT does not encode a coordinate system known to JViews.IlvProjectionException
- If the WKT encodes a projection with
bad parameters.IllegalArgumentException
- If the WKT cannot be decoded.public String toWKT(IlvCoordinateSystem cs)
IlvCoordinateSystem
.public String toWKT(IlvProjectedCoordinateSystem cs)
IlvProjectedCoordinateSystem
.
public String toWKT(IlvGeographicCoordinateSystem cs)
IlvGeographicCoordinateSystem
.
public String toWKT(IlvGeocentricCoordinateSystem cs)
IlvGeocentricCoordinateSystem
.
public String toWKT(IlvMeridian meridian, IlvAngularUnit unit)
IlvMeridian
,
using the specified unit to express the longitude.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.