类 GeoJsonFeatureConverter
- java.lang.Object
-
- org.wowtools.giscat.vector.pojo.converter.GeoJsonFeatureConverter
-
public class GeoJsonFeatureConverter extends Object
feature与geojson互转 线程安全- 作者:
- liuyu
- createdate
- 2022/3/15
-
-
字段概要
字段 修饰符和类型 字段 说明 static com.fasterxml.jackson.databind.ObjectMappermapperjackson ObjectMapper
-
构造器概要
构造器 构造器 说明 GeoJsonFeatureConverter()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static FeaturefromGeoJsonFeature(String strGeoJsonFeature, org.locationtech.jts.geom.GeometryFactory geometryFactory)将GeoJson对象转为Featurestatic FeaturefromGeoJsonFeature(GeoJsonObject.Feature geoJsonFeature, org.locationtech.jts.geom.GeometryFactory geometryFactory)将GeoJson对象转为Featurestatic FeatureCollectionfromGeoJsonFeatureCollection(String strGeoJsonFeatureCollection, org.locationtech.jts.geom.GeometryFactory geometryFactory)将GeoJson对象转为Featurestatic FeatureCollectionfromGeoJsonFeatureCollection(GeoJsonObject.FeatureCollection geoJsonFeatureCollection, org.locationtech.jts.geom.GeometryFactory geometryFactory)将GeoJson对象转为Featurestatic org.locationtech.jts.geom.GeometrygeoJson2Geometry(String strGeojsonGeometry, org.locationtech.jts.geom.GeometryFactory geometryFactory)将GeoJson对象转为Geometrystatic org.locationtech.jts.geom.GeometrygeoJson2Geometry(GeoJsonObject.Geometry geojsonGeometry, org.locationtech.jts.geom.GeometryFactory geometryFactory)将GeoJson对象转为Geometrystatic GeoJsonObject.Geometrygeometry2GeoJson(org.locationtech.jts.geom.Geometry geometry)将geometry对象转为GeoJsonstatic GeoJsonObject.FeaturetoGeoJson(Feature feature)将feature对象转为GeoJsonstatic GeoJsonObject.FeatureCollectiontoGeoJson(FeatureCollection featureCollection)将featureCollection对象转为GeoJson
-
-
-
方法详细资料
-
geometry2GeoJson
public static GeoJsonObject.Geometry geometry2GeoJson(org.locationtech.jts.geom.Geometry geometry)
将geometry对象转为GeoJson- 参数:
geometry- geometry- 返回:
- geojson
-
toGeoJson
public static GeoJsonObject.Feature toGeoJson(Feature feature)
将feature对象转为GeoJson- 参数:
feature- feature- 返回:
- geojson
-
toGeoJson
public static GeoJsonObject.FeatureCollection toGeoJson(FeatureCollection featureCollection)
将featureCollection对象转为GeoJson- 参数:
featureCollection- featureCollection- 返回:
- geojson
-
geoJson2Geometry
public static org.locationtech.jts.geom.Geometry geoJson2Geometry(String strGeojsonGeometry, org.locationtech.jts.geom.GeometryFactory geometryFactory)
将GeoJson对象转为Geometry- 参数:
strGeojsonGeometry- geojsonGeometry stringgeometryFactory- jts GeometryFactory- 返回:
- jts Geometry
-
geoJson2Geometry
public static org.locationtech.jts.geom.Geometry geoJson2Geometry(GeoJsonObject.Geometry geojsonGeometry, org.locationtech.jts.geom.GeometryFactory geometryFactory)
将GeoJson对象转为Geometry- 参数:
geojsonGeometry- geojsonGeometrygeometryFactory- jts GeometryFactory- 返回:
- jts Geometry
-
fromGeoJsonFeature
public static Feature fromGeoJsonFeature(String strGeoJsonFeature, org.locationtech.jts.geom.GeometryFactory geometryFactory)
将GeoJson对象转为Feature- 参数:
strGeoJsonFeature- geoJsonFeature stringgeometryFactory- jts GeometryFactory- 返回:
- Feature
-
fromGeoJsonFeature
public static Feature fromGeoJsonFeature(GeoJsonObject.Feature geoJsonFeature, org.locationtech.jts.geom.GeometryFactory geometryFactory)
将GeoJson对象转为Feature- 参数:
geoJsonFeature- geoJsonFeaturegeometryFactory- jts GeometryFactory- 返回:
- Feature
-
fromGeoJsonFeatureCollection
public static FeatureCollection fromGeoJsonFeatureCollection(String strGeoJsonFeatureCollection, org.locationtech.jts.geom.GeometryFactory geometryFactory)
将GeoJson对象转为Feature- 参数:
strGeoJsonFeatureCollection- geoJsonFeatureCollection stringgeometryFactory- geometryFactory- 返回:
- FeatureCollection
-
fromGeoJsonFeatureCollection
public static FeatureCollection fromGeoJsonFeatureCollection(GeoJsonObject.FeatureCollection geoJsonFeatureCollection, org.locationtech.jts.geom.GeometryFactory geometryFactory)
将GeoJson对象转为Feature- 参数:
geoJsonFeatureCollection- geoJsonFeatureCollectiongeometryFactory- geometryFactory- 返回:
- FeatureCollection
-
-