public class Shapefile extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ARC |
static int |
ARCM |
static int |
ARCZ |
static int |
MULTIPOINT |
static int |
MULTIPOINTM |
static int |
MULTIPOINTZ |
static int |
NULL |
static int |
POINT |
static int |
POINTM |
static int |
POINTZ |
static int |
POLYGON |
static int |
POLYGONM |
static int |
POLYGONZ |
static int |
UNDEFINED |
static int |
XY |
static int |
XYM |
static int |
XYZM |
Constructor and Description |
---|
Shapefile(InputStream IS) |
Shapefile(URL url)
Creates and initialises a shapefile from a url
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
static ShapeHandler |
getShapeHandler(Geometry geom,
int ShapeFileDimentions) |
static ShapeHandler |
getShapeHandler(int type) |
static int |
getShapeType(Geometry geom,
int coordDimension) |
static String |
getShapeTypeDescription(int index)
Returns a string for the shape type of index.
|
Geometry |
next()
Returns the next geometry in the shapefile stream
|
GeometryCollection |
read(GeometryFactory geometryFactory)
Initialises a shapefile from disk.
|
void |
readIndex(InputStream is) |
void |
readStream(GeometryFactory geometryFactory)
Initialises a shapefile from disk.
|
public static final int NULL
public static final int POINT
public static final int POINTZ
public static final int POINTM
public static final int ARC
public static final int ARCM
public static final int ARCZ
public static final int POLYGON
public static final int POLYGONM
public static final int POLYGONZ
public static final int MULTIPOINT
public static final int MULTIPOINTM
public static final int MULTIPOINTZ
public static final int UNDEFINED
public static final int XY
public static final int XYM
public static final int XYZM
public Shapefile(URL url)
url
- The url of the shapefilepublic Shapefile(InputStream IS)
public GeometryCollection read(GeometryFactory geometryFactory) throws IOException, ShapefileException, Exception
IOException
ShapefileException
Exception
public void readStream(GeometryFactory geometryFactory) throws IOException, ShapefileException, Exception
IOException
ShapefileException
Exception
public Geometry next() throws IOException
IOException
public void close() throws IOException
IOException
public static String getShapeTypeDescription(int index)
index
- An int coresponding to the shape type to be describedpublic static ShapeHandler getShapeHandler(Geometry geom, int ShapeFileDimentions) throws Exception
Exception
public static ShapeHandler getShapeHandler(int type) throws Exception
Exception
public static int getShapeType(Geometry geom, int coordDimension) throws ShapefileException
ShapefileException
public void readIndex(InputStream is) throws IOException
IOException
Copyright © 2022. All rights reserved.