public final class GMLConvert
extends java.lang.Object
Constructor and Description |
---|
GMLConvert() |
Modifier and Type | Method and Description |
---|---|
static Geometry |
decode(org.w3c.dom.Document doc)
Convert xml text to Geometry object.
|
static Geometry |
decode(java.lang.String content)
Convert xml string to Geometry object.
|
static java.lang.String |
encode(Geometry geometry)
Converts Geometry object to string in gml format.
|
static java.lang.String |
encode(Geometry geometry, boolean isContainNS, java.lang.String schemaLocation)
Converts Geometry object to string in gml format.
|
static void |
encode(Geometry geometry, Node root)
Convert Geometry objects to gml file.
|
static void |
encode(Geometry geometry, Node root, boolean isContainNS, java.lang.String schemaLocation)
Convert Geometry objects to gml file.
|
static Point2D |
getCenter(Point2D p1, Point2D p2, Point2D p3)
Gets the centre of the circle.
|
public static java.lang.String encode(Geometry geometry)
geometry
-public static java.lang.String encode(Geometry geometry, boolean isContainNS, java.lang.String schemaLocation)
geometry
-isContainNS
- Whether includes namespace properties.schemaLocation
- xsd file pathpublic static void encode(Geometry geometry, Node root)
geometry
-root
-public static void encode(Geometry geometry, Node root, boolean isContainNS, java.lang.String schemaLocation)
geometry
-root
-isContainNS
- Whether includes namespace properties.schemaLocation
- xsd file pathpublic static Geometry decode(java.lang.String content)
content
-public static Geometry decode(org.w3c.dom.Document doc)
doc
-public static Point2D getCenter(Point2D p1, Point2D p2, Point2D p3) throws java.lang.IllegalArgumentException
p1
-p2
-p3
-OGCException
java.lang.IllegalArgumentException