Method Summary |
|
public static Geometry | convertToCollection(Geometry geom, ShapeType type) |
final public static Class | findBestGeometryClass(ShapeType type) |
final public static ShapeType | findBestGeometryType(Geometry geom) Determine the best ShapeType for a given Geometry.
Parameters: geom - The Geometry to analyze. |
final public static ShapeType | getShapeType(Geometry geom, int shapeFileDimentions) Determine the best ShapeType for a geometry with the given dimension.
Parameters: geom - The Geometry to examine. Parameters: shapeFileDimentions - The dimension 2,3 or 4. throws: ShapefileException - If theres a problem, like a bogus Geometry. |
final public static ShapeType | getShapeType(Class featureClass) Determine the default ShapeType for a featureClass. |
final public static int | guessCoorinateDims(Coordinate[] cs) Returns:
2 for 2d (default)
4 for 3d - one of the oordinates has a non-NaN z value
(3 is for x,y,m but thats not supported yet)
Parameters: cs - The array of Coordinates to search. |
final public static MultiPolygon | makeGoodShapeMultiPolygon(MultiPolygon mp) Like makeGoodShapePolygon, but applied towards a multi polygon.
Parameters: mp - The MultiPolygon to "niceify". |
final public static Polygon | makeGoodShapePolygon(Polygon p) Create a nice Polygon from the given Polygon. |
final public static LinearRing | reverseRing(LinearRing lr) Does what it says, reverses the order of the Coordinates in the ring.
Parameters: lr - The ring to reverse. |
final public static double[] | zMinMax(Coordinate[] cs) Determine the min and max "z" values in an array of Coordinates.
Parameters: cs - The array to search. |