类 ShapeFileManage
- java.lang.Object
-
- org.meteoinfo.data.mapdata.ShapeFileManage
-
public class ShapeFileManage extends java.lang.ObjectShape file read and write- 作者:
- yaqiang
-
-
构造器概要
构造器 构造器 说明 ShapeFileManage()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static AttributeTableloadDbfFile(java.lang.String shpFileName, java.lang.String encoding)Load DBF data filestatic ProjectionInfoloadProjFile(java.io.File projFile)Load projection filestatic VectorLayerloadShapeFile(java.lang.String shpfilepath)Load shape filestatic VectorLayerloadShapeFile(java.lang.String shpfilepath, java.lang.String encoding)Load shape filestatic booleansaveShapeFile(java.lang.String shpfilepath, VectorLayer aLayer)Save shape filestatic booleansaveShapeFile(java.lang.String shpfilepath, VectorLayer aLayer, java.lang.String encoding)Save shape file
-
-
-
方法详细资料
-
loadShapeFile
public static VectorLayer loadShapeFile(java.lang.String shpfilepath) throws java.io.IOException, java.io.FileNotFoundException, java.lang.Exception
Load shape file- 参数:
shpfilepath- Shape file path- 返回:
- Vector layer
- 抛出:
java.io.IOExceptionjava.io.FileNotFoundExceptionjava.lang.Exception
-
loadShapeFile
public static VectorLayer loadShapeFile(java.lang.String shpfilepath, java.lang.String encoding) throws java.io.IOException, java.io.FileNotFoundException, java.lang.Exception
Load shape file- 参数:
shpfilepath- Shape file pathencoding- Encoding- 返回:
- Vector layer
- 抛出:
java.io.IOExceptionjava.io.FileNotFoundExceptionjava.lang.Exception
-
loadDbfFile
public static AttributeTable loadDbfFile(java.lang.String shpFileName, java.lang.String encoding) throws java.lang.Exception
Load DBF data file- 参数:
shpFileName- Shape file nameencoding- Encoding- 返回:
- Attribute table
- 抛出:
java.lang.Exception
-
loadProjFile
public static ProjectionInfo loadProjFile(java.io.File projFile) throws java.io.FileNotFoundException, java.io.IOException
Load projection file- 参数:
projFile- Projection file- 返回:
- Projection infomation
- 抛出:
java.io.FileNotFoundExceptionjava.io.IOException
-
saveShapeFile
public static boolean saveShapeFile(java.lang.String shpfilepath, VectorLayer aLayer) throws java.io.IOExceptionSave shape file- 参数:
shpfilepath- Shape file pathaLayer- Vector layer- 返回:
- Boolean
- 抛出:
java.io.IOException
-
saveShapeFile
public static boolean saveShapeFile(java.lang.String shpfilepath, VectorLayer aLayer, java.lang.String encoding) throws java.io.IOExceptionSave shape file- 参数:
shpfilepath- Shape file pathaLayer- Vector layerencoding- Encoding- 返回:
- Boolean
- 抛出:
java.io.IOException
-
-