|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.io.shpapi.shape_new.ShapeFile
public class ShapeFile
ShapeFile
encapsulates and provides access to data and properties of a shapefile. Please note that
writing will probably fail if the data was read by shapefile.
Field Summary | |
---|---|
static int |
FILETYPE
The file type number. |
static int |
MULTIPATCH
The multipatch shape. |
static int |
MULTIPOINT
The normal multipoint. |
static int |
MULTIPOINTM
The multipoint with measures. |
static int |
MULTIPOINTZ
The multipoint with z coordinates. |
static int |
NULL
The NULL shape. |
static int |
POINT
The normal point. |
static int |
POINTM
The point with measure. |
static int |
POINTZ
The point with z coordinates. |
static int |
POLYGON
The normal polygon. |
static int |
POLYGONM
The polygon with measures. |
static int |
POLYGONZ
The polygon with z coordinates. |
static int |
POLYLINE
The normal polyline. |
static int |
POLYLINEM
The polyline with measures. |
static int |
POLYLINEZ
The polyline with z coordinates. |
static int |
VERSION
The shape file version. |
Constructor Summary | |
---|---|
ShapeFile(FeatureCollection fc,
java.lang.String baseName)
Creates shapefile datastructures from the feature collection. |
|
ShapeFile(java.util.LinkedList<Shape> shapes,
ShapeEnvelope envelope,
DBaseFile dbf,
java.lang.String baseName)
|
Method Summary | |
---|---|
java.lang.String |
getBaseName()
|
ShapeEnvelope |
getEnvelope()
|
FeatureCollection |
getFeatureCollection()
This method destroys the internal list of shapes and the associated .dbf structure! |
java.util.List<Shape> |
getShapes()
|
int |
getShapeType()
|
int |
getSize()
|
void |
writeDBF()
This writes the DBF file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FILETYPE
public static final int VERSION
public static final int NULL
public static final int POINT
public static final int POLYLINE
public static final int POLYGON
public static final int MULTIPOINT
public static final int POINTZ
public static final int POLYLINEZ
public static final int POLYGONZ
public static final int MULTIPOINTZ
public static final int POINTM
public static final int POLYLINEM
public static final int POLYGONM
public static final int MULTIPOINTM
public static final int MULTIPATCH
Constructor Detail |
---|
public ShapeFile(java.util.LinkedList<Shape> shapes, ShapeEnvelope envelope, DBaseFile dbf, java.lang.String baseName)
shapes
- the shapes that this shapefile consists ofenvelope
- the envelope of all the shapesdbf
- the associated DBase filebaseName
- the base namepublic ShapeFile(FeatureCollection fc, java.lang.String baseName) throws DBaseException, GeometryException
fc
- baseName
- necessary for DBF creation, base filename without .dbf extension
DBaseException
GeometryException
Method Detail |
---|
public java.util.List<Shape> getShapes()
public int getShapeType()
public int getSize()
public ShapeEnvelope getEnvelope()
public void writeDBF() throws java.io.IOException, DBaseException
java.io.IOException
DBaseException
public FeatureCollection getFeatureCollection() throws DBaseException
DBaseException
public java.lang.String getBaseName()
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org