类 ProtoFeatureConverter
- java.lang.Object
-
- org.wowtools.giscat.vector.pojo.converter.ProtoFeatureConverter
-
public class ProtoFeatureConverter extends Object
ProtoFeature bytes与Feature的相互转换- 作者:
- liuyu
- createdate
- 2022/3/25
-
-
构造器概要
构造器 构造器 说明 ProtoFeatureConverter()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static byte[]featureCollection2Proto(FeatureCollection featureCollection)FeatureCollection 转 ProtoFeature bytesstatic byte[]geometry2Proto(org.locationtech.jts.geom.Geometry geometry)geometry 转 ProtoFeature bytesstatic FeatureCollectionproto2featureCollection(byte[] bytes, org.locationtech.jts.geom.GeometryFactory geometryFactory)ProtoFeature bytes 转 FeatureCollectionstatic org.locationtech.jts.geom.Geometryproto2Geometry(byte[] bytes, org.locationtech.jts.geom.GeometryFactory geometryFactory)ProtoFeature bytes 转 geometry
-
-
-
方法详细资料
-
geometry2Proto
public static byte[] geometry2Proto(org.locationtech.jts.geom.Geometry geometry)
geometry 转 ProtoFeature bytes- 参数:
geometry- geometry- 返回:
- ProtoFeature bytes
-
proto2Geometry
public static org.locationtech.jts.geom.Geometry proto2Geometry(byte[] bytes, org.locationtech.jts.geom.GeometryFactory geometryFactory)ProtoFeature bytes 转 geometry- 参数:
bytes- ProtoFeature bytesgeometryFactory- jts geometryFactory- 返回:
- geometry
-
featureCollection2Proto
public static byte[] featureCollection2Proto(FeatureCollection featureCollection)
FeatureCollection 转 ProtoFeature bytes- 参数:
featureCollection- FeatureCollection- 返回:
- ProtoFeature bytes
-
proto2featureCollection
public static FeatureCollection proto2featureCollection(byte[] bytes, org.locationtech.jts.geom.GeometryFactory geometryFactory)
ProtoFeature bytes 转 FeatureCollection- 参数:
bytes- ProtoFeature bytesgeometryFactory- jts GeometryFactory- 返回:
- FeatureCollection
-
-