com.partnersoft.v3x.io.formats.shapefile
Class ShapefileBuilder
java.lang.Object
com.partnersoft.v3x.io.formats.shapefile.ShapefileBuilder
- All Implemented Interfaces:
- ShapefileConstants
public class ShapefileBuilder
- extends java.lang.Object
- implements ShapefileConstants
Takes care of building a shapefile.
| 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 |
ShapefileBuilder(java.lang.String path,
int shapeType,
java.util.ArrayList fieldNameList)
|
|
Method Summary |
void |
addPoint(double x,
double y,
java.lang.Object data)
|
void |
addPolyline(int numPoints,
double[] coords,
java.lang.Object data)
|
void |
close()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShapefileBuilder
public ShapefileBuilder(java.lang.String path,
int shapeType,
java.util.ArrayList fieldNameList)
throws java.io.IOException
- Throws:
java.io.IOException
addPoint
public void addPoint(double x,
double y,
java.lang.Object data)
throws java.io.IOException
- Throws:
java.io.IOException
addPolyline
public void addPolyline(int numPoints,
double[] coords,
java.lang.Object data)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException