Package com.luciad.reference.format
Class TLcdCRSReferenceParser
java.lang.Object
com.luciad.reference.format.TLcdCRSReferenceParser
- All Implemented Interfaces:
ILcdModelReferenceParser,ILcdXYWorldReferenceParser
public class TLcdCRSReferenceParser
extends Object
implements ILcdModelReferenceParser, ILcdXYWorldReferenceParser
Parses the reference according to the CRS name space.
See Web Map Service 1.3 specification
(https://portal.opengeospatial.org/files/?artifact_id=7196).
Currently CRS:84, CRS:83, CRS:27 and CRS:1 are supported.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of supported codes of projection ids by this parser.parseModelReference(String aModelReferenceAsString) Returns theILcdModelReferencethat corresponds to the specified string representation.parseXYWorldReference(String aXYWorldReferenceAsString) Returns theILcdXYWorldReferencethat is formatted as a String.
-
Constructor Details
-
TLcdCRSReferenceParser
public TLcdCRSReferenceParser()
-
-
Method Details
-
parseModelReference
Description copied from interface:ILcdModelReferenceParserReturns theILcdModelReferencethat corresponds to the specified string representation.- Specified by:
parseModelReferencein interfaceILcdModelReferenceParser- Parameters:
aModelReferenceAsString- 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
public ILcdXYWorldReference parseXYWorldReference(String aXYWorldReferenceAsString) throws ParseException Description copied from interface:ILcdXYWorldReferenceParserReturns theILcdXYWorldReferencethat is formatted as a String.- Specified by:
parseXYWorldReferencein interfaceILcdXYWorldReferenceParser- Parameters:
aXYWorldReferenceAsString- the String representation of theILcdXYWorldReference.- Returns:
- the
ILcdXYWorldReferencethat is formatted as a String. Nevernull. - Throws:
ParseException- If theILcdXYWorldReferencecannot 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
-