Package | Description |
---|---|
org.geotools.data.shapefile.shp |
Modifier and Type | Field and Description |
---|---|
ShapeType |
ShapefileReader.Record.type |
Modifier and Type | Method and Description |
---|---|
static ShapeType |
JTSUtilities.findBestGeometryType(Geometry geom)
Determine the best ShapeType for a given Geometry.
|
static ShapeType |
ShapeType.forID(int id)
Determine the ShapeType for the id.
|
ShapeType |
PointHandler.getShapeType()
Returns the shapefile shape type value for a point
|
ShapeType |
PolygonHandler.getShapeType() |
ShapeType |
MultiLineHandler.getShapeType()
Get the type of shape stored (ShapeType.ARC,ShapeType.ARCM,ShapeType.ARCZ)
|
ShapeType |
ShapefileHeader.getShapeType() |
ShapeType |
ShapeHandler.getShapeType()
Get the ShapeType of this handler.
|
ShapeType |
MultiPointHandler.getShapeType()
Returns the shapefile shape type value for a point
|
static ShapeType |
JTSUtilities.getShapeType(Class<? extends Geometry> featureClass)
Determine the default ShapeType for a featureClass.
|
static ShapeType |
JTSUtilities.getShapeType(GeometryDescriptor gd)
Determine the default ShapeType using the descriptor and eventually the geometry to guess the
coordinate dimensions if not reported in the descriptor hints
|
static ShapeType |
JTSUtilities.getShapeType(Geometry geom,
int shapeFileDimentions)
Determine the best ShapeType for a geometry with the given dimension.
|
static ShapeType |
ShapeType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShapeType[] |
ShapeType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static Geometry |
JTSUtilities.convertToCollection(Geometry geom,
ShapeType type) |
static Class<? extends Geometry> |
JTSUtilities.findBestGeometryClass(ShapeType type) |
Object |
PointHandler.read(ByteBuffer buffer,
ShapeType type,
boolean flatGeometry) |
Object |
PolygonHandler.read(ByteBuffer buffer,
ShapeType type,
boolean flatFeature) |
Object |
MultiLineHandler.read(ByteBuffer buffer,
ShapeType type,
boolean flatGeometry) |
Object |
ShapeHandler.read(ByteBuffer buffer,
ShapeType type,
boolean flatGeometry)
Read a geometry from the ByteBuffer.
|
Object |
MultiPointHandler.read(ByteBuffer buffer,
ShapeType type,
boolean flatGeometry) |
void |
ShapefileHeader.write(ByteBuffer file,
ShapeType type,
int numGeoms,
int length,
double minX,
double minY,
double maxX,
double maxY) |
void |
ShapefileWriter.write(GeometryCollection geometries,
ShapeType type)
Bulk write method for writing a collection of (hopefully) like geometries of the given
ShapeType.
|
void |
ShapefileWriter.writeHeaders(Envelope bounds,
ShapeType type,
int numberOfGeometries,
int fileLength)
Write the headers for this shapefile including the bounds, shape type, the number of
geometries and the total fileLength (in actual bytes, NOT 16 bit words).
|
Constructor and Description |
---|
MultiLineHandler(ShapeType type,
GeometryFactory gf)
Create a MultiLineHandler for one of:
ShapeType.ARC,ShapeType.ARCM,ShapeType.ARCZ |
MultiPointHandler(ShapeType type,
GeometryFactory gf) |
PointHandler(ShapeType type,
GeometryFactory gf) |
PolygonHandler(ShapeType type,
GeometryFactory gf) |
Copyright © 1996–2022 Geotools. All rights reserved.