de.fhg.igd.earth.model.input.shapefile
Class ESRIPoly
java.lang.Object
de.fhg.igd.earth.model.input.shapefile.ShapeUtils
de.fhg.igd.earth.model.input.shapefile.ESRIPoly
- Direct Known Subclasses:
- ESRIPoly.ESRIFloatPoly
- public abstract class ESRIPoly
- extends ShapeUtils
A representation of a shape file polygon, subordinate to an
ESRIPolygonRecord
.
This is an abstract class, please use one of the fully derived
internal classes to do your bidding.
TODO
- Write double-floating point representation of an ESRIPoly.
- Make sure to abstract float point vs double float in other
objects of the ShapeFile reading code.
Title : Earth
Copyright : Copyright (c) 2001
Organisation : IGD FhG
- Version:
- : 1.0
- Author:
- : Werner Beutel
Field Summary |
int |
nPoints
The number of (y,x) pairs of the ESRIPoly. |
Method Summary |
abstract int |
read(byte[] b,
int off,
boolean connect)
Reads a polygon from the given buffer starting at the given offset. |
Methods inherited from class de.fhg.igd.earth.model.input.shapefile.ShapeUtils |
readBEInt, readBox, readLEDouble, readLEInt, readLEInt, readLELong, readPoint, writeBEInt, writeBox, writeLEDouble, writeLEInt, writeLELong, writePoint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nPoints
public int nPoints
- The number of (y,x) pairs of the ESRIPoly.
This value should be the
points.length>>1
.
ESRIPoly
public ESRIPoly()
read
public abstract int read(byte[] b,
int off,
boolean connect)
- Reads a polygon from the given buffer starting at the given offset.
- Parameters:
b
- the bufferoff
- the offset
- Returns:
- the number of bytes read
Copyright © Fraunhofer Gesellschaft. All
Rights Reserved.