public class MapDataManage extends Object
| 构造器 | 说明 |
|---|---|
MapDataManage() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static MapDataType |
canOpen(String fileName) |
Can open or not as a map layer
|
static MapLayer |
loadLayer(String aFile) |
Load a layer from a file
|
static MapLayer |
loadLayer(String aFile,
ProjectionInfo projInfo) |
Load a layer from a file with a certain projection
|
static RasterLayer |
readBILFile(String fileName) |
Read BIL file and create a raster layer
|
static RasterLayer |
readESRI_ASCII_GRID(String fileName) |
Read ESRI ASCII grid file and create a raster layer
|
static RasterLayer |
readGeoTiffFile(String fileName) |
Create a raster layer from geotiff file
|
static ImageLayer |
readImageFile(String aFile) |
Read image file
|
static VectorLayer |
readMapFile_GrADS(String aFile) |
Read GrADS map file
|
static VectorLayer |
readMapFile_ShapeFile(String aFile) |
Read shape file as map
|
static VectorLayer |
readMapFile_ShapeFile(String aFile,
String encoding) |
Read shape file as map
|
static VectorLayer |
readMapFile_WMP(String fileName) |
Read WMP file
|
static RasterLayer |
readSurfer_ASCII_GRID(String fileName) |
Read surfer ASCII grid file and create a raster layer
|
static void |
writeMapFile_WMP(String fileName,
List<Shape> shapes) |
Write WMP file
|
static void |
writeProjFile(String projFilePath,
ProjectionInfo projInfo) |
Write projection file
|
public static MapDataType canOpen(String fileName) throws FileNotFoundException, IOException
fileName - File nameFileNotFoundExceptionIOExceptionpublic static MapLayer loadLayer(String aFile) throws IOException, FileNotFoundException, Exception
aFile - The file pathIOExceptionFileNotFoundExceptionExceptionpublic static MapLayer loadLayer(String aFile, ProjectionInfo projInfo) throws IOException, FileNotFoundException, Exception
aFile - The file nameprojInfo - The projectionIOExceptionFileNotFoundExceptionExceptionpublic static VectorLayer readMapFile_ShapeFile(String aFile) throws IOException, FileNotFoundException, Exception
aFile - File nameIOExceptionFileNotFoundExceptionExceptionpublic static VectorLayer readMapFile_ShapeFile(String aFile, String encoding) throws IOException, FileNotFoundException, Exception
aFile - File nameencoding - EncodingIOExceptionFileNotFoundExceptionExceptionpublic static VectorLayer readMapFile_GrADS(String aFile) throws FileNotFoundException, IOException, Exception
aFile - The file pathFileNotFoundExceptionIOExceptionExceptionpublic static ImageLayer readImageFile(String aFile) throws IOException
aFile - File pathIOExceptionpublic static RasterLayer readGeoTiffFile(String fileName)
fileName - File pathpublic static RasterLayer readBILFile(String fileName)
fileName - BIL file namepublic static RasterLayer readESRI_ASCII_GRID(String fileName)
fileName - File namepublic static RasterLayer readSurfer_ASCII_GRID(String fileName)
fileName - File namepublic static VectorLayer readMapFile_WMP(String fileName) throws IOException, Exception
fileName - The file nameIOExceptionExceptionpublic static void writeMapFile_WMP(String fileName, List<Shape> shapes)
fileName - The file nameshapes - Shapespublic static void writeProjFile(String projFilePath, ProjectionInfo projInfo)
projFilePath - Projection file pathprojInfo - Projection infoCopyright © 2019. All rights reserved.