Enum Class ShpFileType
- All Implemented Interfaces:
Serializable,Comparable<ShpFileType>,Constable
Enumerates the known types of files associated with a shapefile.
- Author:
- jesse
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionthe .cpg file is used to specify the code pagethe .dbf file, it contains the attribute information of the shapefilethe .fix file, it contains all the Feature IDs for constant time lookup by fid also so that the fids stay consistent across deletes and addsthe .prj file, it contains the projection information of the shapefilethe .qix file, A quad tree spatial index of the shapefile.The .shp file.the .shp.xml file, it contains the metadata about the shapefilethe .shx file, it contains index information of the existing features -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the base of the file or null if the file passed in is not of the correct type (has the correct extension.)Returns the base of the file or null if the file passed in is not of the correct type (has the correct extension.)Returns the base of the file or null if the file passed in is not of the correct type (has the correct extension.)static ShpFileTypeReturns the enum constant of this class with the specified name.static ShpFileType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SHP
The .shp file. It contains the geometries of the shapefile -
DBF
the .dbf file, it contains the attribute information of the shapefile -
SHX
the .shx file, it contains index information of the existing features -
PRJ
the .prj file, it contains the projection information of the shapefile -
QIX
the .qix file, A quad tree spatial index of the shapefile. It is the same format the mapservers shptree tool generates -
FIX
the .fix file, it contains all the Feature IDs for constant time lookup by fid also so that the fids stay consistent across deletes and adds -
SHP_XML
the .shp.xml file, it contains the metadata about the shapefile -
CPG
the .cpg file is used to specify the code page
-
-
Field Details
-
extension
-
extensionWithPeriod
-
gzExtensionWithPeriod
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toBase
Returns the base of the file or null if the file passed in is not of the correct type (has the correct extension.)For example if the file is c:\shapefiles\file1.dbf. The DBF type will return c:\shapefiles\file1 but all other will return null.
-
toBase
Returns the base of the file or null if the file passed in is not of the correct type (has the correct extension.)For example if the file is c:\shapefiles\file1.dbf. The DBF type will return c:\shapefiles\file1 but all other will return null.
-
toBase
Returns the base of the file or null if the file passed in is not of the correct type (has the correct extension.)For example if the file is c:\shapefiles\file1.dbf. The DBF type will return c:\shapefiles\file1 but all other will return null.
-