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