com.supermap.services.ogc
Class GMLConvert
- java.lang.Object
-
- com.supermap.services.ogc.GMLConvert
-
public final class GMLConvert extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description GMLConvert()
-
Method Summary
Methods Modifier and Type Method and Description static Geometrydecode(org.w3c.dom.Document doc)Convert xml text to Geometry object.static Geometrydecode(java.lang.String content)Convert xml string to Geometry object.static java.lang.Stringencode(Geometry geometry)Converts Geometry object to string in gml format.static java.lang.Stringencode(Geometry geometry, boolean isContainNS, java.lang.String schemaLocation)Converts Geometry object to string in gml format.static voidencode(Geometry geometry, Node root)Convert Geometry objects to gml file.static voidencode(Geometry geometry, Node root, boolean isContainNS, java.lang.String schemaLocation)Convert Geometry objects to gml file.static Point2DgetCenter(Point2D p1, Point2D p2, Point2D p3)Gets the centre of the circle.
-
-
-
Method Detail
-
encode
public static java.lang.String encode(Geometry geometry)
Converts Geometry object to string in gml format.- Parameters:
geometry-- Returns:
-
encode
public static java.lang.String encode(Geometry geometry, boolean isContainNS, java.lang.String schemaLocation)
Converts Geometry object to string in gml format.- Parameters:
geometry-isContainNS- Whether includes namespace properties.schemaLocation- xsd file path- Returns:
-
encode
public static void encode(Geometry geometry, Node root)
Convert Geometry objects to gml file.- Parameters:
geometry-root-
-
encode
public static void encode(Geometry geometry, Node root, boolean isContainNS, java.lang.String schemaLocation)
Convert Geometry objects to gml file.- Parameters:
geometry-root-isContainNS- Whether includes namespace properties.schemaLocation- xsd file path
-
decode
public static Geometry decode(java.lang.String content)
Convert xml string to Geometry object.- Parameters:
content-- Returns:
-
decode
public static Geometry decode(org.w3c.dom.Document doc)
Convert xml text to Geometry object.- Parameters:
doc-- Returns:
-
getCenter
public static Point2D getCenter(Point2D p1, Point2D p2, Point2D p3) throws java.lang.IllegalArgumentException
Gets the centre of the circle.- Parameters:
p1-p2-p3-- Returns:
- Throws:
OGCExceptionjava.lang.IllegalArgumentException
-
-