| java.lang.Object org.geotools.shapefile.Shapefile
Shapefile | public class Shapefile (Code) | | This class represnts an ESRI Shape file.
You construct it with a file name, and later
you can read the file's propertys, i.e. Sizes, Types, and the data itself.
Copyright 1998 by James Macgill.
Version 1.0beta1.1 (added construct with inputstream)
1.0beta1.2 (made Shape type constants public 18/Aug/98)
This class supports the Shape file as set out in :-
"ESRI(r) Shapefile - A Technical Description"
'An ESRI White Paper . May 1997'
This code is coverd by the LGPL.
Mail the Author
|
ARC | final public static int ARC(Code) | | |
ARCM | final public static int ARCM(Code) | | |
ARCZ | final public static int ARCZ(Code) | | |
MULTIPOINT | final public static int MULTIPOINT(Code) | | |
MULTIPOINTM | final public static int MULTIPOINTM(Code) | | |
MULTIPOINTZ | final public static int MULTIPOINTZ(Code) | | |
NULL | final public static int NULL(Code) | | |
POINT | final public static int POINT(Code) | | |
POINTM | final public static int POINTM(Code) | | |
POINTZ | final public static int POINTZ(Code) | | |
POLYGON | final public static int POLYGON(Code) | | |
POLYGONM | final public static int POLYGONM(Code) | | |
POLYGONZ | final public static int POLYGONZ(Code) | | |
SHAPEFILE_ID | final static int SHAPEFILE_ID(Code) | | |
UNDEFINED | final public static int UNDEFINED(Code) | | |
VERSION | final static int VERSION(Code) | | |
Shapefile | public Shapefile(URL url)(Code) | | Creates and initialises a shapefile from a url
Parameters: url - The url of the shapefile |
getShapeTypeDescription | public static String getShapeTypeDescription(int index)(Code) | | Returns a string for the shape type of index.
Parameters: index - An int coresponding to the shape type to be described A string descibing the shape type |
read | public GeometryCollection read(GeometryFactory geometryFactory) throws IOException, ShapefileException, Exception(Code) | | Initialises a shapefile from disk.
Use Shapefile(String) if you don't want to use LEDataInputStream directly (recomended)
Parameters: geometryFactory - the geometry factory to use to read the shapes |
write | public void write(GeometryCollection geometries, int ShapeFileDimentions) throws IOException, Exception(Code) | | Saves a shapefile to and output stream.
Parameters: geometries - geometry collection to write Parameters: ShapeFileDimentions - shapefile dimension |
|
|