congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PrjParser.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.cts.parser.prj.PrjParser
constructor

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: orbisgis/h2gis

  log.debug("This prj file is null. \n A default srid equals to 0 will be added.");
} else {
  PrjParser parser = new PrjParser();
  String prjString = readPRJFile(prjFile);
  if (!prjString.isEmpty()) {
origin: org.orbisgis/h2gis-functions

  log.warn("This prj file is null. \n A default srid equals to 0 will be added.");
} else {
  PrjParser parser = new PrjParser();
  String prjString = readPRJFile(prjFile);
  if (!prjString.isEmpty()) {
origin: org.orbisgis/h2gis

  log.warn("This prj file is null. \n A default srid equals to 0 will be added.");
} else {
  PrjParser parser = new PrjParser();
  String prjString = readPRJFile(prjFile);
  if (!prjString.isEmpty()) {
origin: org.orbisgis/h2drivers

  log.warn("This shapefile has no prj. \n A default srid equals to 0 will be added.");
} else {
  PrjParser parser = new PrjParser();
  String prjString = readPRJFile(prjFile);
  if(!prjString.isEmpty()){
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.prjPrjParser<init>

Javadoc

Creates a new parser.

Popular methods of PrjParser

  • getParameters
    Parses a WKT PRJ String into a set of parameters. This is the main entry point of the 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

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Path (java.nio.file)
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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