Package com.luciad.reference.format
Class TLcdSpatialReferenceParser
java.lang.Object
com.luciad.reference.format.TLcdSpatialReferenceParser
- All Implemented Interfaces:
ILcdModelReferenceParser,ILcdXYWorldReferenceParser
@Deprecated
public class TLcdSpatialReferenceParser
extends Object
implements ILcdModelReferenceParser, ILcdXYWorldReferenceParser
Deprecated.
It's encouraged to use TLcdEPSGReferenceParser instead
Parser for codes that are maintained by
http://spatialreference.org/. This parser
requires an internet connection to work since it queries http://spatialreference.org/.- Since:
- 11.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseModelReference(String aString) Deprecated.Returns theILcdModelReferencethat corresponds to the specified string representation.parseXYWorldReference(String aString) Deprecated.Returns theILcdXYWorldReferencethat is formatted as a String.
-
Constructor Details
-
TLcdSpatialReferenceParser
public TLcdSpatialReferenceParser()Deprecated.
-
-
Method Details
-
parseModelReference
Deprecated.Returns theILcdModelReferencethat corresponds to the specified string representation.This parser accepts two kinds of Strings.
- The first kind of String has the form "EPSG:n", or simply "n". For example, "EPSG:4326". This reference will be the reference found at "http://spatialreference.org/ref/epsg/4326/".
- The second kind of String is the name of the reference. This For example, "wgs-84". This reference will be the reference found at "http://spatialreference.org/ref/epsg/wgs-84/"
- Specified by:
parseModelReferencein interfaceILcdModelReferenceParser- Parameters:
aString- the String representation to be converted to anILcdModelReference.- Returns:
- the
ILcdModelReferencethat corresponds to the specified string, nevernull. - Throws:
ParseException- if this parser cannot convert the specified string into a model reference (e.g. if the code is not supported or if the code was not valid)
-
parseXYWorldReference
Deprecated.Returns theILcdXYWorldReferencethat is formatted as a String.This parser accepts two kinds of Strings.
- The first kind of String has the form "EPSG:n", or simply "n". For example, "EPSG:4326". This reference will be the reference found at "http://spatialreference.org/ref/epsg/4326/".
- The second kind of String is the name of the reference. This E.g. "wgs-84". This reference will be the reference found at "http://spatialreference.org/ref/epsg/wgs-84/"
- Specified by:
parseXYWorldReferencein interfaceILcdXYWorldReferenceParser- Parameters:
aString- the String representation of theILcdXYWorldReference.- Returns:
- the
ILcdXYWorldReferencethat is formatted as a String. Nevernull. - Throws:
ParseException- If theILcdXYWorldReferencecannot be created from the String.
-