|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.io.formats.shapefile.ShapeLib
public class ShapeLib
Handy library routines for ESRI shapes.
| Field Summary |
|---|
| Fields inherited from interface com.partnersoft.v3x.io.formats.shapefile.ShapefileConstants |
|---|
ARCINFO_ARC, ARCINFO_ARCMAYBE, ARCINFO_ARCMAYBE2, ARCINFO_ARCMAYBE3, MULTIPATCH, MULTIPOINT, MULTIPOINTM, MULTIPOINTZ, NULLSHAPE, POINT, POINTM, POINTZ, POLYGON, POLYGONM, POLYGONZ, POLYLINE, POLYLINEM, POLYLINEZ, shapeNames, WHATZIT10, WHATZIT4, WHATZIT9 |
| Constructor Summary | |
|---|---|
ShapeLib()
|
|
| Method Summary | |
|---|---|
static ShapefileRecord |
readShape(byte[] shapeBytes)
Converts a byte array to a ShapefileRecord of the appropriate type. |
static ShapefileRecord |
readShape(byte[] shapeBytes,
int start)
Converts a byte array to a ShapefileRecord of the appropriate type. |
static int |
readShapePoints(ByteBuffer buffer,
PolylineArray results)
Reads through a ByteBuffer and converts it to one or more polylines in the given PolylineArray. |
static void |
writePoint(double x,
double y,
ByteBuffer output)
|
static void |
writePolyline(DoubleBuffer coords,
ByteBuffer output)
Make sure to change writePolyline(FloatBuffer, ByteBuffer) to match this exactly! |
static void |
writePolyline(FloatBuffer coords,
ByteBuffer output)
Make sure to change writePolyline(DoubleBuffer, ByteBuffer) to match this exactly! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShapeLib()
| Method Detail |
|---|
public static int readShapePoints(ByteBuffer buffer,
PolylineArray results)
public static ShapefileRecord readShape(byte[] shapeBytes)
public static ShapefileRecord readShape(byte[] shapeBytes,
int start)
public static final void writePolyline(FloatBuffer coords,
ByteBuffer output)
public static final void writePolyline(DoubleBuffer coords,
ByteBuffer output)
public static final void writePoint(double x,
double y,
ByteBuffer output)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||