public class GeometryUtils extends Object
| Constructor and Description |
|---|
GeometryUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearDbfFile(String fileName)
Removes all content from the given shp or shx file, so that the file contains only the header.
|
static void |
clearShpOrShxFile(String fileName,
int shpGeoType)
Removes all content from the given shp or shx file, so that the file contains only the header.
|
static com.vividsolutions.jts.geom.Geometry |
createDummyGeometry(String geometryType)
Creates a dummy geometry of the given type.
|
static com.vividsolutions.jts.geom.Geometry |
force2d(com.vividsolutions.jts.geom.Geometry g)
Convert the given 2d/3d geometry to a 2d geometry.
|
static byte |
getShpGeometryType(String geometryType)
Determines the shape geometry type.
|
static com.vividsolutions.jts.geom.Geometry |
reverseGeometryCoordinates(com.vividsolutions.jts.geom.Geometry g)
The axis order of the coordinates of the given geometry will be changed.
|
public static com.vividsolutions.jts.geom.Geometry createDummyGeometry(String geometryType)
geometryType - DOCUMENT ME!public static com.vividsolutions.jts.geom.Geometry force2d(com.vividsolutions.jts.geom.Geometry g)
g - DOCUMENT ME!public static com.vividsolutions.jts.geom.Geometry reverseGeometryCoordinates(com.vividsolutions.jts.geom.Geometry g)
g - the geometry to change the axis orderpublic static byte getShpGeometryType(String geometryType)
geometryType - DOCUMENT ME!public static void clearShpOrShxFile(String fileName, int shpGeoType) throws IOException
fileName - the file to clearshpGeoType - DOCUMENT ME!IOException - DOCUMENT ME!public static void clearDbfFile(String fileName) throws IOException
fileName - the file to clearIOException - DOCUMENT ME!Copyright © 2012–2026 cismet GmbH. All rights reserved.