|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.geo.esri.ShapeReader
public class ShapeReader
Reads esri.shape meta objects from an ESRI SHP file.
Constructor Summary | |
---|---|
ShapeReader(java.io.InputStream in)
|
Method Summary | |
---|---|
int |
getFileCode()
Should be 9994 |
int |
getFileLength()
File length of the shape file in 16 bit words |
MetaObject |
getLayerExtent()
|
int |
getShapeType()
|
static java.lang.String |
getShapeTypeString(int type)
|
int |
getVersion()
Should be 1000 |
boolean |
hasNext()
Returns true if there are still more shapes in the file. |
java.lang.Object |
next()
Returns the next shape in the file. |
java.lang.Object |
readGeoShape()
Reads the next shape from the file. |
protected void |
readHeader()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShapeReader(java.io.InputStream in) throws java.io.IOException
java.io.IOException
Method Detail |
---|
protected void readHeader() throws java.io.IOException
java.io.IOException
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
public java.lang.Object readGeoShape() throws java.io.IOException
java.io.IOException
public static java.lang.String getShapeTypeString(int type)
public int getFileCode()
public int getFileLength()
public MetaObject getLayerExtent()
public int getShapeType()
public int getVersion()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |