|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.feature.persistence.shape.SHPReader
public class SHPReader
SHPReader
Field Summary | |
---|---|
static int |
FILETYPE
The file type number. |
static int |
FIRST_RING
First ring of a polygon part type. |
static int |
INNER_RING
Inner polygon ring part type. |
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 |
OUTER_RING
Outer polygon ring part type. |
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 |
RING
Polygon ring part type. |
static int |
TRIANGLE_FAN
Triangle fan part type. |
static int |
TRIANGLE_STRIP
Triangle strip part type. |
static int |
VERSION
The shape file version. |
Constructor Summary | |
---|---|
SHPReader(RandomAccessFile inFile,
ICRS crs,
SpatialIndex<Long> rtree,
boolean startsWithZero)
|
Method Summary | |
---|---|
void |
close()
Closes the underlying file channel and random access file. |
Envelope |
getEnvelope()
|
GeometryPropertyType.GeometryType |
getGeometryType()
|
LinkedList<Pair<Integer,Geometry>> |
query(Envelope bbox,
boolean withGeometry,
boolean exact)
|
List<Pair<Integer,Long>> |
query(Envelope bbox,
HashSet<Integer> ids)
|
Pair<ArrayList<Pair<float[],Long>>,Boolean> |
readEnvelopes()
He Who Needs It As Double, is welcome to implement/copy it. |
Geometry |
readGeometry(long ptr)
Returns the geometry entry stored at the given position. |
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
public static final int TRIANGLE_STRIP
public static final int TRIANGLE_FAN
public static final int OUTER_RING
public static final int INNER_RING
public static final int FIRST_RING
public static final int RING
Constructor Detail |
---|
public SHPReader(RandomAccessFile inFile, ICRS crs, SpatialIndex<Long> rtree, boolean startsWithZero) throws IOException
inFile
- crs
- rtree
- startsWithZero
-
IOException
Method Detail |
---|
public GeometryPropertyType.GeometryType getGeometryType()
public List<Pair<Integer,Long>> query(Envelope bbox, HashSet<Integer> ids) throws IOException
bbox
- ids
- if not null, the resulting list will only contain record numbers which are also contained in this set.
If null, all matching records are returned.
IOException
public LinkedList<Pair<Integer,Geometry>> query(Envelope bbox, boolean withGeometry, boolean exact) throws IOException
bbox
- withGeometry
- exact
-
IOException
public Envelope getEnvelope()
public Pair<ArrayList<Pair<float[],Long>>,Boolean> readEnvelopes()
public Geometry readGeometry(long ptr)
ptr
- position of the entry
null
public void close() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |