SpatiaLite
4.3.0
|
Geometry handling functions: advanced. More...
Go to the source code of this file.
Macros | |
#define | GAIA2GEOS_ALL 0 |
Gaia-to-GEOS: all geometries. | |
#define | GAIA2GEOS_ONLY_POINTS 1 |
Gaia-to-GEOS: only geometries of the Point type. | |
#define | GAIA2GEOS_ONLY_LINESTRINGS 2 |
Gaia-to-GEOS: only geometries of the Linestring type. | |
#define | GAIA2GEOS_ONLY_POLYGONS 3 |
Gaia-to-GEOS: only geometries of the Polygon type. | |
Functions | |
GAIAGEO_DECLARE void | gaiaResetGeosMsg (void) |
Resets the GEOS error and warning messages to an empty state. More... | |
GAIAGEO_DECLARE void | gaiaResetGeosMsg_r (const void *p_cache) |
Resets the GEOS error and warning messages to an empty state. More... | |
GAIAGEO_DECLARE const char * | gaiaGetGeosErrorMsg (void) |
Return the latest GEOS error message (if any) More... | |
GAIAGEO_DECLARE const char * | gaiaGetGeosErrorMsg_r (const void *p_cache) |
Return the latest GEOS error message (if any) More... | |
GAIAGEO_DECLARE const char * | gaiaGetGeosWarningMsg (void) |
Return the latest GEOS warning message (if any) More... | |
GAIAGEO_DECLARE const char * | gaiaGetGeosWarningMsg_r (const void *p_cache) |
Return the latest GEOS warning message (if any) More... | |
GAIAGEO_DECLARE const char * | gaiaGetGeosAuxErrorMsg (void) |
Return the latest GEOS (auxiliary) error message (if any) More... | |
GAIAGEO_DECLARE const char * | gaiaGetGeosAuxErrorMsg_r (const void *p_cache) |
Return the latest GEOS (auxiliary) error message (if any) More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaCriticalPointFromGEOSmsg (void) |
Attempts to (possibile) return a Point Geometry extracted from the latest GEOS error / warning message. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaCriticalPointFromGEOSmsg_r (const void *p_cache) |
Attempts to (possibile) return a Point Geometry extracted from the latest GEOS error / warning message. More... | |
GAIAGEO_DECLARE void | gaiaSetGeosErrorMsg (const char *msg) |
Set the current GEOS error message. More... | |
GAIAGEO_DECLARE void | gaiaSetGeosErrorMsg_r (const void *p_cache, const char *msg) |
Set the current GEOS error message. More... | |
GAIAGEO_DECLARE void | gaiaSetGeosWarningMsg (const char *msg) |
Set the current GEOS warning message. More... | |
GAIAGEO_DECLARE void | gaiaSetGeosWarningMsg_r (const void *p_cache, const char *msg) |
Set the current GEOS warning message. More... | |
GAIAGEO_DECLARE void | gaiaSetGeosAuxErrorMsg (const char *msg) |
Set the current GEOS (auxiliary) error message. More... | |
GAIAGEO_DECLARE void | gaiaSetGeosAuxErrorMsg_r (const void *p_cache, const char *msg) |
Set the current GEOS (auxiliary) error message. More... | |
GAIAGEO_DECLARE void * | gaiaToGeos (const gaiaGeomCollPtr gaia) |
Converts a Geometry object into a GEOS Geometry. More... | |
GAIAGEO_DECLARE void * | gaiaToGeos_r (const void *p_cache, const gaiaGeomCollPtr gaia) |
Converts a Geometry object into a GEOS Geometry. More... | |
GAIAGEO_DECLARE void * | gaiaToGeosSelective (const gaiaGeomCollPtr gaia, int mode) |
Converts a Geometry object into a GEOS Geometry. More... | |
GAIAGEO_DECLARE void * | gaiaToGeosSelective_r (const void *p_cache, const gaiaGeomCollPtr gaia, int mode) |
Converts a Geometry object into a GEOS Geometry. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaFromGeos_XY (const void *geos) |
Converts a GEOS Geometry into a Geometry object [XY dims]. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaFromGeos_XY_r (const void *p_cache, const void *geos) |
Converts a GEOS Geometry into a Geometry object [XY dims]. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaFromGeos_XYZ (const void *geos) |
Converts a GEOS Geometry into a Geometry object [XYZ dims]. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaFromGeos_XYZ_r (const void *p_cache, const void *geos) |
Converts a GEOS Geometry into a Geometry object [XYZ dims]. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaFromGeos_XYM (const void *geos) |
Converts a GEOS Geometry into a Geometry object [XYM dims]. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaFromGeos_XYM_r (const void *p_cache, const void *geos) |
Converts a GEOS Geometry into a Geometry object [XYM dims]. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaFromGeos_XYZM (const void *geos) |
Converts a GEOS Geometry into a Geometry object [XYZM dims]. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaFromGeos_XYZM_r (const void *p_cache, const void *geos) |
Converts a GEOS Geometry into a Geometry object [XYZM dims]. More... | |
GAIAGEO_DECLARE int | gaiaIsSimple (gaiaGeomCollPtr geom) |
Checks if a Geometry object represents an OGC Simple Geometry. More... | |
GAIAGEO_DECLARE int | gaiaIsSimple_r (const void *p_cache, gaiaGeomCollPtr geom) |
Checks if a Geometry object represents an OGC Simple Geometry. More... | |
GAIAGEO_DECLARE int | gaiaIsClosed (gaiaLinestringPtr line) |
Checks if a Linestring object represents an OGC Closed Geometry. More... | |
GAIAGEO_DECLARE int | gaiaIsClosedGeom (gaiaGeomCollPtr geom) |
Checks if a Geometry object represents an OGC Closed Linestring. More... | |
GAIAGEO_DECLARE int | gaiaIsClosedGeom_r (const void *p_cache, gaiaGeomCollPtr geom) |
Checks if a Geometry object represents an OGC Closed Linestring. More... | |
GAIAGEO_DECLARE int | gaiaIsRing (gaiaLinestringPtr line) |
Checks if a Linestring object represents an OGC Ring Geometry. More... | |
GAIAGEO_DECLARE int | gaiaIsRing_r (const void *p_cache, gaiaLinestringPtr line) |
Checks if a Linestring object represents an OGC Ring Geometry. More... | |
GAIAGEO_DECLARE int | gaiaIsValid (gaiaGeomCollPtr geom) |
Checks if a Geometry object represents an OGC Valid Geometry. More... | |
GAIAGEO_DECLARE char * | gaiaIsValidReason (gaiaGeomCollPtr geom) |
return a TEXT string stating if a Geometry is valid and if not valid, a reason why More... | |
GAIAGEO_DECLARE char * | gaiaIsValidReason_r (const void *p_cache, gaiaGeomCollPtr geom) |
return a TEXT string stating if a Geometry is valid and if not valid, a reason why More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaIsValidDetail (gaiaGeomCollPtr geom) |
return a Geometry detail causing a Geometry to be invalid More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaIsValidDetail_r (const void *p_cache, gaiaGeomCollPtr geom) |
return a Geometry detail causing a Geometry to be invalid More... | |
GAIAGEO_DECLARE int | gaiaIsValid_r (const void *p_cache, gaiaGeomCollPtr geom) |
Checks if a Geometry object represents an OGC Valid Geometry. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollLength (gaiaGeomCollPtr geom, double *length) |
Measures the total Length for a Geometry object. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollLength_r (const void *p_cache, gaiaGeomCollPtr geom, double *length) |
Measures the total Length for a Geometry object. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollLengthOrPerimeter (gaiaGeomCollPtr geom, int perimeter, double *length) |
Measures the total Length or Perimeter for a Geometry object. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollLengthOrPerimeter_r (const void *p_cache, gaiaGeomCollPtr geom, int perimeter, double *length) |
Measures the total Length or Perimeter for a Geometry object. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollArea (gaiaGeomCollPtr geom, double *area) |
Measures the total Area for a Geometry object. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollArea_r (const void *p_cache, gaiaGeomCollPtr geom, double *area) |
Measures the total Area for a Geometry object. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaPolygonize (gaiaGeomCollPtr geom, int force_multi) |
Attempts to rearrange a generic Geometry object into a Polygon or MultiPolygon. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaPolygonize_r (const void *p_cache, gaiaGeomCollPtr geom, int force_multi) |
Attempts to rearrange a generic Geometry object into a Polygon or MultiPolygon. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollEquals (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial relationship evalution: Equals. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollEquals_r (const void *p_cache, gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial relationship evalution: Equals. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollDisjoint (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial relationship evalution: Disjoint. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollDisjoint_r (const void *p_cache, gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial relationship evalution: Disjoint. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollPreparedDisjoint (const void *p_cache, gaiaGeomCollPtr geom1, unsigned char *blob1, int size1, gaiaGeomCollPtr geom2, unsigned char *blob2, int size2) |
Spatial relationship evalution: Disjoint (GEOSPreparedGeometry) More... | |
GAIAGEO_DECLARE int | gaiaGeomCollIntersects (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial relationship evalution: Intesects. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollIntersects_r (const void *p_cache, gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial relationship evalution: Intersects. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollPreparedIntersects (const void *p_cache, gaiaGeomCollPtr geom1, unsigned char *blob1, int size1, gaiaGeomCollPtr geom2, unsigned char *blob2, int size2) |
Spatial relationship evalution: Intersects (GEOSPreparedGeometry) More... | |
GAIAGEO_DECLARE int | gaiaGeomCollOverlaps (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial relationship evalution: Overlaps. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollOverlaps_r (const void *p_cache, gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial relationship evalution: Overlaps. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollPreparedOverlaps (const void *p_cache, gaiaGeomCollPtr geom1, unsigned char *blob1, int size1, gaiaGeomCollPtr geom2, unsigned char *blob2, int size2) |
Spatial relationship evalution: Overlaps (GEOSPreparedGeometry) More... | |
GAIAGEO_DECLARE int | gaiaGeomCollCrosses (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial relationship evalution: Crosses. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollCrosses_r (const void *p_cache, gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial relationship evalution: Crosses. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollPreparedCrosses (const void *p_cache, gaiaGeomCollPtr geom1, unsigned char *blob1, int size1, gaiaGeomCollPtr geom2, unsigned char *blob2, int size2) |
Spatial relationship evalution: Crosses (GEOSPreparedGeometry) More... | |
GAIAGEO_DECLARE int | gaiaGeomCollContains (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial relationship evalution: Contains. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollContains_r (const void *p_cache, gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial relationship evalution: Contains. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollPreparedContains (const void *p_cache, gaiaGeomCollPtr geom1, unsigned char *blob1, int size1, gaiaGeomCollPtr geom2, unsigned char *blob2, int size2) |
Spatial relationship evalution: Contains (GEOSPreparedGeometry) More... | |
GAIAGEO_DECLARE int | gaiaGeomCollWithin (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial relationship evalution: Within. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollWithin_r (const void *p_cache, gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial relationship evalution: Within. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollPreparedWithin (const void *p_cache, gaiaGeomCollPtr geom1, unsigned char *blob1, int size1, gaiaGeomCollPtr geom2, unsigned char *blob2, int size2) |
Spatial relationship evalution: Within (GEOSPreparedGeometry) More... | |
GAIAGEO_DECLARE int | gaiaGeomCollTouches (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial relationship evalution: Touches. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollTouches_r (const void *p_cache, gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial relationship evalution: Touches. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollPreparedTouches (const void *p_cache, gaiaGeomCollPtr geom1, unsigned char *blob1, int size1, gaiaGeomCollPtr geom2, unsigned char *blob2, int size2) |
Spatial relationship evalution: Touches (GEOSPreparedGeometry) More... | |
GAIAGEO_DECLARE int | gaiaGeomCollRelate (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2, const char *pattern) |
Spatial relationship evalution: Relate. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollRelate_r (const void *p_cache, gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2, const char *pattern) |
Spatial relationship evalution: Relate. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollDistance (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2, double *dist) |
Calculates the maximum distance intercurring between two Geometry objects. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollDistance_r (const void *p_cache, gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2, double *dist) |
Calculates the maximum distance intercurring between two Geometry objects. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaGeometryIntersection (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial operator: Intersection. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaGeometryIntersection_r (const void *p_cache, gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial operator: Intersection. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaGeometryUnion (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial operator: Union. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaGeometryUnion_r (const void *p_cache, gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial operator: Union. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaUnionCascaded (gaiaGeomCollPtr geom) |
Spatial operator: Union Cascaded. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaUnionCascaded_r (const void *p_cache, gaiaGeomCollPtr geom) |
Spatial operator: Union Cascaded. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaGeometryDifference (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial operator: Difference. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaGeometryDifference_r (const void *p_cache, gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial operator: Difference. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaGeometrySymDifference (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial operator: SymDifference. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaGeometrySymDifference_r (const void *p_cache, gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial operator: SymDifference. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaBoundary (gaiaGeomCollPtr geom) |
Spatial operator: Boundary. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaBoundary_r (const void *p_cache, gaiaGeomCollPtr geom) |
Spatial operator: Boundary. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollCentroid (gaiaGeomCollPtr geom, double *x, double *y) |
Spatial operator: Centroid. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollCentroid_r (const void *p_cache, gaiaGeomCollPtr geom, double *x, double *y) |
Spatial operator: Centroid. More... | |
GAIAGEO_DECLARE int | gaiaGetPointOnSurface (gaiaGeomCollPtr geom, double *x, double *y) |
Spatial operator: PointOnSurface. More... | |
GAIAGEO_DECLARE int | gaiaGetPointOnSurface_r (const void *p_cache, gaiaGeomCollPtr geom, double *x, double *y) |
Spatial operator: PointOnSurface. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaGeomCollSimplify (gaiaGeomCollPtr geom, double tolerance) |
Spatial operator: Simplify. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaGeomCollSimplify_r (const void *p_cache, gaiaGeomCollPtr geom, double tolerance) |
Spatial operator: Simplify. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaGeomCollSimplifyPreserveTopology (gaiaGeomCollPtr geom, double tolerance) |
Spatial operator: Simplify [preserving topology]. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaGeomCollSimplifyPreserveTopology_r (const void *p_cache, gaiaGeomCollPtr geom, double tolerance) |
Spatial operator: Simplify [preserving topology]. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaConvexHull (gaiaGeomCollPtr geom) |
Spatial operator: ConvexHull. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaConvexHull_r (const void *p_cache, gaiaGeomCollPtr geom) |
Spatial operator: ConvexHull. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaGeomCollBuffer (gaiaGeomCollPtr geom, double radius, int points) |
Spatial operator: Buffer. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaGeomCollBuffer_r (const void *p_cache, gaiaGeomCollPtr geom, double radius, int points) |
Spatial operator: Buffer. More... | |
GAIAGEO_DECLARE int | gaiaHausdorffDistance (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2, double *dist) |
Calculates the Hausdorff distance intercurring between two Geometry objects. More... | |
GAIAGEO_DECLARE int | gaiaHausdorffDistance_r (const void *p_cache, gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2, double *dist) |
Calculates the Hausdorff distance intercurring between two Geometry objects. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaOffsetCurve (gaiaGeomCollPtr geom, double radius, int points, int left_right) |
Spatial operator: Offset Curve. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaOffsetCurve_r (const void *p_cache, gaiaGeomCollPtr geom, double radius, int points, int left_right) |
Spatial operator: Offset Curve. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaSingleSidedBuffer (gaiaGeomCollPtr geom, double radius, int points, int left_right) |
Spatial operator: Single Sided Buffer. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaSingleSidedBuffer_r (const void *p_cache, gaiaGeomCollPtr geom, double radius, int points, int left_right) |
Spatial operator: Single Sided Buffer. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaSharedPaths (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial operator: Shared Paths. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaSharedPaths_r (const void *p_cache, gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial operator: Shared Paths. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaLineInterpolatePoint (gaiaGeomCollPtr ln_geom, double fraction) |
Spatial operator: Line Interpolate Point. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaLineInterpolatePoint_r (const void *p_cache, gaiaGeomCollPtr ln_geom, double fraction) |
Spatial operator: Line Interpolate Point. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaLineInterpolateEquidistantPoints (gaiaGeomCollPtr ln_geom, double distance) |
Spatial operator: Line Interpolate Equidistant Points. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaLineInterpolateEquidistantPoints_r (const void *p_cache, gaiaGeomCollPtr ln_geom, double distance) |
Spatial operator: Line Interpolate Equidistant Points. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaLineSubstring (gaiaGeomCollPtr ln_geom, double start_fraction, double end_fraction) |
Spatial operator: Line Substring. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaLineSubstring_r (const void *p_cache, gaiaGeomCollPtr ln_geom, double start_fraction, double end_fraction) |
Spatial operator: Line Substring. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaShortestLine (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial operator: Shortest Line. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaShortestLine_r (const void *p_cache, gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial operator: Shortest Line. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaSnap (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2, double tolerance) |
Spatial operator: Snap. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaSnap_r (const void *p_cache, gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2, double tolerance) |
Spatial operator: Snap. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaLineMerge (gaiaGeomCollPtr geom) |
Spatial operator: Line Merge. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaLineMerge_r (const void *p_cache, gaiaGeomCollPtr geom) |
Spatial operator: Line Merge. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaLinesCutAtNodes (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Spatial operator: Line Cut At Nodes. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaUnaryUnion (gaiaGeomCollPtr geom) |
Spatial operator: Unary Union. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaUnaryUnion_r (const void *p_cache, gaiaGeomCollPtr geom) |
Spatial operator: Unary Union. More... | |
GAIAGEO_DECLARE double | gaiaLineLocatePoint (gaiaGeomCollPtr ln_geom, gaiaGeomCollPtr pt_geom) |
Determines the location of the closest Point on Linestring to the given Point. More... | |
GAIAGEO_DECLARE double | gaiaLineLocatePoint_r (const void *p_cache, gaiaGeomCollPtr ln_geom, gaiaGeomCollPtr pt_geom) |
Determines the location of the closest Point on Linestring to the given Point. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollCovers (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Topology check: test if a Geometry covers another one. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollCovers_r (const void *p_cache, gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Topology check: test if a Geometry covers another one. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollPreparedCovers (const void *p_cache, gaiaGeomCollPtr geom1, unsigned char *blob1, int size1, gaiaGeomCollPtr geom2, unsigned char *blob2, int size2) |
Topology check: test if a Geometry covers another one (GEOSPreparedGeometry) More... | |
GAIAGEO_DECLARE int | gaiaGeomCollCoveredBy (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Topology check: test if a Geometry is covered by another one. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollCoveredBy_r (const void *p_cache, gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2) |
Topology check: test if a Geometry is covered by another one. More... | |
GAIAGEO_DECLARE int | gaiaGeomCollPreparedCoveredBy (const void *p_cache, gaiaGeomCollPtr geom1, unsigned char *blob1, int size1, gaiaGeomCollPtr geom2, unsigned char *blob2, int size2) |
Topology check: test if a Geometry is covered by another one (GEOSPreparedGeometry) More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaSquareGrid (gaiaGeomCollPtr geom, double origin_x, double origin_y, double size, int only_edges) |
Utility function: SquareGrid. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaSquareGrid_r (const void *p_cache, gaiaGeomCollPtr geom, double origin_x, double origin_y, double size, int only_edges) |
Utility function: SquareGrid. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaTriangularGrid (gaiaGeomCollPtr geom, double origin_x, double origin_y, double size, int only_edges) |
Utility function: TriangularGrid. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaTriangularGrid_r (const void *p_cache, gaiaGeomCollPtr geom, double origin_x, double origin_y, double size, int only_edges) |
Utility function: TriangularGrid. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaHexagonalGrid (gaiaGeomCollPtr geom, double origin_x, double origin_y, double size, int only_edges) |
Utility function: HexagonalGrid. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaHexagonalGrid_r (const void *p_cache, gaiaGeomCollPtr geom, double origin_x, double origin_y, double size, int only_edges) |
Utility function: HexagonalGrid. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaDelaunayTriangulation (gaiaGeomCollPtr geom, double tolerance, int only_edges) |
Delaunay Triangulation. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaDelaunayTriangulation_r (const void *p_cache, gaiaGeomCollPtr geom, double tolerance, int only_edges) |
Delaunay Triangulation. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaVoronojDiagram (gaiaGeomCollPtr geom, double extra_frame_size, double tolerance, int only_edges) |
Voronoj Diagram. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaVoronojDiagram_r (const void *p_cache, gaiaGeomCollPtr geom, double extra_frame_size, double tolerance, int only_edges) |
Voronoj Diagram. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaConcaveHull (gaiaGeomCollPtr geom, double factor, double tolerance, int allow_holes) |
Concave Hull. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaConcaveHull_r (const void *p_cache, gaiaGeomCollPtr geom, double factor, double tolerance, int allow_holes) |
Concave Hull. More... | |
GAIAGEO_DECLARE void | gaiaResetLwGeomMsg (void) |
Resets the LWGEOM error and warning messages to an empty state. More... | |
GAIAGEO_DECLARE const char * | gaiaGetLwGeomErrorMsg (void) |
Return the latest LWGEOM error message (if any) More... | |
GAIAGEO_DECLARE const char * | gaiaGetLwGeomWarningMsg (void) |
Return the latest LWGEOM warning message (if any) More... | |
GAIAGEO_DECLARE void | gaiaSetLwGeomErrorMsg (const char *msg) |
Set the current LWGEOM error message. More... | |
GAIAGEO_DECLARE void | gaiaSetLwGeomWarningMsg (const char *msg) |
Set the current LWGEOM warning message. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaMakeValid (gaiaGeomCollPtr geom) |
Utility function: MakeValid. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaMakeValidDiscarded (gaiaGeomCollPtr geom) |
Utility function: MakeValidDiscarded. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaSegmentize (gaiaGeomCollPtr geom, double dist) |
Utility function: Segmentize. More... | |
GAIAGEO_DECLARE int | gaiaAzimuth (double xa, double ya, double xb, double yb, double *azimuth) |
Utility function: Azimuth. More... | |
GAIAGEO_DECLARE int | gaiaEllipsoidAzimuth (double xa, double ya, double xb, double yb, double a, double b, double *azimuth) |
Utility function: EllipsoidAzimuth. More... | |
GAIAGEO_DECLARE int | gaiaProjectedPoint (double x1, double y1, double a, double b, double distance, double azimuth, double *x2, double *y2) |
Utility function: ProjectedPoint. More... | |
GAIAGEO_DECLARE char * | gaiaGeoHash (gaiaGeomCollPtr geom, int precision) |
Utility function: GeoHash. More... | |
GAIAGEO_DECLARE char * | gaiaAsX3D (gaiaGeomCollPtr geom, const char *srs, int precision, int options, const char *refid) |
Utility function: AsX3D. More... | |
GAIAGEO_DECLARE int | gaia3DDistance (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2, double *dist) |
Calculates the minimum 3D distance intercurring between two Geometry objects. More... | |
GAIAGEO_DECLARE int | gaiaMaxDistance (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2, double *dist) |
Calculates the maximum 2D distance intercurring between two Geometry objects. More... | |
GAIAGEO_DECLARE int | gaia3DMaxDistance (gaiaGeomCollPtr geom1, gaiaGeomCollPtr geom2, double *dist) |
Calculates the maximum 3D distance intercurring between two Geometry objects. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaSplit (gaiaGeomCollPtr input, gaiaGeomCollPtr blade) |
Utility function: Split. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaSplitLeft (gaiaGeomCollPtr input, gaiaGeomCollPtr blade) |
Utility function: SplitLeft. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaSplitRight (gaiaGeomCollPtr input, gaiaGeomCollPtr blade) |
Utility function: SplitRight. More... | |
GAIAGEO_DECLARE int | gaiaGeodesicArea (gaiaGeomCollPtr geom, double a, double b, int use_ellipsoid, double *area) |
Measures the total Area for a Geometry object (geodesic) More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaNodeLines (gaiaGeomCollPtr input) |
Utility function: re-noding lines. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaSnapToGrid (gaiaGeomCollPtr geom, double origin_x, double origin_y, double origin_z, double origin_m, double size_x, double size_y, double size_z, double size_m) |
Utility function: SnapToGrid. More... | |
Geometry handling functions: advanced.
GAIAGEO_DECLARE int gaia3DDistance | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2, | ||
double * | dist | ||
) |
Calculates the minimum 3D distance intercurring between two Geometry objects.
geom1 | the first Geometry object |
geom2 | the second Geometry object |
dist | on completion this variable will contain the calculated distance |
GAIAGEO_DECLARE int gaia3DMaxDistance | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2, | ||
double * | dist | ||
) |
Calculates the maximum 3D distance intercurring between two Geometry objects.
geom1 | the first Geometry object |
geom2 | the second Geometry object |
dist | on completion this variable will contain the calculated distance |
GAIAGEO_DECLARE char* gaiaAsX3D | ( | gaiaGeomCollPtr | geom, |
const char * | srs, | ||
int | precision, | ||
int | options, | ||
const char * | refid | ||
) |
Utility function: AsX3D.
geom | the input geometry. |
srs | the WKT SRS definition. |
precision | the expected precision (coord decimal digits). |
options | |
refid | the X3D namespace |
GAIAGEO_DECLARE int gaiaAzimuth | ( | double | xa, |
double | ya, | ||
double | xb, | ||
double | yb, | ||
double * | azimuth | ||
) |
Utility function: Azimuth.
xa | the X coordinate of PointA. |
ya | the Y coordinate of PointA. |
xb | the X ccordinate of PointB. |
yb | the Y coordinate of PointB. |
azimuth | on completion this variable will contain the angle in radians from the horizontal of the vector defined by pointA and pointB. Angle is computed clockwise from down-to-up: on the clock: 12=0; 3=PI/2; 6=PI; 9=3PI/2. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaBoundary | ( | gaiaGeomCollPtr | geom | ) |
Spatial operator: Boundary.
geom | the Geometry object to be evaluated |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaBoundary_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom | ||
) |
Spatial operator: Boundary.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | the Geometry object to be evaluated |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaConcaveHull | ( | gaiaGeomCollPtr | geom, |
double | factor, | ||
double | tolerance, | ||
int | allow_holes | ||
) |
Concave Hull.
geom | pointer to input Geometry object. |
factor | multiplier used for filtering Delaunay triangles: please read the note. |
tolerance | optional snapping tolerance. |
allow_holes | if FALSE any interior hole will be suppressed. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaConcaveHull_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom, | ||
double | factor, | ||
double | tolerance, | ||
int | allow_holes | ||
) |
Concave Hull.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | pointer to input Geometry object. |
factor | multiplier used for filtering Delaunay triangles: please read the note. |
tolerance | optional snapping tolerance. |
allow_holes | if FALSE any interior hole will be suppressed. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaConvexHull | ( | gaiaGeomCollPtr | geom | ) |
Spatial operator: ConvexHull.
geom | the input Geometry object |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaConvexHull_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom | ||
) |
Spatial operator: ConvexHull.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | the input Geometry object |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaCriticalPointFromGEOSmsg | ( | void | ) |
Attempts to (possibile) return a Point Geometry extracted from the latest GEOS error / warning message.
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaCriticalPointFromGEOSmsg_r | ( | const void * | p_cache | ) |
Attempts to (possibile) return a Point Geometry extracted from the latest GEOS error / warning message.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaDelaunayTriangulation | ( | gaiaGeomCollPtr | geom, |
double | tolerance, | ||
int | only_edges | ||
) |
Delaunay Triangulation.
geom | pointer to input Geometry object. |
tolerance | optional snapping tolerance. |
only_edges | if non-zero will return a MULTILINESTRING, otherwise it will return a MULTIPOLYGON containing triangular POLYGONs. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaDelaunayTriangulation_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom, | ||
double | tolerance, | ||
int | only_edges | ||
) |
Delaunay Triangulation.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | pointer to input Geometry object. |
tolerance | optional snapping tolerance. |
only_edges | if non-zero will return a MULTILINESTRING, otherwise it will return a MULTIPOLYGON containing triangular POLYGONs. |
GAIAGEO_DECLARE int gaiaEllipsoidAzimuth | ( | double | xa, |
double | ya, | ||
double | xb, | ||
double | yb, | ||
double | a, | ||
double | b, | ||
double * | azimuth | ||
) |
Utility function: EllipsoidAzimuth.
xa | the X coordinate of PointA. |
ya | the Y coordinate of PointA. |
xb | the X ccordinate of PointB. |
yb | the Y coordinate of PointB. |
a | major axis of the reference spheroid. |
b | minor axis of the reference spheroid. |
azimuth | on completion this variable will contain the angle in radians from the horizontal of the vector defined by pointA and pointB. Angle is computed clockwise from down-to-up: on the clock: 12=0; 3=PI/2; 6=PI; 9=3PI/2. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaFromGeos_XY | ( | const void * | geos | ) |
Converts a GEOS Geometry into a Geometry object [XY dims].
geos | handle to GEOS Geometry |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaFromGeos_XY_r | ( | const void * | p_cache, |
const void * | geos | ||
) |
Converts a GEOS Geometry into a Geometry object [XY dims].
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geos | handle to GEOS Geometry |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaFromGeos_XYM | ( | const void * | geos | ) |
Converts a GEOS Geometry into a Geometry object [XYM dims].
geos | handle to GEOS Geometry |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaFromGeos_XYM_r | ( | const void * | p_cache, |
const void * | geos | ||
) |
Converts a GEOS Geometry into a Geometry object [XYM dims].
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geos | handle to GEOS Geometry |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaFromGeos_XYZ | ( | const void * | geos | ) |
Converts a GEOS Geometry into a Geometry object [XYZ dims].
geos | handle to GEOS Geometry |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaFromGeos_XYZ_r | ( | const void * | p_cache, |
const void * | geos | ||
) |
Converts a GEOS Geometry into a Geometry object [XYZ dims].
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geos | handle to GEOS Geometry |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaFromGeos_XYZM | ( | const void * | geos | ) |
Converts a GEOS Geometry into a Geometry object [XYZM dims].
geos | handle to GEOS Geometry |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaFromGeos_XYZM_r | ( | const void * | p_cache, |
const void * | geos | ||
) |
Converts a GEOS Geometry into a Geometry object [XYZM dims].
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geos | handle to GEOS Geometry |
GAIAGEO_DECLARE int gaiaGeodesicArea | ( | gaiaGeomCollPtr | geom, |
double | a, | ||
double | b, | ||
int | use_ellipsoid, | ||
double * | area | ||
) |
Measures the total Area for a Geometry object (geodesic)
geom | pointer to Geometry object |
a | major axis of the reference spheroid. |
b | minor axis of the reference spheroid. |
use_ellipsoid | if TRUE will measure the Area on the Ellipsoid, otherwise on the Sphere |
area | on completion this variable will contain the measured area |
GAIAGEO_DECLARE char* gaiaGeoHash | ( | gaiaGeomCollPtr | geom, |
int | precision | ||
) |
Utility function: GeoHash.
geom | the input geometry. |
precision | the expected precision: if <= 0 will be automatically determined. |
GAIAGEO_DECLARE int gaiaGeomCollArea | ( | gaiaGeomCollPtr | geom, |
double * | area | ||
) |
Measures the total Area for a Geometry object.
geom | pointer to Geometry object |
area | on completion this variable will contain the measured area |
GAIAGEO_DECLARE int gaiaGeomCollArea_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom, | ||
double * | area | ||
) |
Measures the total Area for a Geometry object.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | pointer to Geometry object |
area | on completion this variable will contain the measured area |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaGeomCollBuffer | ( | gaiaGeomCollPtr | geom, |
double | radius, | ||
int | points | ||
) |
Spatial operator: Buffer.
geom | the input Geometry object |
radius | the buffer's radius |
points | number of points (aka vertices) to be used in order to approximate a circular arc. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaGeomCollBuffer_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom, | ||
double | radius, | ||
int | points | ||
) |
Spatial operator: Buffer.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | the input Geometry object |
radius | the buffer's radius |
points | number of points (aka vertices) to be used in order to approximate a circular arc. |
GAIAGEO_DECLARE int gaiaGeomCollCentroid | ( | gaiaGeomCollPtr | geom, |
double * | x, | ||
double * | y | ||
) |
Spatial operator: Centroid.
geom | pointer to Geometry object. |
x | on completion this variable will contain the centroid X coordinate |
y | on completion this variable will contain the centroid Y coordinate |
GAIAGEO_DECLARE int gaiaGeomCollCentroid_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom, | ||
double * | x, | ||
double * | y | ||
) |
Spatial operator: Centroid.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | pointer to Geometry object. |
x | on completion this variable will contain the centroid X coordinate |
y | on completion this variable will contain the centroid Y coordinate |
GAIAGEO_DECLARE int gaiaGeomCollContains | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2 | ||
) |
Spatial relationship evalution: Contains.
geom1 | the first Geometry object to be evaluated |
geom2 | the second Geometry object to be evaluated |
GAIAGEO_DECLARE int gaiaGeomCollContains_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
gaiaGeomCollPtr | geom2 | ||
) |
Spatial relationship evalution: Contains.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object to be evaluated |
geom2 | the second Geometry object to be evaluated |
GAIAGEO_DECLARE int gaiaGeomCollCoveredBy | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2 | ||
) |
Topology check: test if a Geometry is covered by another one.
geom1 | pointer to first input Geometry object. |
geom2 | pointer to second input Geometry object. |
GAIAGEO_DECLARE int gaiaGeomCollCoveredBy_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
gaiaGeomCollPtr | geom2 | ||
) |
Topology check: test if a Geometry is covered by another one.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | pointer to first input Geometry object. |
geom2 | pointer to second input Geometry object. |
GAIAGEO_DECLARE int gaiaGeomCollCovers | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2 | ||
) |
Topology check: test if a Geometry covers another one.
geom1 | pointer to first input Geometry object. |
geom2 | pointer to second input Geometry object. |
GAIAGEO_DECLARE int gaiaGeomCollCovers_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
gaiaGeomCollPtr | geom2 | ||
) |
Topology check: test if a Geometry covers another one.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | pointer to first input Geometry object. |
geom2 | pointer to second input Geometry object. |
GAIAGEO_DECLARE int gaiaGeomCollCrosses | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2 | ||
) |
Spatial relationship evalution: Crosses.
geom1 | the first Geometry object to be evaluated |
geom2 | the second Geometry object to be evaluated |
GAIAGEO_DECLARE int gaiaGeomCollCrosses_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
gaiaGeomCollPtr | geom2 | ||
) |
Spatial relationship evalution: Crosses.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object to be evaluated |
geom2 | the second Geometry object to be evaluated |
GAIAGEO_DECLARE int gaiaGeomCollDisjoint | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2 | ||
) |
Spatial relationship evalution: Disjoint.
geom1 | the first Geometry object to be evaluated |
geom2 | the second Geometry object to be evaluated |
GAIAGEO_DECLARE int gaiaGeomCollDisjoint_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
gaiaGeomCollPtr | geom2 | ||
) |
Spatial relationship evalution: Disjoint.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object to be evaluated |
geom2 | the second Geometry object to be evaluated |
GAIAGEO_DECLARE int gaiaGeomCollDistance | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2, | ||
double * | dist | ||
) |
Calculates the maximum distance intercurring between two Geometry objects.
geom1 | the first Geometry object |
geom2 | the second Geometry object |
dist | on completion this variable will contain the calculated distance |
GAIAGEO_DECLARE int gaiaGeomCollDistance_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
gaiaGeomCollPtr | geom2, | ||
double * | dist | ||
) |
Calculates the maximum distance intercurring between two Geometry objects.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object |
geom2 | the second Geometry object |
dist | on completion this variable will contain the calculated distance |
GAIAGEO_DECLARE int gaiaGeomCollEquals | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2 | ||
) |
Spatial relationship evalution: Equals.
geom1 | the first Geometry object to be evaluated |
geom2 | the second Geometry object to be evaluated |
GAIAGEO_DECLARE int gaiaGeomCollEquals_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
gaiaGeomCollPtr | geom2 | ||
) |
Spatial relationship evalution: Equals.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object to be evaluated |
geom2 | the second Geometry object to be evaluated |
GAIAGEO_DECLARE int gaiaGeomCollIntersects | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2 | ||
) |
Spatial relationship evalution: Intesects.
geom1 | the first Geometry object to be evaluated |
geom2 | the second Geometry object to be evaluated |
GAIAGEO_DECLARE int gaiaGeomCollIntersects_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
gaiaGeomCollPtr | geom2 | ||
) |
Spatial relationship evalution: Intersects.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object to be evaluated |
geom2 | the second Geometry object to be evaluated |
GAIAGEO_DECLARE int gaiaGeomCollLength | ( | gaiaGeomCollPtr | geom, |
double * | length | ||
) |
Measures the total Length for a Geometry object.
geom | pointer to Geometry object |
length | on completion this variable will contain the measured length |
GAIAGEO_DECLARE int gaiaGeomCollLength_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom, | ||
double * | length | ||
) |
Measures the total Length for a Geometry object.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | pointer to Geometry object |
length | on completion this variable will contain the measured length |
GAIAGEO_DECLARE int gaiaGeomCollLengthOrPerimeter | ( | gaiaGeomCollPtr | geom, |
int | perimeter, | ||
double * | length | ||
) |
Measures the total Length or Perimeter for a Geometry object.
geom | pointer to Geometry object |
perimeter | if TRUE only Polygons will be considered, ignoring any Linesting the opposite if FALSE (considering only Linestrings and ignoring any Polygon) |
length | on completion this variable will contain the measured length or perimeter |
GAIAGEO_DECLARE int gaiaGeomCollLengthOrPerimeter_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom, | ||
int | perimeter, | ||
double * | length | ||
) |
Measures the total Length or Perimeter for a Geometry object.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | pointer to Geometry object |
perimeter | if TRUE only Polygons will be considered, ignoring any Linesting the opposite if FALSE (considering only Linestrings and ignoring any Polygon) |
length | on completion this variable will contain the measured length or perimeter |
GAIAGEO_DECLARE int gaiaGeomCollOverlaps | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2 | ||
) |
Spatial relationship evalution: Overlaps.
geom1 | the first Geometry object to be evaluated |
geom2 | the second Geometry object to be evaluated |
GAIAGEO_DECLARE int gaiaGeomCollOverlaps_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
gaiaGeomCollPtr | geom2 | ||
) |
Spatial relationship evalution: Overlaps.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object to be evaluated |
geom2 | the second Geometry object to be evaluated |
GAIAGEO_DECLARE int gaiaGeomCollPreparedContains | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
unsigned char * | blob1, | ||
int | size1, | ||
gaiaGeomCollPtr | geom2, | ||
unsigned char * | blob2, | ||
int | size2 | ||
) |
Spatial relationship evalution: Contains (GEOSPreparedGeometry)
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object to be evaluated |
blob1 | the BLOB corresponding to the first Geometry |
size1 | the size (in bytes) of the first BLOB |
geom2 | the second Geometry object to be evaluated |
blob2 | the BLOB corresponding to the second Geometry |
size2 | the size (in bytes) of the second BLOB |
GAIAGEO_DECLARE int gaiaGeomCollPreparedCoveredBy | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
unsigned char * | blob1, | ||
int | size1, | ||
gaiaGeomCollPtr | geom2, | ||
unsigned char * | blob2, | ||
int | size2 | ||
) |
Topology check: test if a Geometry is covered by another one (GEOSPreparedGeometry)
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | pointer to first input Geometry object. |
blob1 | the BLOB corresponding to the first Geometry |
size1 | the size (in bytes) of the first BLOB |
geom2 | pointer to second input Geometry object. |
blob2 | the BLOB corresponding to the second Geometry |
size2 | the size (in bytes) of the second BLOB |
GAIAGEO_DECLARE int gaiaGeomCollPreparedCovers | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
unsigned char * | blob1, | ||
int | size1, | ||
gaiaGeomCollPtr | geom2, | ||
unsigned char * | blob2, | ||
int | size2 | ||
) |
Topology check: test if a Geometry covers another one (GEOSPreparedGeometry)
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | pointer to first input Geometry object. |
blob1 | the BLOB corresponding to the first Geometry |
size1 | the size (in bytes) of the first BLOB |
geom2 | pointer to second input Geometry object. |
blob2 | the BLOB corresponding to the second Geometry |
size2 | the size (in bytes) of the second BLOB |
GAIAGEO_DECLARE int gaiaGeomCollPreparedCrosses | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
unsigned char * | blob1, | ||
int | size1, | ||
gaiaGeomCollPtr | geom2, | ||
unsigned char * | blob2, | ||
int | size2 | ||
) |
Spatial relationship evalution: Crosses (GEOSPreparedGeometry)
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object to be evaluated |
blob1 | the BLOB corresponding to the first Geometry |
size1 | the size (in bytes) of the first BLOB |
geom2 | the second Geometry object to be evaluated |
blob2 | the BLOB corresponding to the second Geometry |
size2 | the size (in bytes) of the second BLOB |
GAIAGEO_DECLARE int gaiaGeomCollPreparedDisjoint | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
unsigned char * | blob1, | ||
int | size1, | ||
gaiaGeomCollPtr | geom2, | ||
unsigned char * | blob2, | ||
int | size2 | ||
) |
Spatial relationship evalution: Disjoint (GEOSPreparedGeometry)
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object to be evaluated |
blob1 | the BLOB corresponding to the first Geometry |
size1 | the size (in bytes) of the first BLOB |
geom2 | the second Geometry object to be evaluated |
blob2 | the BLOB corresponding to the second Geometry |
size2 | the size (in bytes) of the second BLOB |
GAIAGEO_DECLARE int gaiaGeomCollPreparedIntersects | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
unsigned char * | blob1, | ||
int | size1, | ||
gaiaGeomCollPtr | geom2, | ||
unsigned char * | blob2, | ||
int | size2 | ||
) |
Spatial relationship evalution: Intersects (GEOSPreparedGeometry)
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object to be evaluated |
blob1 | the BLOB corresponding to the first Geometry |
size1 | the size (in bytes) of the first BLOB |
geom2 | the second Geometry object to be evaluated |
blob2 | the BLOB corresponding to the second Geometry |
size2 | the size (in bytes) of the second BLOB |
GAIAGEO_DECLARE int gaiaGeomCollPreparedOverlaps | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
unsigned char * | blob1, | ||
int | size1, | ||
gaiaGeomCollPtr | geom2, | ||
unsigned char * | blob2, | ||
int | size2 | ||
) |
Spatial relationship evalution: Overlaps (GEOSPreparedGeometry)
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object to be evaluated |
blob1 | the BLOB corresponding to the first Geometry |
size1 | the size (in bytes) of the first BLOB |
geom2 | the second Geometry object to be evaluated |
blob2 | the BLOB corresponding to the second Geometry |
size2 | the size (in bytes) of the second BLOB |
GAIAGEO_DECLARE int gaiaGeomCollPreparedTouches | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
unsigned char * | blob1, | ||
int | size1, | ||
gaiaGeomCollPtr | geom2, | ||
unsigned char * | blob2, | ||
int | size2 | ||
) |
Spatial relationship evalution: Touches (GEOSPreparedGeometry)
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object to be evaluated |
blob1 | the BLOB corresponding to the first Geometry |
size1 | the size (in bytes) of the first BLOB |
geom2 | the second Geometry object to be evaluated |
blob2 | the BLOB corresponding to the second Geometry |
size2 | the size (in bytes) of the second BLOB |
GAIAGEO_DECLARE int gaiaGeomCollPreparedWithin | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
unsigned char * | blob1, | ||
int | size1, | ||
gaiaGeomCollPtr | geom2, | ||
unsigned char * | blob2, | ||
int | size2 | ||
) |
Spatial relationship evalution: Within (GEOSPreparedGeometry)
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object to be evaluated |
blob1 | the BLOB corresponding to the first Geometry |
size1 | the size (in bytes) of the first BLOB |
geom2 | the second Geometry object to be evaluated |
blob2 | the BLOB corresponding to the second Geometry |
size2 | the size (in bytes) of the second BLOB |
GAIAGEO_DECLARE int gaiaGeomCollRelate | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2, | ||
const char * | pattern | ||
) |
Spatial relationship evalution: Relate.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object to be evaluated |
geom2 | the second Geometry object to be evaluated |
pattern | intersection matrix pattern [DE-9IM] |
GAIAGEO_DECLARE int gaiaGeomCollRelate_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
gaiaGeomCollPtr | geom2, | ||
const char * | pattern | ||
) |
Spatial relationship evalution: Relate.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object to be evaluated |
geom2 | the second Geometry object to be evaluated |
pattern | intersection matrix pattern [DE-9IM] |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaGeomCollSimplify | ( | gaiaGeomCollPtr | geom, |
double | tolerance | ||
) |
Spatial operator: Simplify.
geom | the input Geometry object |
tolerance | approximation threshold |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaGeomCollSimplify_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom, | ||
double | tolerance | ||
) |
Spatial operator: Simplify.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | the input Geometry object |
tolerance | approximation threshold |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaGeomCollSimplifyPreserveTopology | ( | gaiaGeomCollPtr | geom, |
double | tolerance | ||
) |
Spatial operator: Simplify [preserving topology].
geom | the input Geometry object |
tolerance | approximation threshold |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaGeomCollSimplifyPreserveTopology_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom, | ||
double | tolerance | ||
) |
Spatial operator: Simplify [preserving topology].
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | the input Geometry object |
tolerance | approximation threshold |
GAIAGEO_DECLARE int gaiaGeomCollTouches | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2 | ||
) |
Spatial relationship evalution: Touches.
geom1 | the first Geometry object to be evaluated |
geom2 | the second Geometry object to be evaluated |
GAIAGEO_DECLARE int gaiaGeomCollTouches_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
gaiaGeomCollPtr | geom2 | ||
) |
Spatial relationship evalution: Touches.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object to be evaluated |
geom2 | the second Geometry object to be evaluated |
GAIAGEO_DECLARE int gaiaGeomCollWithin | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2 | ||
) |
Spatial relationship evalution: Within.
geom1 | the first Geometry object to be evaluated |
geom2 | the second Geometry object to be evaluated |
GAIAGEO_DECLARE int gaiaGeomCollWithin_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
gaiaGeomCollPtr | geom2 | ||
) |
Spatial relationship evalution: Within.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object to be evaluated |
geom2 | the second Geometry object to be evaluated |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaGeometryDifference | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2 | ||
) |
Spatial operator: Difference.
geom1 | the first Geometry object |
geom2 | the second Geometry object |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaGeometryDifference_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
gaiaGeomCollPtr | geom2 | ||
) |
Spatial operator: Difference.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object |
geom2 | the second Geometry object |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaGeometryIntersection | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2 | ||
) |
Spatial operator: Intersection.
geom1 | the first Geometry object |
geom2 | the second Geometry object |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaGeometryIntersection_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
gaiaGeomCollPtr | geom2 | ||
) |
Spatial operator: Intersection.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object |
geom2 | the second Geometry object |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaGeometrySymDifference | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2 | ||
) |
Spatial operator: SymDifference.
geom1 | the first Geometry object |
geom2 | the second Geometry object |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaGeometrySymDifference_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
gaiaGeomCollPtr | geom2 | ||
) |
Spatial operator: SymDifference.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object |
geom2 | the second Geometry object |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaGeometryUnion | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2 | ||
) |
Spatial operator: Union.
geom1 | the first Geometry object |
geom2 | the second Geometry object |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaGeometryUnion_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
gaiaGeomCollPtr | geom2 | ||
) |
Spatial operator: Union.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | the first Geometry object |
geom2 | the second Geometry object |
GAIAGEO_DECLARE const char* gaiaGetGeosAuxErrorMsg | ( | void | ) |
Return the latest GEOS (auxiliary) error message (if any)
GAIAGEO_DECLARE const char* gaiaGetGeosAuxErrorMsg_r | ( | const void * | p_cache | ) |
Return the latest GEOS (auxiliary) error message (if any)
p_cache | a memory pointer returned by spatialite_alloc_connection() |
GAIAGEO_DECLARE const char* gaiaGetGeosErrorMsg | ( | void | ) |
Return the latest GEOS error message (if any)
GAIAGEO_DECLARE const char* gaiaGetGeosErrorMsg_r | ( | const void * | p_cache | ) |
Return the latest GEOS error message (if any)
p_cache | a memory pointer returned by spatialite_alloc_connection() |
GAIAGEO_DECLARE const char* gaiaGetGeosWarningMsg | ( | void | ) |
Return the latest GEOS warning message (if any)
GAIAGEO_DECLARE const char* gaiaGetGeosWarningMsg_r | ( | const void * | p_cache | ) |
Return the latest GEOS warning message (if any)
p_cache | a memory pointer returned by spatialite_alloc_connection() |
GAIAGEO_DECLARE const char* gaiaGetLwGeomErrorMsg | ( | void | ) |
Return the latest LWGEOM error message (if any)
GAIAGEO_DECLARE const char* gaiaGetLwGeomWarningMsg | ( | void | ) |
Return the latest LWGEOM warning message (if any)
GAIAGEO_DECLARE int gaiaGetPointOnSurface | ( | gaiaGeomCollPtr | geom, |
double * | x, | ||
double * | y | ||
) |
Spatial operator: PointOnSurface.
geom | pointer to Geometry object. |
x | on completion this variable will contain the Point X coordinate |
y | on completion this variable will contain the Point Y coordinate |
GAIAGEO_DECLARE int gaiaGetPointOnSurface_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom, | ||
double * | x, | ||
double * | y | ||
) |
Spatial operator: PointOnSurface.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | pointer to Geometry object. |
x | on completion this variable will contain the Point X coordinate |
y | on completion this variable will contain the Point Y coordinate |
GAIAGEO_DECLARE int gaiaHausdorffDistance | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2, | ||
double * | dist | ||
) |
Calculates the Hausdorff distance intercurring between two Geometry objects.
geom1 | pointer to first Geometry object |
geom2 | pointer to second Geometry object |
dist | on completion this variable will contain the calculated Hausdorff distance |
GAIAGEO_DECLARE int gaiaHausdorffDistance_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
gaiaGeomCollPtr | geom2, | ||
double * | dist | ||
) |
Calculates the Hausdorff distance intercurring between two Geometry objects.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | pointer to first Geometry object |
geom2 | pointer to second Geometry object |
dist | on completion this variable will contain the calculated Hausdorff distance |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaHexagonalGrid | ( | gaiaGeomCollPtr | geom, |
double | origin_x, | ||
double | origin_y, | ||
double | size, | ||
int | only_edges | ||
) |
Utility function: HexagonalGrid.
geom | the Geometry to be covered by the Grid. |
origin_x | the X ccordinate identifying the Grid Origin. |
origin_y | the Y coordinate identifiying the Grid Origin. |
size | the Grid cell-side size. |
only_edges | if non-zero will return a MULTILINESTRING, otherwise it will return a MULTIPOLYGON containing hexagonal POLYGONs. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaHexagonalGrid_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom, | ||
double | origin_x, | ||
double | origin_y, | ||
double | size, | ||
int | only_edges | ||
) |
Utility function: HexagonalGrid.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | the Geometry to be covered by the Grid. |
origin_x | the X ccordinate identifying the Grid Origin. |
origin_y | the Y coordinate identifiying the Grid Origin. |
size | the Grid cell-side size. |
only_edges | if non-zero will return a MULTILINESTRING, otherwise it will return a MULTIPOLYGON containing hexagonal POLYGONs. |
GAIAGEO_DECLARE int gaiaIsClosed | ( | gaiaLinestringPtr | line | ) |
Checks if a Linestring object represents an OGC Closed Geometry.
This function only works on a single linestring - if you pass in a multi-line linestring geometry, it will return 0 (false). See gaiaIsClosedGeom for an alternative.
line | pointer to Linestring object. |
GAIAGEO_DECLARE int gaiaIsClosedGeom | ( | gaiaGeomCollPtr | geom | ) |
Checks if a Geometry object represents an OGC Closed Linestring.
geom | pointer to Geometry object. |
GAIAGEO_DECLARE int gaiaIsClosedGeom_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom | ||
) |
Checks if a Geometry object represents an OGC Closed Linestring.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | pointer to Geometry object. |
GAIAGEO_DECLARE int gaiaIsRing | ( | gaiaLinestringPtr | line | ) |
Checks if a Linestring object represents an OGC Ring Geometry.
line | pointer to Geometry object. |
GAIAGEO_DECLARE int gaiaIsRing_r | ( | const void * | p_cache, |
gaiaLinestringPtr | line | ||
) |
Checks if a Linestring object represents an OGC Ring Geometry.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
line | pointer to Geometry object. |
GAIAGEO_DECLARE int gaiaIsSimple | ( | gaiaGeomCollPtr | geom | ) |
Checks if a Geometry object represents an OGC Simple Geometry.
geom | pointer to Geometry object. |
GAIAGEO_DECLARE int gaiaIsSimple_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom | ||
) |
Checks if a Geometry object represents an OGC Simple Geometry.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | pointer to Geometry object. |
GAIAGEO_DECLARE int gaiaIsValid | ( | gaiaGeomCollPtr | geom | ) |
Checks if a Geometry object represents an OGC Valid Geometry.
geom | pointer to Geometry object. |
GAIAGEO_DECLARE int gaiaIsValid_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom | ||
) |
Checks if a Geometry object represents an OGC Valid Geometry.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | pointer to Geometry object. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaIsValidDetail | ( | gaiaGeomCollPtr | geom | ) |
return a Geometry detail causing a Geometry to be invalid
geom | pointer to the Geometry object to be validated. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaIsValidDetail_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom | ||
) |
return a Geometry detail causing a Geometry to be invalid
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | pointer to the Geometry object to be validated. |
GAIAGEO_DECLARE char* gaiaIsValidReason | ( | gaiaGeomCollPtr | geom | ) |
return a TEXT string stating if a Geometry is valid and if not valid, a reason why
geom | pointer to the Geometry object to be validated. |
GAIAGEO_DECLARE char* gaiaIsValidReason_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom | ||
) |
return a TEXT string stating if a Geometry is valid and if not valid, a reason why
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | pointer to the Geometry object to be validated. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaLineInterpolateEquidistantPoints | ( | gaiaGeomCollPtr | ln_geom, |
double | distance | ||
) |
Spatial operator: Line Interpolate Equidistant Points.
ln_geom | the input Geometry object [expected to be of lineal type] |
distance | regular distance between interpolated points |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaLineInterpolateEquidistantPoints_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | ln_geom, | ||
double | distance | ||
) |
Spatial operator: Line Interpolate Equidistant Points.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
ln_geom | the input Geometry object [expected to be of lineal type] |
distance | regular distance between interpolated points |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaLineInterpolatePoint | ( | gaiaGeomCollPtr | ln_geom, |
double | fraction | ||
) |
Spatial operator: Line Interpolate Point.
ln_geom | the input Geometry object [expected to be of lineal type] |
fraction | total length fraction [in the range 0.0 / 1.0] |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaLineInterpolatePoint_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | ln_geom, | ||
double | fraction | ||
) |
Spatial operator: Line Interpolate Point.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
ln_geom | the input Geometry object [expected to be of lineal type] |
fraction | total length fraction [in the range 0.0 / 1.0] |
GAIAGEO_DECLARE double gaiaLineLocatePoint | ( | gaiaGeomCollPtr | ln_geom, |
gaiaGeomCollPtr | pt_geom | ||
) |
Determines the location of the closest Point on Linestring to the given Point.
ln_geom | pointer to first input Geometry object [expected to be of the lineal type]. |
pt_geom | pointer to second input Geometry object [expected to be a Point]. |
GAIAGEO_DECLARE double gaiaLineLocatePoint_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | ln_geom, | ||
gaiaGeomCollPtr | pt_geom | ||
) |
Determines the location of the closest Point on Linestring to the given Point.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
ln_geom | pointer to first input Geometry object [expected to be of the lineal type]. |
pt_geom | pointer to second input Geometry object [expected to be a Point]. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaLineMerge | ( | gaiaGeomCollPtr | geom | ) |
Spatial operator: Line Merge.
geom | pointer to input Geometry object. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaLineMerge_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom | ||
) |
Spatial operator: Line Merge.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | pointer to input Geometry object. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaLinesCutAtNodes | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2 | ||
) |
Spatial operator: Line Cut At Nodes.
geom1 | pointer to input Geometry object [Linestring or MultiLinestring]. |
geom2 | pointer to input Geometry object [Point or MultiPoint]. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaLineSubstring | ( | gaiaGeomCollPtr | ln_geom, |
double | start_fraction, | ||
double | end_fraction | ||
) |
Spatial operator: Line Substring.
ln_geom | the input Geometry object [expected to be of lineal type] |
start_fraction | substring start, expressed as total length fraction [in the range 0.0 / 1.0] |
end_fraction | substring end, expressed as total length fraction |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaLineSubstring_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | ln_geom, | ||
double | start_fraction, | ||
double | end_fraction | ||
) |
Spatial operator: Line Substring.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
ln_geom | the input Geometry object [expected to be of lineal type] |
start_fraction | substring start, expressed as total length fraction [in the range 0.0 / 1.0] |
end_fraction | substring end, expressed as total length fraction |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaMakeValid | ( | gaiaGeomCollPtr | geom | ) |
Utility function: MakeValid.
geom | the input Geometry object. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaMakeValidDiscarded | ( | gaiaGeomCollPtr | geom | ) |
Utility function: MakeValidDiscarded.
geom | the input Geometry object. |
GAIAGEO_DECLARE int gaiaMaxDistance | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2, | ||
double * | dist | ||
) |
Calculates the maximum 2D distance intercurring between two Geometry objects.
geom1 | the first Geometry object |
geom2 | the second Geometry object |
dist | on completion this variable will contain the calculated distance |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaNodeLines | ( | gaiaGeomCollPtr | input | ) |
Utility function: re-noding lines.
input | the input Geometry object. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaOffsetCurve | ( | gaiaGeomCollPtr | geom, |
double | radius, | ||
int | points, | ||
int | left_right | ||
) |
Spatial operator: Offset Curve.
geom | the input Geometry object |
radius | the buffer's radius |
points | number of points (aka vertices) to be used in order to approximate a circular arc. |
left_right | if set to 1 the left-sided OffsetCurve will be returned; otherwise the right-sided one. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaOffsetCurve_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom, | ||
double | radius, | ||
int | points, | ||
int | left_right | ||
) |
Spatial operator: Offset Curve.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | the input Geometry object |
radius | the buffer's radius |
points | number of points (aka vertices) to be used in order to approximate a circular arc. |
left_right | if set to 1 the left-sided OffsetCurve will be returned; otherwise the right-sided one. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaPolygonize | ( | gaiaGeomCollPtr | geom, |
int | force_multi | ||
) |
Attempts to rearrange a generic Geometry object into a Polygon or MultiPolygon.
geom | the input Geometry object |
force_multi | if not set to 0, then an eventual Polygon will be returned casted to MultiPolygon |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaPolygonize_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom, | ||
int | force_multi | ||
) |
Attempts to rearrange a generic Geometry object into a Polygon or MultiPolygon.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | the input Geometry object |
force_multi | if not set to 0, then an eventual Polygon will be returned casted to MultiPolygon |
GAIAGEO_DECLARE int gaiaProjectedPoint | ( | double | x1, |
double | y1, | ||
double | a, | ||
double | b, | ||
double | distance, | ||
double | azimuth, | ||
double * | x2, | ||
double * | y2 | ||
) |
Utility function: ProjectedPoint.
x1 | the X coordinate of the Start Point. |
y1 | the Y coordinate of the Start Point. |
a | major axis of the reference spheroid. |
b | minor axis of the reference spheroid. |
distance | a distance expressed in Meters |
azimuth | (aka bearing aka heading) expressed in radians; on the clock: 12=0; 3=PI/2; 6=PI; 9=3PI/2. |
x2 | on completion this variable will contain the the X coordinate of the Projected Point. |
y2 | on completion this variable will contain the the Y coordinate of the Projected Point. |
GAIAGEO_DECLARE void gaiaResetGeosMsg | ( | void | ) |
Resets the GEOS error and warning messages to an empty state.
GAIAGEO_DECLARE void gaiaResetGeosMsg_r | ( | const void * | p_cache | ) |
Resets the GEOS error and warning messages to an empty state.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
GAIAGEO_DECLARE void gaiaResetLwGeomMsg | ( | void | ) |
Resets the LWGEOM error and warning messages to an empty state.
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaSegmentize | ( | gaiaGeomCollPtr | geom, |
double | dist | ||
) |
Utility function: Segmentize.
geom | the input Geometry object. |
dist | the meximum segment length. |
GAIAGEO_DECLARE void gaiaSetGeosAuxErrorMsg | ( | const char * | msg | ) |
Set the current GEOS (auxiliary) error message.
msg | the error message to be set. |
GAIAGEO_DECLARE void gaiaSetGeosAuxErrorMsg_r | ( | const void * | p_cache, |
const char * | msg | ||
) |
Set the current GEOS (auxiliary) error message.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
msg | the error message to be set. |
GAIAGEO_DECLARE void gaiaSetGeosErrorMsg | ( | const char * | msg | ) |
Set the current GEOS error message.
msg | the error message to be set. |
GAIAGEO_DECLARE void gaiaSetGeosErrorMsg_r | ( | const void * | p_cache, |
const char * | msg | ||
) |
Set the current GEOS error message.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
msg | the error message to be set. |
GAIAGEO_DECLARE void gaiaSetGeosWarningMsg | ( | const char * | msg | ) |
Set the current GEOS warning message.
msg | the warning message to be set. |
GAIAGEO_DECLARE void gaiaSetGeosWarningMsg_r | ( | const void * | p_cache, |
const char * | msg | ||
) |
Set the current GEOS warning message.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
msg | the warning message to be set. |
GAIAGEO_DECLARE void gaiaSetLwGeomErrorMsg | ( | const char * | msg | ) |
Set the current LWGEOM error message.
msg | the error message to be set. |
GAIAGEO_DECLARE void gaiaSetLwGeomWarningMsg | ( | const char * | msg | ) |
Set the current LWGEOM warning message.
msg | the warning message to be set. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaSharedPaths | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2 | ||
) |
Spatial operator: Shared Paths.
geom1 | pointer to first Geometry object |
geom2 | pointer to second Geometry object |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaSharedPaths_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
gaiaGeomCollPtr | geom2 | ||
) |
Spatial operator: Shared Paths.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | pointer to first Geometry object |
geom2 | pointer to second Geometry object |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaShortestLine | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2 | ||
) |
Spatial operator: Shortest Line.
geom1 | pointer to the first Geometry object. |
geom2 | pointer to the second Geometry object. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaShortestLine_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
gaiaGeomCollPtr | geom2 | ||
) |
Spatial operator: Shortest Line.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | pointer to the first Geometry object. |
geom2 | pointer to the second Geometry object. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaSingleSidedBuffer | ( | gaiaGeomCollPtr | geom, |
double | radius, | ||
int | points, | ||
int | left_right | ||
) |
Spatial operator: Single Sided Buffer.
geom | the input Geometry object |
radius | the buffer's radius |
points | number of points (aka vertices) to be used in order to approximate a circular arc. |
left_right | if set to 1 the left-sided Buffer will be returned; otherwise the right-sided one. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaSingleSidedBuffer_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom, | ||
double | radius, | ||
int | points, | ||
int | left_right | ||
) |
Spatial operator: Single Sided Buffer.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | the input Geometry object |
radius | the buffer's radius |
points | number of points (aka vertices) to be used in order to approximate a circular arc. |
left_right | if set to 1 the left-sided Buffer will be returned; otherwise the right-sided one. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaSnap | ( | gaiaGeomCollPtr | geom1, |
gaiaGeomCollPtr | geom2, | ||
double | tolerance | ||
) |
Spatial operator: Snap.
geom1 | pointer to the first Geometry object. |
geom2 | pointer to the second Geometry object. |
tolerance | approximation factor |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaSnap_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom1, | ||
gaiaGeomCollPtr | geom2, | ||
double | tolerance | ||
) |
Spatial operator: Snap.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom1 | pointer to the first Geometry object. |
geom2 | pointer to the second Geometry object. |
tolerance | approximation factor |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaSnapToGrid | ( | gaiaGeomCollPtr | geom, |
double | origin_x, | ||
double | origin_y, | ||
double | origin_z, | ||
double | origin_m, | ||
double | size_x, | ||
double | size_y, | ||
double | size_z, | ||
double | size_m | ||
) |
Utility function: SnapToGrid.
geom | the input Geometry object. |
origin_x | the X ccordinate identifying the Grid Origin. |
origin_y | the Y coordinate identifiying the Grid Origin. |
origin_z | the Z ccordinate identifying the Grid Origin. |
origin_m | the M coordinate identifiying the Grid Origin. |
size_x | Grid cell size (X axis). |
size_y | Grid cell size (Y axis). |
size_z | Grid cell size (Z axis). |
size_m | Grid cell size (M axis). |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaSplit | ( | gaiaGeomCollPtr | input, |
gaiaGeomCollPtr | blade | ||
) |
Utility function: Split.
input | the input Geometry object. |
blade | the blade Geometry object. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaSplitLeft | ( | gaiaGeomCollPtr | input, |
gaiaGeomCollPtr | blade | ||
) |
Utility function: SplitLeft.
input | the input Geometry object. |
blade | the blade Geometry object. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaSplitRight | ( | gaiaGeomCollPtr | input, |
gaiaGeomCollPtr | blade | ||
) |
Utility function: SplitRight.
input | the input Geometry object. |
blade | the blade Geometry object. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaSquareGrid | ( | gaiaGeomCollPtr | geom, |
double | origin_x, | ||
double | origin_y, | ||
double | size, | ||
int | only_edges | ||
) |
Utility function: SquareGrid.
geom | the Geometry to be covered by the Grid. |
origin_x | the X ccordinate identifying the Grid Origin. |
origin_y | the Y coordinate identifiying the Grid Origin. |
size | the Grid cell-side size. |
only_edges | if non-zero will return a MULTILINESTRING, otherwise it will return a MULTIPOLYGON containing square POLYGONs. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaSquareGrid_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom, | ||
double | origin_x, | ||
double | origin_y, | ||
double | size, | ||
int | only_edges | ||
) |
Utility function: SquareGrid.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | the Geometry to be covered by the Grid. |
origin_x | the X ccordinate identifying the Grid Origin. |
origin_y | the Y coordinate identifiying the Grid Origin. |
size | the Grid cell-side size. |
only_edges | if non-zero will return a MULTILINESTRING, otherwise it will return a MULTIPOLYGON containing square POLYGONs. |
GAIAGEO_DECLARE void* gaiaToGeos | ( | const gaiaGeomCollPtr | gaia | ) |
Converts a Geometry object into a GEOS Geometry.
gaia | pointer to Geometry object |
GAIAGEO_DECLARE void* gaiaToGeos_r | ( | const void * | p_cache, |
const gaiaGeomCollPtr | gaia | ||
) |
Converts a Geometry object into a GEOS Geometry.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
gaia | pointer to Geometry object |
GAIAGEO_DECLARE void* gaiaToGeosSelective | ( | const gaiaGeomCollPtr | gaia, |
int | mode | ||
) |
Converts a Geometry object into a GEOS Geometry.
gaia | pointer to Geometry object |
mode | one of GAIA2GEOS_ALL, GAIA2GEOS_ONLY_POINTS, GAIA2GEOS_ONLY_LINESTRINGS or GAIA2GEOS_ONLY_POLYGONS |
GAIAGEO_DECLARE void* gaiaToGeosSelective_r | ( | const void * | p_cache, |
const gaiaGeomCollPtr | gaia, | ||
int | mode | ||
) |
Converts a Geometry object into a GEOS Geometry.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
gaia | pointer to Geometry object |
mode | one of GAIA2GEOS_ALL, GAIA2GEOS_ONLY_POINTS, GAIA2GEOS_ONLY_LINESTRINGS or GAIA2GEOS_ONLY_POLYGONS |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaTriangularGrid | ( | gaiaGeomCollPtr | geom, |
double | origin_x, | ||
double | origin_y, | ||
double | size, | ||
int | only_edges | ||
) |
Utility function: TriangularGrid.
geom | the Geometry to be covered by the Grid. |
origin_x | the X ccordinate identifying the Grid Origin. |
origin_y | the Y coordinate identifiying the Grid Origin. |
size | the Grid cell-side size. |
only_edges | if non-zero will return a MULTILINESTRING, otherwise it will return a MULTIPOLYGON containing triangular POLYGONs. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaTriangularGrid_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom, | ||
double | origin_x, | ||
double | origin_y, | ||
double | size, | ||
int | only_edges | ||
) |
Utility function: TriangularGrid.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | the Geometry to be covered by the Grid. |
origin_x | the X ccordinate identifying the Grid Origin. |
origin_y | the Y coordinate identifiying the Grid Origin. |
size | the Grid cell-side size. |
only_edges | if non-zero will return a MULTILINESTRING, otherwise it will return a MULTIPOLYGON containing triangular POLYGONs. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaUnaryUnion | ( | gaiaGeomCollPtr | geom | ) |
Spatial operator: Unary Union.
geom | the input Geometry object. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaUnaryUnion_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom | ||
) |
Spatial operator: Unary Union.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | the input Geometry object. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaUnionCascaded | ( | gaiaGeomCollPtr | geom | ) |
Spatial operator: Union Cascaded.
geom | the input Geometry object. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaUnionCascaded_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom | ||
) |
Spatial operator: Union Cascaded.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | the input Geometry object. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaVoronojDiagram | ( | gaiaGeomCollPtr | geom, |
double | extra_frame_size, | ||
double | tolerance, | ||
int | only_edges | ||
) |
Voronoj Diagram.
geom | pointer to input Geometry object. |
extra_frame_size | percent factor expanding the BBOX of input Geometry |
tolerance | optional snapping tolerance. |
only_edges | if non-zero will return a MULTILINESTRING, otherwise it will return a MULTIPOLYGON. |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaVoronojDiagram_r | ( | const void * | p_cache, |
gaiaGeomCollPtr | geom, | ||
double | extra_frame_size, | ||
double | tolerance, | ||
int | only_edges | ||
) |
Voronoj Diagram.
p_cache | a memory pointer returned by spatialite_alloc_connection() |
geom | pointer to input Geometry object. |
extra_frame_size | percent factor expanding the BBOX of input Geometry |
tolerance | optional snapping tolerance. |
only_edges | if non-zero will return a MULTILINESTRING, otherwise it will return a MULTIPOLYGON. |