Tabnine Logo
PrjParser.getParameters
Code IndexAdd Tabnine to your IDE (free)

How to use
getParameters
method
in
org.cts.parser.prj.PrjParser

Best Java code snippets using org.cts.parser.prj.PrjParser.getParameters (Showing top 5 results out of 315)

origin: orbisgis/h2gis

String prjString = readPRJFile(prjFile);
if (!prjString.isEmpty()) {
  Map<String, String> p = parser.getParameters(prjString);
  String authorityWithCode = p.get(PrjKeyParameters.REFNAME);
  if (authorityWithCode != null) {
origin: org.orbisgis/h2gis-functions

String prjString = readPRJFile(prjFile);
if (!prjString.isEmpty()) {
  Map<String, String> p = parser.getParameters(prjString);
  String authorityWithCode = p.get(PrjKeyParameters.REFNAME);
  if (authorityWithCode != null) {
origin: org.orbisgis/h2gis

String prjString = readPRJFile(prjFile);
if (!prjString.isEmpty()) {
  Map<String, String> p = parser.getParameters(prjString);
  String authorityWithCode = p.get(PrjKeyParameters.REFNAME);
  if (authorityWithCode != null) {
origin: org.orbisgis/h2drivers

String prjString = readPRJFile(prjFile);
if(!prjString.isEmpty()){
Map<String, String> p = parser.getParameters(prjString);
String authorityWithCode = p.get(PrjKeyParameters.REFNAME);
if (authorityWithCode != null) {
origin: org.orbisgis/cts

/**
 * Creates a {@link CoordinateReferenceSystem} defined by an OGC WKT String
 * (PRJ).
 *
 * @param prjString the OGC WKT String defining the CRS
 */
public CoordinateReferenceSystem createFromPrj(String prjString) throws CRSException {
  PrjParser p = new PrjParser();
  Map<String, String> prjParameters = p.getParameters(prjString);
  String name = prjParameters.remove(PrjKeyParameters.NAME);
  String refname = prjParameters.remove(PrjKeyParameters.REFNAME);
  if (refname != null) {
    String[] authorityNameWithKey = refname.split(":");
    return CRSHelper.createCoordinateReferenceSystem(new Identifier(authorityNameWithKey[0], authorityNameWithKey[1], name), prjParameters);
  } else {
    return CRSHelper.createCoordinateReferenceSystem(new Identifier(CoordinateReferenceSystem.class, name), prjParameters);
  }
}
org.cts.parser.prjPrjParsergetParameters

Javadoc

Parses a WKT PRJ String into a set of parameters. This is the main entry point of the parser.

Popular methods of PrjParser

  • <init>
    Creates a new parser.
  • next
    Return the next character that is not a white space.
  • parseNode
    Parses a Node into its PrjElement representation.
  • parseNodeChildren
    Parses a Node's children into a list of PrjElement.
  • parseNumber
    Parses a Number information into its PrjNumberElement representation.
  • parseString
    Parses a String information into its PrjStringElement representation.

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now