|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cts.parser.prj.PrjParser
public class PrjParser
Parser for PRJ / WKT (OGC & ESRI) String.
This very simple parser works in tree steps: 1. it parses the PRJ String and
produces an abstract tree, without any assumptions on it being a valid OGC
WKT String. 2. it walks the tree looking for the values needed for
transformation into a proj4 description string. 3. the proj4 description
string is passed to the org.jproj.parser.Proj4Parser that builds the
CRS.
| Constructor Summary | |
|---|---|
PrjParser()
Creates a new parser. |
|
| Method Summary | |
|---|---|
Map<String,String> |
getParameters(String prjString)
Parses a WKT PRJ String into a set of parameters. |
PrjElement |
parseNode(CharBuffer s)
Parses a Node into its PrjElement representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrjParser()
| Method Detail |
|---|
public Map<String,String> getParameters(String prjString)
prjString - a WKT string
PrjParserException - if the PRJ cannot be parsed into a CRS for any
reasonpublic PrjElement parseNode(CharBuffer s)
s - the Buffer to parse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||