public class ZShpGeoJSONUtil
extends java.lang.Object
构造器和说明 |
---|
ZShpGeoJSONUtil() |
限定符和类型 | 方法和说明 |
---|---|
static java.util.List<Graphic> |
multiGraphicToSingle(java.util.List<Graphic> graphics) |
static void |
readerKml(java.lang.String fileName)
读取KML格式数据
|
static java.lang.String |
readerShpToGeoJSONString(java.lang.String shpPath)
shp转换为GeoJSON字符串
|
static java.lang.String |
readerShpToGeoJSONString(java.lang.String shpPath,
java.lang.String charsetName)
Shp转换为GEOJSON格式数据
|
static void |
saveToShp(java.lang.String filePath,
java.util.List<Graphic> graphicList)
保存成shp文件
|
static void |
saveToShp(java.lang.String filePath,
java.util.List<Graphic> graphicList,
java.lang.String encode)
保存成SHP格式数据
|
static void |
zipShapeFile(java.lang.String shpPath)
压缩shape文件
|
public static java.util.List<Graphic> multiGraphicToSingle(java.util.List<Graphic> graphics)
public static void saveToShp(java.lang.String filePath, java.util.List<Graphic> graphicList)
filePath
- 文件路径graphicList
- 地理对象列表public static void saveToShp(java.lang.String filePath, java.util.List<Graphic> graphicList, java.lang.String encode)
filePath
- 文件路径graphicList
- 图形数组encode
- 编码格式public static java.lang.String readerShpToGeoJSONString(java.lang.String shpPath)
shpPath
- shp文件路径public static java.lang.String readerShpToGeoJSONString(java.lang.String shpPath, java.lang.String charsetName)
shpPath
- shp路径charsetName
- 编码格式public static void zipShapeFile(java.lang.String shpPath)
shpPath
- shapeFile文件路径(包含shapeFile文件名称)public static void readerKml(java.lang.String fileName)
fileName
- 文件名称