public class ShapeFileManage extends Object
| 构造器 | 说明 |
|---|---|
ShapeFileManage() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static AttributeTable |
loadDbfFile(String shpFileName,
String encoding) |
Load DBF data file
|
static ProjectionInfo |
loadProjFile(File projFile) |
Load projection file
|
static VectorLayer |
loadShapeFile(String shpfilepath) |
Load shape file
|
static VectorLayer |
loadShapeFile(String shpfilepath,
String encoding) |
Load shape file
|
static boolean |
saveShapeFile(String shpfilepath,
VectorLayer aLayer) |
Save shape file
|
static boolean |
saveShapeFile(String shpfilepath,
VectorLayer aLayer,
String encoding) |
Save shape file
|
public static VectorLayer loadShapeFile(String shpfilepath) throws IOException, FileNotFoundException, Exception
shpfilepath - Shape file pathIOExceptionFileNotFoundExceptionExceptionpublic static VectorLayer loadShapeFile(String shpfilepath, String encoding) throws IOException, FileNotFoundException, Exception
shpfilepath - Shape file pathencoding - EncodingIOExceptionFileNotFoundExceptionExceptionpublic static AttributeTable loadDbfFile(String shpFileName, String encoding) throws Exception
shpFileName - Shape file nameencoding - EncodingExceptionpublic static ProjectionInfo loadProjFile(File projFile) throws FileNotFoundException, IOException
projFile - Projection fileFileNotFoundExceptionIOExceptionpublic static boolean saveShapeFile(String shpfilepath, VectorLayer aLayer) throws IOException
shpfilepath - Shape file pathaLayer - Vector layerIOExceptionpublic static boolean saveShapeFile(String shpfilepath, VectorLayer aLayer, String encoding) throws IOException
shpfilepath - Shape file pathaLayer - Vector layerencoding - EncodingIOExceptionCopyright © 2019. All rights reserved.