Skip navigation links

Oracle® Spatial Java API Reference
11g Release 1 (11.1)

B28401-02


oracle.spatial.util
Class GML

java.lang.Object
  extended by oracle.spatial.util.GML


public class GML
extends java.lang.Object

Constructor Summary
GML()
           

 

Method Summary
static JGeometry fromNodeToEnvelope(org.w3c.dom.Node nd)
          Example:
<pre>
    <Box srsname="EPSG_4326">
        <coordinates>
                0.0,0.0 100.0,100.0
        </coordinates>
    </Box>
</pre>
Note: Each Box Element encloses a single coordinates element or four Coord, the latter containing precisely two coordinate tuples.
static JGeometry fromNodeToGeometry(org.w3c.dom.Node nd)
           
static JGeometry fromNodeToGeometryCollection(org.w3c.dom.Node nd)
           
static JGeometry fromNodeToLinearRing(org.w3c.dom.Node nd)
           
static JGeometry fromNodeToLineString(org.w3c.dom.Node nd)
          Example:
<pre>
    <LineString srsname="EPSG_4326">
        <coordinates>
            0.0,0.0 100.0,100.0
        </coordinates>
    </LineString>
</pre>
static JGeometry fromNodeToMultiLineString(org.w3c.dom.Node nd)
          Example:
<pre>
    <MultiLineString srsname="EPSG_4326">
        <lineStringMember>
            <LineString>
                <coordinates>56.1,0.45 67.23,0.67</coordinates>
            </LineString>
        </lineStringMember>
        <lineStringMember>
            <LineString>
                <coordinates>46.71,9.25 56.88,10.44</coordinates>
            </LineString>
        </lineStringMember>
        <lineStringMember>
            <LineString>
                <coordinates>324.1,219.7 0.45,0.56</coordinates>
            </LineString>
        </lineStringMember>
    </MultiLineString>
</pre>
static JGeometry fromNodeToMultiPoint(org.w3c.dom.Node nd)
          Example:
<pre>
    <MultiPoint srsname="EPSG_4326">
        <pointMember>
            <Point>
                <coordinates>56.1,0.45</coordinates>
            </Point>
        </pointMember>
        <pointMember>
            <Point>
                <coordinates>46.71,9.25</coordinates>
            </Point>
        </pointMember>
        <pointMember>
            <Point>
                <coordinates>56.88,10.44</coordinates>
            </Point>
        </pointMember>
    </MultiPoint >
</pre>
static JGeometry fromNodeToMultiPolygon(org.w3c.dom.Node nd)
          Example:
<pre>
<MultiPolygon srsname="EPSG_4326">
  <PolygonMember>
    <Polygon srsname="EPSG_4326">
      <outerBoundaryIs>
        <LinearRing>
          <coordinates>
            0.0,0.0 100.0,0.0 100.0,100.0 0.0,100.0 0.0,0.0
          </coordinates>
        </LinearRing>
      </outerBoundaryIs>
      <innerBoundaryIs>
        <LinearRing>
          <coordinates>
            10.0,10.0 10.0,40.0 40.0,40.0 40.0,10.0 10.0,10.0
          </coordinates>
        </LinearRing>
      </innerBoundaryIs>
      <innerBoundaryIs>
        <LinearRing>
          <coordinates>
            60.0,60.0 60.0,90.0 90.0,90.0 90.0,60.0 60.0,60.0
          </coordinates>
        </LinearRing>
      </innerBoundaryIs>
    </Polygon>
  </PolygonMember>
  <PolygonMember>
    <Polygon srsname="EPSG_4326">
      <outerBoundaryIs>
        <LinearRing>
          <coordinates>
            1000.0,0.0 1100.0,0.0 1100.0,100.0 1000.0,100.0 1000.0,0.0
          </coordinates>
        </LinearRing>
      </outerBoundaryIs>
      <innerBoundaryIs>
        <LinearRing>
          <coordinates>
            1010.0,10.0 1010.0,40.0 1040.0,40.0 1040.0,10.0 1010.0,10.0
          </coordinates>
        </LinearRing>
      </innerBoundaryIs>
      <innerBoundaryIs>
        <LinearRing>
          <coordinates>
            1060.0,60.0 1060.0,90.0 1090.0,90.0 1090.0,60.0 1060.0,60.0
          </coordinates>
        </LinearRing>
      </innerBoundaryIs>
    </Polygon>
  </PolygonMember>
  <PolygonMember>
    <Polygon srsname="EPSG_4326">
      <outerBoundaryIs>
        <LinearRing>
          <coordinates>
            2000.0,0.0 2100.0,0.0 2100.0,100.0 2000.0,100.0 2000.0,0.0
          </coordinates>
        </LinearRing>
      </outerBoundaryIs>
      <innerBoundaryIs>
        <LinearRing>
          <coordinates>
            2010.0,10.0 2010.0,40.0 2040.0,40.0 2040.0,10.0 2010.0,10.0
          </coordinates>
        </LinearRing>
      </innerBoundaryIs>
      <innerBoundaryIs>
        <LinearRing>
          <coordinates>
            2060.0,60.0 2060.0,90.0 2090.0,90.0 2090.0,60.0 2060.0,60.0
          </coordinates>
        </LinearRing>
      </innerBoundaryIs>
    </Polygon>
  </PolygonMember>
</MultiPolygon>
</pre>
static JGeometry fromNodeToPoint(org.w3c.dom.Node nd)
          Example 1:
<pre>
    <Point srsname="EPSG_4326">
        <coordinates>
            56.1,0.45
        </coordinates>
    </Point>
</pre>
Example 2:
<pre>
    <Point srsname="8265">
        <coord>
            <x>56.1</x>
            <y>0.45</y>
        </coord>
    </Point>
static JGeometry fromNodeToPolygon(org.w3c.dom.Node nd)
          Example:
<pre>
    <Polygon srsname="EPSG_4326">
        <outerBoundaryIs>
            <LinearRing>
                <coordinates>
                    0.0,0.0 100.0,0.0 100.0,100.0 0.0,100.0 0.0,0.0
                </coordinates>
            </LinearRing>
        </outerBoundaryIs>
        <innerBoundaryIs>
            <LinearRing>
                <coordinates>
                    10.0,10.0 10.0,40.0 40.0,40.0 40.0,10.0 10.0,10.0
                </coordinates>
            </LinearRing>
        </innerBoundaryIs>
        <innerBoundaryIs>
            <LinearRing>
                <coordinates>
                    60.0,60.0 60.0,90.0 90.0,90.0 90.0,60.0 60.0,60.0
                </coordinates>
            </LinearRing>
        </innerBoundaryIs>
    </Polygon>
</pre>
static JGeometry fromNodeToSurface(org.w3c.dom.Node nd)
           
static java.util.Vector getAll(org.w3c.dom.Node start, java.lang.String[] path)
           
static void getAll(org.w3c.dom.Node start, java.lang.String[] path, int posInPath, java.util.Vector result)
           
static java.lang.String getNameSpace()
           
static void setConnection(java.sql.Connection conn)
           
static void setsrsNameSpace(java.lang.String srsNameSpace)
           

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

GML

public GML()

Method Detail

setConnection

public static void setConnection(java.sql.Connection conn)

setsrsNameSpace

public static void setsrsNameSpace(java.lang.String srsNameSpace)

getNameSpace

public static java.lang.String getNameSpace()

fromNodeToPoint

public static JGeometry fromNodeToPoint(org.w3c.dom.Node nd)
                                 throws DataException,
                                        java.lang.Exception
Example 1:
<pre>
    <Point srsname="EPSG_4326">
        <coordinates>
            56.1,0.45
        </coordinates>
    </Point>
</pre>
Example 2:
<pre>
    <Point srsname="8265">
        <coord>
            <x>56.1</x>
            <y>0.45</y>
        </coord>
    </Point>
Throws:
DataException
java.lang.Exception

fromNodeToEnvelope

public static final JGeometry fromNodeToEnvelope(org.w3c.dom.Node nd)
                                          throws DataException,
                                                 java.lang.Exception
Example:
<pre>
    <Box srsname="EPSG_4326">
        <coordinates>
                0.0,0.0 100.0,100.0
        </coordinates>
    </Box>
</pre>
Note: Each Box Element encloses a single coordinates element or four Coord, the latter containing precisely two coordinate tuples. The first of these is constructued from the minimum values measured along for all the axes, and the second is constructed from the maximum values measured along all the axes.
Throws:
DataException
java.lang.Exception

fromNodeToLineString

public static JGeometry fromNodeToLineString(org.w3c.dom.Node nd)
                                      throws DataException,
                                             java.lang.Exception
Example:
<pre>
    <LineString srsname="EPSG_4326">
        <coordinates>
            0.0,0.0 100.0,100.0
        </coordinates>
    </LineString>
</pre>
Throws:
DataException
java.lang.Exception

fromNodeToPolygon

public static JGeometry fromNodeToPolygon(org.w3c.dom.Node nd)
                                   throws DataException,
                                          java.lang.Exception
Example:
<pre>
    <Polygon srsname="EPSG_4326">
        <outerBoundaryIs>
            <LinearRing>
                <coordinates>
                    0.0,0.0 100.0,0.0 100.0,100.0 0.0,100.0 0.0,0.0
                </coordinates>
            </LinearRing>
        </outerBoundaryIs>
        <innerBoundaryIs>
            <LinearRing>
                <coordinates>
                    10.0,10.0 10.0,40.0 40.0,40.0 40.0,10.0 10.0,10.0
                </coordinates>
            </LinearRing>
        </innerBoundaryIs>
        <innerBoundaryIs>
            <LinearRing>
                <coordinates>
                    60.0,60.0 60.0,90.0 90.0,90.0 90.0,60.0 60.0,60.0
                </coordinates>
            </LinearRing>
        </innerBoundaryIs>
    </Polygon>
</pre>
Throws:
DataException
java.lang.Exception

fromNodeToSurface

public static JGeometry fromNodeToSurface(org.w3c.dom.Node nd)
                                   throws DataException,
                                          java.lang.Exception
Throws:
DataException
java.lang.Exception

fromNodeToMultiLineString

public static JGeometry fromNodeToMultiLineString(org.w3c.dom.Node nd)
                                           throws DataException,
                                                  java.lang.Exception
Example:
<pre>
    <MultiLineString srsname="EPSG_4326">
        <lineStringMember>
            <LineString>
                <coordinates>56.1,0.45 67.23,0.67</coordinates>
            </LineString>
        </lineStringMember>
        <lineStringMember>
            <LineString>
                <coordinates>46.71,9.25 56.88,10.44</coordinates>
            </LineString>
        </lineStringMember>
        <lineStringMember>
            <LineString>
                <coordinates>324.1,219.7 0.45,0.56</coordinates>
            </LineString>
        </lineStringMember>
    </MultiLineString>
</pre>
Throws:
DataException
java.lang.Exception

fromNodeToMultiPoint

public static JGeometry fromNodeToMultiPoint(org.w3c.dom.Node nd)
                                      throws DataException,
                                             java.lang.Exception
Example:
<pre>
    <MultiPoint srsname="EPSG_4326">
        <pointMember>
            <Point>
                <coordinates>56.1,0.45</coordinates>
            </Point>
        </pointMember>
        <pointMember>
            <Point>
                <coordinates>46.71,9.25</coordinates>
            </Point>
        </pointMember>
        <pointMember>
            <Point>
                <coordinates>56.88,10.44</coordinates>
            </Point>
        </pointMember>
    </MultiPoint >
</pre>
Throws:
DataException
java.lang.Exception

fromNodeToGeometry

public static JGeometry fromNodeToGeometry(org.w3c.dom.Node nd)
                                    throws DataException,
                                           java.lang.Exception
Throws:
DataException
java.lang.Exception

fromNodeToGeometryCollection

public static JGeometry fromNodeToGeometryCollection(org.w3c.dom.Node nd)
                                              throws DataException,
                                                     java.lang.Exception
Throws:
DataException
java.lang.Exception

fromNodeToLinearRing

public static JGeometry fromNodeToLinearRing(org.w3c.dom.Node nd)
                                      throws DataException,
                                             java.lang.Exception
Throws:
DataException
java.lang.Exception

fromNodeToMultiPolygon

public static JGeometry fromNodeToMultiPolygon(org.w3c.dom.Node nd)
                                        throws DataException,
                                               java.lang.Exception
Example:
<pre>
<MultiPolygon srsname="EPSG_4326">
  <PolygonMember>
    <Polygon srsname="EPSG_4326">
      <outerBoundaryIs>
        <LinearRing>
          <coordinates>
            0.0,0.0 100.0,0.0 100.0,100.0 0.0,100.0 0.0,0.0
          </coordinates>
        </LinearRing>
      </outerBoundaryIs>
      <innerBoundaryIs>
        <LinearRing>
          <coordinates>
            10.0,10.0 10.0,40.0 40.0,40.0 40.0,10.0 10.0,10.0
          </coordinates>
        </LinearRing>
      </innerBoundaryIs>
      <innerBoundaryIs>
        <LinearRing>
          <coordinates>
            60.0,60.0 60.0,90.0 90.0,90.0 90.0,60.0 60.0,60.0
          </coordinates>
        </LinearRing>
      </innerBoundaryIs>
    </Polygon>
  </PolygonMember>
  <PolygonMember>
    <Polygon srsname="EPSG_4326">
      <outerBoundaryIs>
        <LinearRing>
          <coordinates>
            1000.0,0.0 1100.0,0.0 1100.0,100.0 1000.0,100.0 1000.0,0.0
          </coordinates>
        </LinearRing>
      </outerBoundaryIs>
      <innerBoundaryIs>
        <LinearRing>
          <coordinates>
            1010.0,10.0 1010.0,40.0 1040.0,40.0 1040.0,10.0 1010.0,10.0
          </coordinates>
        </LinearRing>
      </innerBoundaryIs>
      <innerBoundaryIs>
        <LinearRing>
          <coordinates>
            1060.0,60.0 1060.0,90.0 1090.0,90.0 1090.0,60.0 1060.0,60.0
          </coordinates>
        </LinearRing>
      </innerBoundaryIs>
    </Polygon>
  </PolygonMember>
  <PolygonMember>
    <Polygon srsname="EPSG_4326">
      <outerBoundaryIs>
        <LinearRing>
          <coordinates>
            2000.0,0.0 2100.0,0.0 2100.0,100.0 2000.0,100.0 2000.0,0.0
          </coordinates>
        </LinearRing>
      </outerBoundaryIs>
      <innerBoundaryIs>
        <LinearRing>
          <coordinates>
            2010.0,10.0 2010.0,40.0 2040.0,40.0 2040.0,10.0 2010.0,10.0
          </coordinates>
        </LinearRing>
      </innerBoundaryIs>
      <innerBoundaryIs>
        <LinearRing>
          <coordinates>
            2060.0,60.0 2060.0,90.0 2090.0,90.0 2090.0,60.0 2060.0,60.0
          </coordinates>
        </LinearRing>
      </innerBoundaryIs>
    </Polygon>
  </PolygonMember>
</MultiPolygon>
</pre>
Parameters:
nd - A Node representing the input GML
Returns:
The resulting JGeometry
Throws:
DataException
java.lang.Exception

getAll

public static java.util.Vector getAll(org.w3c.dom.Node start,
                                      java.lang.String[] path)

getAll

public static void getAll(org.w3c.dom.Node start,
                          java.lang.String[] path,
                          int posInPath,
                          java.util.Vector result)

Skip navigation links

Oracle® Spatial Java API Reference
11g Release 1 (11.1)

B28401-02


Copyright © 2007, 2008, Oracle. All Rights Reserved.