类 ShapeFileManage


  • public class ShapeFileManage
    extends java.lang.Object
    Shape file read and write
    作者:
    yaqiang
    • 构造器详细资料

      • ShapeFileManage

        public ShapeFileManage()
    • 方法详细资料

      • 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.IOException
        java.io.FileNotFoundException
        java.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 path
        encoding - Encoding
        返回:
        Vector layer
        抛出:
        java.io.IOException
        java.io.FileNotFoundException
        java.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 name
        encoding - 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.FileNotFoundException
        java.io.IOException
      • saveShapeFile

        public static boolean saveShapeFile​(java.lang.String shpfilepath,
                                            VectorLayer aLayer)
                                     throws java.io.IOException
        Save shape file
        参数:
        shpfilepath - Shape file path
        aLayer - Vector layer
        返回:
        Boolean
        抛出:
        java.io.IOException
      • saveShapeFile

        public static boolean saveShapeFile​(java.lang.String shpfilepath,
                                            VectorLayer aLayer,
                                            java.lang.String encoding)
                                     throws java.io.IOException
        Save shape file
        参数:
        shpfilepath - Shape file path
        aLayer - Vector layer
        encoding - Encoding
        返回:
        Boolean
        抛出:
        java.io.IOException