org.cts.parser.proj
Class ProjParser

java.lang.Object
  extended by org.cts.parser.proj.ProjParser

public class ProjParser
extends Object

Parser used to read a proj file as the one used in proj4 library. It can return the list of codes available in the file or the map of parameters associated to a particular code.

Author:
Erwan Bocher

Constructor Summary
ProjParser(Registry registry)
          Create a new ProjParser for the given registry.
 
Method Summary
 Set<String> getSupportedCodes(Pattern regex)
          Return the list of all codes defined by this registry
 Map<String,String> readParameters(String crsCode, Pattern regexPattern)
          Read all parameters from the registry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjParser

public ProjParser(Registry registry)
Create a new ProjParser for the given registry.

Parameters:
registry - the registry to parse
Method Detail

readParameters

public Map<String,String> readParameters(String crsCode,
                                         Pattern regexPattern)
                                  throws IOException
Read all parameters from the registry

Parameters:
crsCode - the code corresponding to the information that must be extracted from the registry
regexPattern - the pattern used to split the line that describes the coordinate system
Throws:
IOException

getSupportedCodes

public Set<String> getSupportedCodes(Pattern regex)
                              throws IOException
Return the list of all codes defined by this registry

Parameters:
regex - pattern
Throws:
IOException


Copyright © 2014 IRSTV CNRS-FR-2488. All Rights Reserved.