com.partnersoft.io.formats.shapefile
Class ShapeLib

java.lang.Object
  extended by com.partnersoft.io.formats.shapefile.ShapeLib
All Implemented Interfaces:
ShapefileConstants

public class ShapeLib
extends java.lang.Object
implements ShapefileConstants

Handy library routines for ESRI shapes.

Author:
Paul Reavis Copyright 2001 Partner Software, Inc.

Field Summary
 
Fields inherited from interface com.partnersoft.io.formats.shapefile.ShapefileConstants
ARCINFO_ARC, ARCINFO_ARCMAYBE, MULTIPATCH, MULTIPOINT, MULTIPOINTM, MULTIPOINTZ, NULLSHAPE, POINT, POINTM, POINTZ, POLYGON, POLYGONM, POLYGONZ, POLYLINE, POLYLINEM, POLYLINEZ, shapeNames, WHATZIT4, WHATZIT9
 
Constructor Summary
ShapeLib()
           
 
Method Summary
static int readShapePoints(ByteBuffer buffer, PolylineArray results)
          Reads through a ByteBuffer and converts it to one or more polylines in the given PolylineArray.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeLib

public ShapeLib()
Method Detail

readShapePoints

public static int readShapePoints(ByteBuffer buffer,
                                  PolylineArray results)
Reads through a ByteBuffer and converts it to one or more polylines in the given PolylineArray. From there you can decide how to process it - as a point, polygon, etc. This does not necessarily faithfully reproduce the original shape - arcs are plotted as lines at 10 degree intervals, for example.