Package com.luciad.reference.format
Class TLcdAUTOReferenceParser
java.lang.Object
com.luciad.reference.format.TLcdAUTOReferenceParser
- All Implemented Interfaces:
ILcdModelReferenceParser
,ILcdXYWorldReferenceParser
public class TLcdAUTOReferenceParser
extends Object
implements ILcdModelReferenceParser, ILcdXYWorldReferenceParser
Reference parser for representations in the AUTO name space.
The format of the String is specified by the OpenGIS Web Map Service (WMS) 1.1.1 specification
(http://portal.opengeospatial.org/files/?artifact_id=1081&version=1&format=pdf).
The AUTO projections are defined by
digitalEarth:
The string passed to the parser is of the form:
Supported defined projections IDs are:
- AUTO 42001 Auto UTM
- AUTO 42002 Auto Transverse Mercator
- AUTO 42003 Auto Orthographic
- AUTO 42004 Auto Equi-rectangular
- AUTO 42005 Auto Mollweide
The string passed to the parser is of the form:
AUTO:wm_id,epsg_units,lon,latwith :
- wm_id = the projection ID.
- epsg_unit = the units the Bounding Box is in, defined by EPSG, e.g. 9001 = meters.
- lon = the longitude of the central point.
- lat = the latitude of the central point.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the list of supported codes of projection ids by this parser.parseModelReference
(String aModelReferenceAsString) Returns theILcdModelReference
that corresponds to the specified string representation.parseXYWorldReference
(String aXYWorldReferenceAsString) Returns theILcdXYWorldReference
that is formatted as a String.
-
Constructor Details
-
TLcdAUTOReferenceParser
public TLcdAUTOReferenceParser()
-
-
Method Details
-
parseModelReference
Description copied from interface:ILcdModelReferenceParser
Returns theILcdModelReference
that corresponds to the specified string representation.- Specified by:
parseModelReference
in interfaceILcdModelReferenceParser
- Parameters:
aModelReferenceAsString
- the String representation to be converted to anILcdModelReference
.- Returns:
- the
ILcdModelReference
that 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
public ILcdXYWorldReference parseXYWorldReference(String aXYWorldReferenceAsString) throws ParseException Description copied from interface:ILcdXYWorldReferenceParser
Returns theILcdXYWorldReference
that is formatted as a String.- Specified by:
parseXYWorldReference
in interfaceILcdXYWorldReferenceParser
- Parameters:
aXYWorldReferenceAsString
- the String representation of theILcdXYWorldReference
.- Returns:
- the
ILcdXYWorldReference
that is formatted as a String. Nevernull
. - Throws:
ParseException
- If theILcdXYWorldReference
cannot be created from the String.
-
getSupportedCodes
Returns the list of supported codes of projection ids by this parser.- Returns:
- the list of supported codes of projection ids by this parser.
- Since:
- 2017.0
-