public final class GMLConvert
extends java.lang.Object
构造器和说明 |
---|
GMLConvert() |
限定符和类型 | 方法和说明 |
---|---|
static Geometry |
decode(org.w3c.dom.Document doc)
将xml文档转换成Geometry对象
|
static Geometry |
decode(java.lang.String content)
将xml字符串转换成Geometry对象
|
static java.lang.String |
encode(Geometry geometry)
将Geometry对象转换成gml格式的字符串
|
static java.lang.String |
encode(Geometry geometry, boolean isContainNS, java.lang.String schemaLocation)
将Geometry对象转换成gml格式的字符串
|
static void |
encode(Geometry geometry, Node root)
将Geometry对象转换成gml格式文档
|
static void |
encode(Geometry geometry, Node root, boolean isContainNS, java.lang.String schemaLocation)
将Geometry对象转换成gml格式文档
|
static Point2D |
getCenter(Point2D p1, Point2D p2, Point2D p3)
获取圆心
|
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
- 是否包含命名空间属性schemaLocation
- xsd文件路径public 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
- 是否包含命名空间属性schemaLocation
- xsd文件路径public 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