|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bbn.openmap.dataAccess.shape.input.ShpInputStream
public class ShpInputStream
Reads geometry data from a .shp file.
| Field Summary | |
|---|---|
protected DrawingAttributes |
drawingAttributes
|
| Constructor Summary | |
|---|---|
ShpInputStream(java.io.InputStream is)
Constructor |
|
| Method Summary | |
|---|---|
DrawingAttributes |
getDrawingAttributes()
Get the DrawingAttributes used for drawing the graphics. |
EsriGraphicList |
getGeometry()
Reads geometry from a .shp file. |
EsriGraphicList |
getGeometry(EsriGraphicFactory factory)
Reads geometry from a .shp file. |
EsriGraphicList |
getGeometry(int[][] indexData)
Deprecated. use getGeometry() instead, indexData isn't used. |
protected int[] |
getPartOffsets(OMGraphicList sublist)
Deprecated. not used. |
EsriGraphicList |
getPointGeometry(int[][] indexData)
Deprecated. not used. |
protected int |
getPointsPerShape(OMGraphicList sublist)
Deprecated. not used. |
EsriGraphicList |
getPolyGeometry(int[][] indexData,
int shapeType)
Deprecated. not used. |
int |
readHeader()
Deprecated. not used. |
void |
setDrawingAttributes(DrawingAttributes da)
Set the DrawingAttributes to use for drawing the graphics. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DrawingAttributes drawingAttributes
| Constructor Detail |
|---|
public ShpInputStream(java.io.InputStream is)
is - An inputstream to chain with LittleEndianInputStream| Method Detail |
|---|
public void setDrawingAttributes(DrawingAttributes da)
public DrawingAttributes getDrawingAttributes()
public EsriGraphicList getGeometry(int[][] indexData)
throws java.lang.Exception
indexData - The index data retrieved from the .shx file
java.lang.Exception
public EsriGraphicList getGeometry()
throws java.lang.Exception
java.lang.Exception
public EsriGraphicList getGeometry(EsriGraphicFactory factory)
throws java.lang.Exception
factory - an EsriGraphicFactory to be used to read from the internal
stream.
java.lang.Exceptionprotected int[] getPartOffsets(OMGraphicList sublist)
public EsriGraphicList getPointGeometry(int[][] indexData)
throws java.lang.Exception
indexData - A list of offsets obtained by iterating through the
associated SHX file
java.lang.Exceptionprotected int getPointsPerShape(OMGraphicList sublist)
sublist - A list that contains multiple parts
public EsriGraphicList getPolyGeometry(int[][] indexData,
int shapeType)
throws java.lang.Exception
shapeType - the type of shape to readindexData - A list of offsets obtained by iterating through the
associated SHX file
java.lang.Exception
public int readHeader()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||