congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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)

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

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Join (org.hibernate.mapping)
  • Option (scala)
  • Top plugins for WebStorm
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