SpatiaLite
5.0.0
|
Geometry handling functions: MBR. More...
Go to the source code of this file.
Functions | |
GAIAGEO_DECLARE void | gaiaMbrLinestring (gaiaLinestringPtr line) |
Updates the actual MBR for a Linestring object. More... | |
GAIAGEO_DECLARE void | gaiaMbrRing (gaiaRingPtr rng) |
Updates the actual MBR for a Ring object. More... | |
GAIAGEO_DECLARE void | gaiaMbrPolygon (gaiaPolygonPtr polyg) |
Updates the actual MBR for a Polygon object. More... | |
GAIAGEO_DECLARE void | gaiaMbrGeometry (gaiaGeomCollPtr geom) |
Updates the actual MBR for a Geometry object. More... | |
GAIAGEO_DECLARE int | gaiaGetMbrMinX (const unsigned char *blob, unsigned int size, double *minx) |
Retrieves the MBR (MinX) from a BLOB-Geometry object. More... | |
GAIAGEO_DECLARE int | gaiaGetMbrMaxX (const unsigned char *blob, unsigned int size, double *maxx) |
Retrieves the MBR (MaxX) from a BLOB-Geometry object. More... | |
GAIAGEO_DECLARE int | gaiaGetMbrMinY (const unsigned char *blob, unsigned int size, double *miny) |
Retrieves the MBR (MinY) from a BLOB-Geometry object. More... | |
GAIAGEO_DECLARE int | gaiaGetMbrMaxY (const unsigned char *blob, unsigned int size, double *maxy) |
Retrieves the MBR (MaxY) from a BLOB-Geometry object. More... | |
GAIAGEO_DECLARE gaiaGeomCollPtr | gaiaFromSpatiaLiteBlobMbr (const unsigned char *blob, unsigned int size) |
Creates a Geometry object corresponding to the Envelope [MBR] for a BLOB-Geometry. More... | |
GAIAGEO_DECLARE int | gaiaMbrsContains (gaiaGeomCollPtr mbr1, gaiaGeomCollPtr mbr2) |
MBRs comparison: Contains. More... | |
GAIAGEO_DECLARE int | gaiaMbrsDisjoint (gaiaGeomCollPtr mbr1, gaiaGeomCollPtr mbr2) |
MBRs comparison: Disjoint. More... | |
GAIAGEO_DECLARE int | gaiaMbrsEqual (gaiaGeomCollPtr mbr1, gaiaGeomCollPtr mbr2) |
MBRs comparison: Equal. More... | |
GAIAGEO_DECLARE int | gaiaMbrsIntersects (gaiaGeomCollPtr mbr1, gaiaGeomCollPtr mbr2) |
MBRs comparison: Intersects. More... | |
GAIAGEO_DECLARE int | gaiaMbrsOverlaps (gaiaGeomCollPtr mbr1, gaiaGeomCollPtr mbr2) |
MBRs comparison: Overlaps. More... | |
GAIAGEO_DECLARE int | gaiaMbrsTouches (gaiaGeomCollPtr mbr1, gaiaGeomCollPtr mbr2) |
MBRs comparison: Touches. More... | |
GAIAGEO_DECLARE int | gaiaMbrsWithin (gaiaGeomCollPtr mbr1, gaiaGeomCollPtr mbr2) |
MBRs comparison: Within. More... | |
GAIAGEO_DECLARE void | gaiaBuildMbr (double x1, double y1, double x2, double y2, int srid, unsigned char **result, int *size) |
Creates a BLOB-Geometry representing an Envelope [MBR]. More... | |
GAIAGEO_DECLARE void | gaiaBuildCircleMbr (double x, double y, double radius, int srid, unsigned char **result, int *size) |
Creates a BLOB-Geometry representing an Envelope [MBR]. More... | |
GAIAGEO_DECLARE void | gaiaBuildFilterMbr (double x1, double y1, double x2, double y2, int mode, unsigned char **result, int *size) |
Creates a BLOB-FilterMBR. More... | |
GAIAGEO_DECLARE int | gaiaParseFilterMbr (unsigned char *result, int size, double *minx, double *miny, double *maxx, double *maxy, int *mode) |
Creates a BLOB-FilterMBR. More... | |
GAIAGEO_DECLARE void | gaiaZRangeLinestring (gaiaLinestringPtr line, double *min, double *max) |
Computes the Z-Range for a Linestring object. More... | |
GAIAGEO_DECLARE void | gaiaZRangeLinestringEx (gaiaLinestringPtr line, double nodata, double *min, double *max) |
Computes the Z-Range for a Linestring object (NODATA flavor) More... | |
GAIAGEO_DECLARE void | gaiaZRangeRing (gaiaRingPtr rng, double *min, double *max) |
Computes the Z-Range for a Ring object. More... | |
GAIAGEO_DECLARE void | gaiaZRangeRingEx (gaiaRingPtr rng, double nodata, double *min, double *max) |
Computes the Z-Range for a Ring object (NODATA flavor) More... | |
GAIAGEO_DECLARE void | gaiaZRangePolygon (gaiaPolygonPtr polyg, double *min, double *max) |
Computes the Z-Range for a Polygon object. More... | |
GAIAGEO_DECLARE void | gaiaZRangePolygonEx (gaiaPolygonPtr polyg, double nodata, double *min, double *max) |
Computes the Z-Range for a Polygon object (NODATA flavor) More... | |
GAIAGEO_DECLARE void | gaiaZRangeGeometry (gaiaGeomCollPtr geom, double *min, double *max) |
Computes the Z-Range for a Geometry object. More... | |
GAIAGEO_DECLARE void | gaiaZRangeGeometryEx (gaiaGeomCollPtr geom, double nodata, double *min, double *max) |
Computes the Z-Range for a Geometry object (NODATA flavor) More... | |
GAIAGEO_DECLARE void | gaiaMRangeLinestring (gaiaLinestringPtr line, double *min, double *max) |
Computes the M-Range for a Linestring object. More... | |
GAIAGEO_DECLARE void | gaiaMRangeLinestringEx (gaiaLinestringPtr line, double nodata, double *min, double *max) |
Computes the M-Range for a Linestring object (NODATA flavor) More... | |
GAIAGEO_DECLARE void | gaiaMRangeRing (gaiaRingPtr rng, double *min, double *max) |
Computes the M-Range for a Ring object. More... | |
GAIAGEO_DECLARE void | gaiaMRangeRingEx (gaiaRingPtr rng, double nodata, double *min, double *max) |
Computes the M-Range for a Ring object (NODATA flavor) More... | |
GAIAGEO_DECLARE void | gaiaMRangePolygon (gaiaPolygonPtr polyg, double *min, double *max) |
Computes the M-Range for a Polygon object. More... | |
GAIAGEO_DECLARE void | gaiaMRangePolygonEx (gaiaPolygonPtr polyg, double nodata, double *min, double *max) |
Computes the M-Range for a Polygon object (NODATA flavor) More... | |
GAIAGEO_DECLARE void | gaiaMRangeGeometry (gaiaGeomCollPtr geom, double *min, double *max) |
Computes the Z-Range for a Geometry object. More... | |
GAIAGEO_DECLARE void | gaiaMRangeGeometryEx (gaiaGeomCollPtr geom, double nodata, double *min, double *max) |
Computes the Z-Range for a Geometry object (NODATA flavor) More... | |
Geometry handling functions: MBR.
GAIAGEO_DECLARE void gaiaBuildCircleMbr | ( | double | x, |
double | y, | ||
double | radius, | ||
int | srid, | ||
unsigned char ** | result, | ||
int * | size | ||
) |
Creates a BLOB-Geometry representing an Envelope [MBR].
x | centre X coordinate. |
y | centre Y coordinate. |
radius | the radius of the circle |
srid | the SRID associated to the Envelope |
result | on completion will contain a pointer to newly created BLOB-Geometry |
size | on completion this variabile will contain the BLOB's size (in bytes) |
GAIAGEO_DECLARE void gaiaBuildFilterMbr | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2, | ||
int | mode, | ||
unsigned char ** | result, | ||
int * | size | ||
) |
Creates a BLOB-FilterMBR.
x1 | first X coordinate. |
y1 | first Y coordinate. |
x2 | second X coordinate. |
y2 | second Y coordinate. |
mode | one of: GAIA_FILTER_MBR_WITHIN, GAIA_FILTER_MBR_CONTAINS, GAIA_FILTER_MBR_INTERSECTS, GAIA_FILTER_MBR_DECLARE |
result | on completion will contain a pointer to newly created BLOB-FilterMBR |
size | on completion this variabile will contain the BLOB's size (in bytes) |
GAIAGEO_DECLARE void gaiaBuildMbr | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2, | ||
int | srid, | ||
unsigned char ** | result, | ||
int * | size | ||
) |
Creates a BLOB-Geometry representing an Envelope [MBR].
x1 | first X coordinate. |
y1 | first Y coordinate. |
x2 | second X coordinate. |
y2 | second Y coordinate. |
srid | the SRID associated to the Envelope |
result | on completion will contain a pointer to newly created BLOB-Geometry |
size | on completion this variabile will contain the BLOB's size (in bytes) |
GAIAGEO_DECLARE gaiaGeomCollPtr gaiaFromSpatiaLiteBlobMbr | ( | const unsigned char * | blob, |
unsigned int | size | ||
) |
Creates a Geometry object corresponding to the Envelope [MBR] for a BLOB-Geometry.
blob | pointer to BLOB-Geometry |
size | the BLOB's size (in bytes) |
GAIAGEO_DECLARE int gaiaGetMbrMaxX | ( | const unsigned char * | blob, |
unsigned int | size, | ||
double * | maxx | ||
) |
Retrieves the MBR (MaxX) from a BLOB-Geometry object.
blob | pointer to BLOB-Geometry. |
size | the BLOB's size (in bytes). |
maxx | on completion this variable will contain the MBR MaxX coordinate. |
GAIAGEO_DECLARE int gaiaGetMbrMaxY | ( | const unsigned char * | blob, |
unsigned int | size, | ||
double * | maxy | ||
) |
Retrieves the MBR (MaxY) from a BLOB-Geometry object.
blob | pointer to BLOB-Geometry. |
size | the BLOB's size (in bytes). |
maxy | on completion this variable will contain the MBR MaxY coordinate. |
GAIAGEO_DECLARE int gaiaGetMbrMinX | ( | const unsigned char * | blob, |
unsigned int | size, | ||
double * | minx | ||
) |
Retrieves the MBR (MinX) from a BLOB-Geometry object.
blob | pointer to BLOB-Geometry. |
size | the BLOB's size (in bytes). |
minx | on completion this variable will contain the MBR MinX coordinate. |
GAIAGEO_DECLARE int gaiaGetMbrMinY | ( | const unsigned char * | blob, |
unsigned int | size, | ||
double * | miny | ||
) |
Retrieves the MBR (MinY) from a BLOB-Geometry object.
blob | pointer to BLOB-Geometry. |
size | the BLOB's size (in bytes). |
miny | on completion this variable will contain the MBR MinY coordinate. |
GAIAGEO_DECLARE void gaiaMbrGeometry | ( | gaiaGeomCollPtr | geom | ) |
Updates the actual MBR for a Geometry object.
geom | pointer to the Geometry object |
GAIAGEO_DECLARE void gaiaMbrLinestring | ( | gaiaLinestringPtr | line | ) |
Updates the actual MBR for a Linestring object.
line | pointer to the Linestring object |
GAIAGEO_DECLARE void gaiaMbrPolygon | ( | gaiaPolygonPtr | polyg | ) |
Updates the actual MBR for a Polygon object.
polyg | pointer to the Polygon object |
GAIAGEO_DECLARE void gaiaMbrRing | ( | gaiaRingPtr | rng | ) |
Updates the actual MBR for a Ring object.
rng | pointer to the Ring object |
GAIAGEO_DECLARE int gaiaMbrsContains | ( | gaiaGeomCollPtr | mbr1, |
gaiaGeomCollPtr | mbr2 | ||
) |
MBRs comparison: Contains.
mbr1 | pointer to first Geometry object. |
mbr2 | pointer to second Geometry object. |
GAIAGEO_DECLARE int gaiaMbrsDisjoint | ( | gaiaGeomCollPtr | mbr1, |
gaiaGeomCollPtr | mbr2 | ||
) |
MBRs comparison: Disjoint.
mbr1 | pointer to first Geometry object. |
mbr2 | pointer to second Geometry object. |
GAIAGEO_DECLARE int gaiaMbrsEqual | ( | gaiaGeomCollPtr | mbr1, |
gaiaGeomCollPtr | mbr2 | ||
) |
MBRs comparison: Equal.
mbr1 | pointer to first Geometry object. |
mbr2 | pointer to second Geometry object. |
GAIAGEO_DECLARE int gaiaMbrsIntersects | ( | gaiaGeomCollPtr | mbr1, |
gaiaGeomCollPtr | mbr2 | ||
) |
MBRs comparison: Intersects.
mbr1 | pointer to first Geometry object. |
mbr2 | pointer to second Geometry object. |
GAIAGEO_DECLARE int gaiaMbrsOverlaps | ( | gaiaGeomCollPtr | mbr1, |
gaiaGeomCollPtr | mbr2 | ||
) |
MBRs comparison: Overlaps.
mbr1 | pointer to first Geometry object. |
mbr2 | pointer to second Geometry object. |
GAIAGEO_DECLARE int gaiaMbrsTouches | ( | gaiaGeomCollPtr | mbr1, |
gaiaGeomCollPtr | mbr2 | ||
) |
MBRs comparison: Touches.
mbr1 | pointer to first Geometry object. |
mbr2 | pointer to second Geometry object. |
GAIAGEO_DECLARE int gaiaMbrsWithin | ( | gaiaGeomCollPtr | mbr1, |
gaiaGeomCollPtr | mbr2 | ||
) |
MBRs comparison: Within.
mbr1 | pointer to first Geometry object. |
mbr2 | pointer to second Geometry object. |
GAIAGEO_DECLARE void gaiaMRangeGeometry | ( | gaiaGeomCollPtr | geom, |
double * | min, | ||
double * | max | ||
) |
Computes the Z-Range for a Geometry object.
geom | pointer to the Geometry object |
min | on completion this variable will contain the min M value found |
max | on completion this variable will contain the max M value found |
GAIAGEO_DECLARE void gaiaMRangeGeometryEx | ( | gaiaGeomCollPtr | geom, |
double | nodata, | ||
double * | min, | ||
double * | max | ||
) |
Computes the Z-Range for a Geometry object (NODATA flavor)
geom | pointer to the Geometry object |
nodata | the NODATA value |
min | on completion this variable will contain the min M value found |
max | on completion this variable will contain the max M value found |
GAIAGEO_DECLARE void gaiaMRangeLinestring | ( | gaiaLinestringPtr | line, |
double * | min, | ||
double * | max | ||
) |
Computes the M-Range for a Linestring object.
line | pointer to the Linestring object |
min | on completion this variable will contain the min M value found |
max | on completion this variable will contain the max M value found |
GAIAGEO_DECLARE void gaiaMRangeLinestringEx | ( | gaiaLinestringPtr | line, |
double | nodata, | ||
double * | min, | ||
double * | max | ||
) |
Computes the M-Range for a Linestring object (NODATA flavor)
line | pointer to the Linestring object |
nodata | the NODATA value |
min | on completion this variable will contain the min M value found |
max | on completion this variable will contain the max M value found |
GAIAGEO_DECLARE void gaiaMRangePolygon | ( | gaiaPolygonPtr | polyg, |
double * | min, | ||
double * | max | ||
) |
Computes the M-Range for a Polygon object.
polyg | pointer to the Polygon object |
min | on completion this variable will contain the min M value found |
max | on completion this variable will contain the max M value found |
GAIAGEO_DECLARE void gaiaMRangePolygonEx | ( | gaiaPolygonPtr | polyg, |
double | nodata, | ||
double * | min, | ||
double * | max | ||
) |
Computes the M-Range for a Polygon object (NODATA flavor)
polyg | pointer to the Polygon object |
nodata | the NODATA value |
min | on completion this variable will contain the min M value found |
max | on completion this variable will contain the max M value found |
GAIAGEO_DECLARE void gaiaMRangeRing | ( | gaiaRingPtr | rng, |
double * | min, | ||
double * | max | ||
) |
Computes the M-Range for a Ring object.
rng | pointer to the Ring object |
min | on completion this variable will contain the min M value found |
max | on completion this variable will contain the max M value found |
GAIAGEO_DECLARE void gaiaMRangeRingEx | ( | gaiaRingPtr | rng, |
double | nodata, | ||
double * | min, | ||
double * | max | ||
) |
Computes the M-Range for a Ring object (NODATA flavor)
rng | pointer to the Ring object |
nodata | the NODATA value |
min | on completion this variable will contain the min M value found |
max | on completion this variable will contain the max M value found |
GAIAGEO_DECLARE int gaiaParseFilterMbr | ( | unsigned char * | result, |
int | size, | ||
double * | minx, | ||
double * | miny, | ||
double * | maxx, | ||
double * | maxy, | ||
int * | mode | ||
) |
Creates a BLOB-FilterMBR.
result | pointer to BLOB-FilterMBR [previously created by gaiaBuildFilterMbr] BLOB-Geometry |
size | BLOB's size (in bytes) |
minx | on completion this variable will contain the MBR MinX coord. |
miny | on completion this variable will contain the MBR MinY coord. |
maxx | on completion this variable will contain the MBR MinY coord. |
maxy | on completion this variable will contain the MBR MaxY coord. |
mode | on completion this variable will contain the FilterMBR mode. |
GAIAGEO_DECLARE void gaiaZRangeGeometry | ( | gaiaGeomCollPtr | geom, |
double * | min, | ||
double * | max | ||
) |
Computes the Z-Range for a Geometry object.
geom | pointer to the Geometry object |
min | on completion this variable will contain the min Z value found |
max | on completion this variable will contain the max Z value found |
GAIAGEO_DECLARE void gaiaZRangeGeometryEx | ( | gaiaGeomCollPtr | geom, |
double | nodata, | ||
double * | min, | ||
double * | max | ||
) |
Computes the Z-Range for a Geometry object (NODATA flavor)
geom | pointer to the Geometry object |
nodata | the NODATA value |
min | on completion this variable will contain the min Z value found |
max | on completion this variable will contain the max Z value found |
GAIAGEO_DECLARE void gaiaZRangeLinestring | ( | gaiaLinestringPtr | line, |
double * | min, | ||
double * | max | ||
) |
Computes the Z-Range for a Linestring object.
line | pointer to the Linestring object |
min | on completion this variable will contain the min Z value found |
max | on completion this variable will contain the max Z value found |
GAIAGEO_DECLARE void gaiaZRangeLinestringEx | ( | gaiaLinestringPtr | line, |
double | nodata, | ||
double * | min, | ||
double * | max | ||
) |
Computes the Z-Range for a Linestring object (NODATA flavor)
line | pointer to the Linestring object |
nodata | the NODATA value |
min | on completion this variable will contain the min Z value found |
max | on completion this variable will contain the max Z value found |
GAIAGEO_DECLARE void gaiaZRangePolygon | ( | gaiaPolygonPtr | polyg, |
double * | min, | ||
double * | max | ||
) |
Computes the Z-Range for a Polygon object.
polyg | pointer to the Polygon object |
min | on completion this variable will contain the min Z value found |
max | on completion this variable will contain the max Z value found |
GAIAGEO_DECLARE void gaiaZRangePolygonEx | ( | gaiaPolygonPtr | polyg, |
double | nodata, | ||
double * | min, | ||
double * | max | ||
) |
Computes the Z-Range for a Polygon object (NODATA flavor)
polyg | pointer to the Polygon object |
nodata | the NODATA value |
min | on completion this variable will contain the min Z value found |
max | on completion this variable will contain the max Z value found |
GAIAGEO_DECLARE void gaiaZRangeRing | ( | gaiaRingPtr | rng, |
double * | min, | ||
double * | max | ||
) |
Computes the Z-Range for a Ring object.
rng | pointer to the Ring object |
min | on completion this variable will contain the min Z value found |
max | on completion this variable will contain the max Z value found |
GAIAGEO_DECLARE void gaiaZRangeRingEx | ( | gaiaRingPtr | rng, |
double | nodata, | ||
double * | min, | ||
double * | max | ||
) |
Computes the Z-Range for a Ring object (NODATA flavor)
rng | pointer to the Ring object |
nodata | the NODATA value |
min | on completion this variable will contain the min Z value found |
max | on completion this variable will contain the max Z value found |