|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
ObjectEnum<ShpFileType>
ShpFileType
public enum ShpFileType
Enumerates the known types of files associated with a shapefile.
Enum Constant Summary | |
---|---|
DBF
the .dbf file, it contains the attribute information of the shapefile |
|
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 |
|
GRX
Deprecated. |
|
PRJ
the .prj file, it contains the projection information of the shapefile |
|
QIX
the .qix file, A quad tree spatial index of the shapefile. |
|
SHP
The .shp file. |
|
SHP_XML
the .shp.xml file, it contains the metadata about the shapefile |
|
SHX
the .shx file, it contains index information of the existing features |
Field Summary | |
---|---|
String |
extension
|
String |
extensionWithPeriod
|
Method Summary | |
---|---|
String |
toBase(File file)
Returns the base of the file or null if the file passed in is not of the correct type (has the correct extension.) |
String |
toBase(String path)
Returns the base of the file or null if the file passed in is not of the correct type (has the correct extension.) |
String |
toBase(URL url)
Returns the base of the file or null if the file passed in is not of the correct type (has the correct extension.) |
static ShpFileType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ShpFileType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ShpFileType SHP
public static final ShpFileType DBF
public static final ShpFileType SHX
public static final ShpFileType PRJ
public static final ShpFileType QIX
public static final ShpFileType FIX
public static final ShpFileType SHP_XML
public static final ShpFileType GRX
Field Detail |
---|
public final String extension
public final String extensionWithPeriod
Method Detail |
---|
public static final ShpFileType[] values()
for(ShpFileType c : ShpFileType.values()) System.out.println(c);
public static ShpFileType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic String toBase(File file)
For example if the file is c:\shapefiles\file1.dbf. The DBF type will return c:\shapefiles\file1 but all other will return null.
public String toBase(String path)
For example if the file is c:\shapefiles\file1.dbf. The DBF type will return c:\shapefiles\file1 but all other will return null.
public String toBase(URL url)
For example if the file is c:\shapefiles\file1.dbf. The DBF type will return c:\shapefiles\file1 but all other will return null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |