it.cutruzzula.lgml
Class GMLParser

java.lang.Object
  extended by it.cutruzzula.lgml.GMLParser

public class GMLParser
extends java.lang.Object

The core class of the LGML parser


Method Summary
static AbstractGeometry parseNodeXY(org.w3c.dom.Node gmlNode)
          Method to parse a DOM node representing GML content, respecting the axis order X, Y and (if present and if the GML object has the "srsDimension" set to "3") Z.

Examples:
the couple [24.44 16.3] will be parsed as [24.44 16.3] the triple [24.44 16.3 0.2] will be parsed as [24.44 16.3 0.2]
static AbstractGeometry parseNodeYX(org.w3c.dom.Node gmlNode)
          Method to parse a DOM node representing GML content, respecting the axis order X, Y and (if present and if the GML object has the "srsDimension" set to "3") Z.

Examples:
the couple [24.44 16.3] will be parsed as [16.3 24.44] the triple [24.44 16.3 0.2] will be parsed as [16.3 24.44 0.2]
static AbstractGeometry parseStringXY(java.lang.String xml)
          Method to parse a string representing GML content, respecting the axis order X, Y and (if present and if the GML object has the "srsDimension" set to "3") Z.

Examples:
the couple [24.44 16.3] will be parsed as [24.44 16.3] the triple [24.44 16.3 0.2] will be parsed as [24.44 16.3 0.2]
static AbstractGeometry parseStringYX(java.lang.String xml)
          Method to parse a string representing GML content, considering the axis order as Y, X and (if present and if the GML object has the "srsDimension" set to "3") Z.

Examples:
the couple [24.44 16.3] will be parsed as [16.3 24.44] the triple [24.44 16.3 0.2] will be parsed as [16.3 24.44 0.2]
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseStringXY

public static AbstractGeometry parseStringXY(java.lang.String xml)
                                      throws java.lang.Exception
Method to parse a string representing GML content, respecting the axis order X, Y and (if present and if the GML object has the "srsDimension" set to "3") Z.

Examples:

Parameters:
xml - The string with GML content
Returns:
An AbstractGeometry object with the parsed WKT
Throws:
java.lang.Exception - A generic exception thrown in parsing

parseStringYX

public static AbstractGeometry parseStringYX(java.lang.String xml)
                                      throws java.lang.Exception
Method to parse a string representing GML content, considering the axis order as Y, X and (if present and if the GML object has the "srsDimension" set to "3") Z.

Examples:

Parameters:
xml - The string with GML content
Returns:
An AbstractGeometry object with the parsed WKT
Throws:
java.lang.Exception - A generic exception thrown in parsing

parseNodeXY

public static AbstractGeometry parseNodeXY(org.w3c.dom.Node gmlNode)
                                    throws java.lang.Exception
Method to parse a DOM node representing GML content, respecting the axis order X, Y and (if present and if the GML object has the "srsDimension" set to "3") Z.

Examples:

Parameters:
gmlNode - The org.w3c.dom.Node with GML content
Returns:
An AbstractGeometry object with the parsed WKT
Throws:
java.lang.Exception - A generic exception thrown in parsing

parseNodeYX

public static AbstractGeometry parseNodeYX(org.w3c.dom.Node gmlNode)
                                    throws java.lang.Exception
Method to parse a DOM node representing GML content, respecting the axis order X, Y and (if present and if the GML object has the "srsDimension" set to "3") Z.

Examples:

Parameters:
gmlNode - The org.w3c.dom.Node with GML content
Returns:
An AbstractGeometry object with the parsed WKT
Throws:
java.lang.Exception - A generic exception thrown in parsing