public class GeometryUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GeometryUtils.Extent |
static class |
GeometryUtils.Ordinate |
Constructor and Description |
---|
GeometryUtils() |
public static ClobType geometryToClob(GeometryType geometry, boolean withSrid) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType geometryFromClob(ClobType wkt) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType geometryFromClob(ClobType wkt, Integer srid, boolean allowEwkt) throws FunctionExecutionException
FunctionExecutionException
public static ClobType geometryToGeoJson(GeometryType geometry) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType geometryFromGeoJson(ClobType json) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType geometryFromGeoJson(ClobType json, int srid) throws FunctionExecutionException
FunctionExecutionException
public static ClobType geometryToGml(CommandContext ctx, GeometryType geometry, boolean withGmlPrefix) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType geometryFromGml(ClobType gml, Integer srid) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType geometryFromGml(Reader reader, Integer srid) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType geometryFromBlob(BlobType wkb) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType geometryFromBlob(BlobType wkb, int srid) throws FunctionExecutionException
FunctionExecutionException
public static Boolean intersects(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
FunctionExecutionException
public static Boolean contains(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
FunctionExecutionException
public static Boolean disjoint(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
FunctionExecutionException
public static Boolean crosses(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
FunctionExecutionException
public static Double distance(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
FunctionExecutionException
public static Boolean touches(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
FunctionExecutionException
public static Boolean overlaps(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType getGeometryType(com.vividsolutions.jts.geom.Geometry jtsGeom)
public static GeometryType getGeometryType(com.vividsolutions.jts.geom.Geometry jtsGeom, int srid)
public static byte[] getBytes(com.vividsolutions.jts.geom.Geometry jtsGeom, boolean bigEndian)
public static com.vividsolutions.jts.geom.Geometry getGeometry(GeometryType geom) throws FunctionExecutionException
FunctionExecutionException
public static com.vividsolutions.jts.geom.Geometry getGeometry(InputStream is1, Integer srid, boolean allowEwkb) throws FunctionExecutionException
FunctionExecutionException
public static Boolean equals(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType geometryFromEwkb(InputStream is, Integer srid) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType simplify(GeometryType geom, double tolerance) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType simplifyPreserveTopology(GeometryType geom, double tolerance) throws FunctionExecutionException
FunctionExecutionException
public static boolean boundingBoxIntersects(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType envelope(GeometryType geom) throws FunctionExecutionException
FunctionExecutionException
public static Boolean within(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
FunctionExecutionException
public static Boolean dwithin(GeometryType geom1, GeometryType geom2, double distance) throws FunctionExecutionException
FunctionExecutionException
public static BlobType geometryToEwkb(GeometryType geometry)
geometry
- public static double area(GeometryType geom) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType boundary(GeometryType geom) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType buffer(GeometryType geom, double distance) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType buffer(GeometryType geom, double distance, int quadrantSegments) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType centroid(GeometryType geom) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType convexHull(GeometryType geom) throws FunctionExecutionException
FunctionExecutionException
public static Integer coordDim(GeometryType geom) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType difference(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType intersection(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
FunctionExecutionException
public static int dimension(GeometryType geom) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType startEndPoint(GeometryType geom, boolean start) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType exteriorRing(GeometryType geom) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType geometryN(GeometryType geom, int index) throws FunctionExecutionException
FunctionExecutionException
public static String geometryType(GeometryType geom) throws FunctionExecutionException
FunctionExecutionException
public static Boolean isClosed(GeometryType geom) throws FunctionExecutionException
FunctionExecutionException
public static Boolean isEmpty(GeometryType geom) throws FunctionExecutionException
FunctionExecutionException
public static Boolean isRing(GeometryType geom) throws FunctionExecutionException
FunctionExecutionException
public static Boolean isSimple(GeometryType geom) throws FunctionExecutionException
FunctionExecutionException
public static Boolean isValid(GeometryType geom) throws FunctionExecutionException
FunctionExecutionException
public static Double length(GeometryType geom) throws FunctionExecutionException
FunctionExecutionException
public static Integer numInteriorRings(GeometryType geom) throws FunctionExecutionException
FunctionExecutionException
public static int numGeometries(GeometryType geom) throws FunctionExecutionException
FunctionExecutionException
public static int numPoints(GeometryType geom) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType interiorRingN(GeometryType geom, int i) throws FunctionExecutionException
FunctionExecutionException
public static Boolean orderingEquals(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType point(double x, double y)
public static GeometryType pointN(GeometryType geom, int i) throws FunctionExecutionException
FunctionExecutionException
public static Double perimeter(GeometryType geom) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType pointOnSurface(GeometryType geom) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType polygon(GeometryType geom, int srid) throws FunctionExecutionException
FunctionExecutionException
public static Boolean relate(GeometryType geom1, GeometryType geom2, String intersectionPattern) throws FunctionExecutionException
FunctionExecutionException
public static String relate(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType symDifference(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType union(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException
FunctionExecutionException
public static Double ordinate(GeometryType geom, GeometryUtils.Ordinate ordinate) throws FunctionExecutionException
FunctionExecutionException
public static GeometryType makeEnvelope(double xmin, double ymin, double xmax, double ymax, Integer srid)
public static GeometryType snapToGrid(GeometryType geom, double size) throws FunctionExecutionException
FunctionExecutionException
Copyright © 2017 JBoss by Red Hat. All rights reserved.