public class GML
extends java.lang.Object
Constructor and Description |
---|
GML() |
Modifier and Type | Method and Description |
---|---|
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 |
fromNodeToGeometry(org.w3c.dom.Node nd, int coordOrder) |
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> </pre> |
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) |
public static void setConnection(java.sql.Connection conn)
public static void setsrsNameSpace(java.lang.String srsNameSpace)
public static java.lang.String getNameSpace()
public static JGeometry fromNodeToPoint(org.w3c.dom.Node nd) throws DataException, java.lang.Exception
DataException
java.lang.Exception
public static final JGeometry fromNodeToEnvelope(org.w3c.dom.Node nd) throws DataException, java.lang.Exception
DataException
java.lang.Exception
public static JGeometry fromNodeToLineString(org.w3c.dom.Node nd) throws DataException, java.lang.Exception
DataException
java.lang.Exception
public static JGeometry fromNodeToPolygon(org.w3c.dom.Node nd) throws DataException, java.lang.Exception
DataException
java.lang.Exception
public static JGeometry fromNodeToSurface(org.w3c.dom.Node nd) throws DataException, java.lang.Exception
DataException
java.lang.Exception
public static JGeometry fromNodeToMultiLineString(org.w3c.dom.Node nd) throws DataException, java.lang.Exception
DataException
java.lang.Exception
public static JGeometry fromNodeToMultiPoint(org.w3c.dom.Node nd) throws DataException, java.lang.Exception
DataException
java.lang.Exception
public static JGeometry fromNodeToGeometry(org.w3c.dom.Node nd) throws DataException, java.lang.Exception
DataException
java.lang.Exception
public static JGeometry fromNodeToGeometry(org.w3c.dom.Node nd, int coordOrder) throws DataException, java.lang.Exception
DataException
java.lang.Exception
public static JGeometry fromNodeToGeometryCollection(org.w3c.dom.Node nd) throws DataException, java.lang.Exception
DataException
java.lang.Exception
public static JGeometry fromNodeToLinearRing(org.w3c.dom.Node nd) throws DataException, java.lang.Exception
DataException
java.lang.Exception
public static JGeometry fromNodeToMultiPolygon(org.w3c.dom.Node nd) throws DataException, java.lang.Exception
nd
- A Node representing the input GMLDataException
java.lang.Exception
public static java.util.Vector getAll(org.w3c.dom.Node start, java.lang.String[] path)
public static void getAll(org.w3c.dom.Node start, java.lang.String[] path, int posInPath, java.util.Vector result)