public class ZFeatureGraphicUtil
extends java.lang.Object
构造器和说明 |
---|
ZFeatureGraphicUtil() |
限定符和类型 | 方法和说明 |
---|---|
static Feature |
getFeatureFromGraphic(Graphic graphic)
从Feature获取Graphic
|
static java.util.List<Feature> |
getFeaturesFromGraphics(java.util.List<Graphic> graphics) |
static java.util.List<Feature> |
getFeaturesFromGraphicsStream(java.util.List<Graphic> graphics)
从Graphic获取Features
|
static Graphic |
getGraphicFromFeature(Feature feature)
从Feature获取Graphic
|
static Graphic |
getGraphicFromZLineString(ZLineString zLineString,
java.util.Map<java.lang.String,java.lang.Object> attribute)
构造线的Graphic
LINESTRING (30 10, 10 30, 40 40)
|
static Graphic |
getGraphicFromZMultiLineString(ZMultiLineString zMultiLineString,
java.util.Map<java.lang.String,java.lang.Object> attribute)
构造多线的Graphic
MULTILINESTRING ((10 10, 20 20, 10 40),(40 40, 30 30, 40 20, 30 10))
|
static Graphic |
getGraphicFromZMultiPoint(ZMultiPoint zMultiPoint,
java.util.Map<java.lang.String,java.lang.Object> attribute)
构造多点的Graphic
MULTIPOINT ((10 40), (40 30), (20 20), (30 10))
|
static Graphic |
getGraphicFromZMultiPolygon(ZMultiPolygon zMultiPolygon,
java.util.Map<java.lang.String,java.lang.Object> attribute)
构造多面的Graphic
MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),((15 5, 40 10, 10 20, 5 10, 15 5)))
MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)),((20 35, 10 30, 10 10, 30 5, 45 20, 20 35),(30 20, 20 15, 20 25, 30 20)))
|
static Graphic |
getGraphicFromZPoint(ZPoint point,
java.util.Map<java.lang.String,java.lang.Object> attribute)
构造点的Graphic
POINT (30 10)
|
static Graphic |
getGraphicFromZPolygon(ZPolygon zPolygon,
java.util.Map<java.lang.String,java.lang.Object> attribute)
构造面的Graphic
POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10)) 典型的面
POLYGON ((35 10, 45 45, 15 40, 10 20, 35 10),(20 30, 35 35, 30 20, 20 30)) 带洞的面
|
static java.util.List<Graphic> |
getGraphicsFromFeatures(java.util.List<Feature> features) |
static java.util.List<Graphic> |
getGraphicsFromFeaturesStream(java.util.List<Feature> features)
从Feature获取Graphics
|
static java.lang.String |
getLineStringWktFromCords(double[][] cords)
根据坐标获取线WKT字符串
|
static java.lang.String |
getMultiLineStringWktFromCords(double[][][] cords)
根据坐标获取多线WKT字符串
|
static java.lang.String |
getMultiPointWktFromCords(double[][] cords)
根据坐标获取多点WKT字符串
|
static java.lang.String |
getMultiPolygonWktFromCords(double[][][][] cords)
根据坐标获取多面WKT字符串
|
static java.lang.String |
getNumberNf(java.lang.String string) |
static java.lang.String |
getPoint(double[] cords) |
static java.lang.String |
getPointWktFromCords(double[] cords)
根据坐标获取点WKT字符串
|
static java.lang.String |
getPolygonWktFromCords(double[][][] cords)
根据坐标获取面WKT字符串
|
static ZLineString |
getZLineString(java.util.List<ZPoint> pointList) |
static ZPoint |
getZPoint(double longitude,
double latitude) |
public static Graphic getGraphicFromFeature(Feature feature)
feature
- Feature对象public static Feature getFeatureFromGraphic(Graphic graphic)
graphic
- Graphic对象public static java.util.List<Feature> getFeaturesFromGraphicsStream(java.util.List<Graphic> graphics)
graphics
- Graphics对象public static java.util.List<Feature> getFeaturesFromGraphics(java.util.List<Graphic> graphics)
public static java.util.List<Graphic> getGraphicsFromFeaturesStream(java.util.List<Feature> features)
features
- features对象public static java.util.List<Graphic> getGraphicsFromFeatures(java.util.List<Feature> features)
public static ZPoint getZPoint(double longitude, double latitude)
public static ZLineString getZLineString(java.util.List<ZPoint> pointList)
public static Graphic getGraphicFromZPoint(ZPoint point, java.util.Map<java.lang.String,java.lang.Object> attribute)
point
- 点对象attribute
- 属性信息public static Graphic getGraphicFromZLineString(ZLineString zLineString, java.util.Map<java.lang.String,java.lang.Object> attribute)
zLineString
- 线对象attribute
- 属性信息public static Graphic getGraphicFromZPolygon(ZPolygon zPolygon, java.util.Map<java.lang.String,java.lang.Object> attribute)
zPolygon
- 面对象attribute
- 属性信息public static Graphic getGraphicFromZMultiPoint(ZMultiPoint zMultiPoint, java.util.Map<java.lang.String,java.lang.Object> attribute)
zMultiPoint
- 多点对象attribute
- 属性信息public static Graphic getGraphicFromZMultiLineString(ZMultiLineString zMultiLineString, java.util.Map<java.lang.String,java.lang.Object> attribute)
zMultiLineString
- 多线对象attribute
- 属性信息public static Graphic getGraphicFromZMultiPolygon(ZMultiPolygon zMultiPolygon, java.util.Map<java.lang.String,java.lang.Object> attribute)
zMultiPolygon
- 多面对象attribute
- 属性信息public static java.lang.String getPointWktFromCords(double[] cords)
cords
- 坐标数组public static java.lang.String getLineStringWktFromCords(double[][] cords)
cords
- 坐标数组public static java.lang.String getPolygonWktFromCords(double[][][] cords)
cords
- 坐标数组public static java.lang.String getMultiPointWktFromCords(double[][] cords)
cords
- 坐标数组public static java.lang.String getMultiLineStringWktFromCords(double[][][] cords)
cords
- 坐标数组public static java.lang.String getMultiPolygonWktFromCords(double[][][][] cords)
cords
- 坐标数组public static java.lang.String getPoint(double[] cords)
public static java.lang.String getNumberNf(java.lang.String string)