SpatiaLite  5.0.0
Functions
gg_mbr.h File Reference

Geometry handling functions: MBR. More...

This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Geometry handling functions: MBR.

Function Documentation

◆ gaiaBuildCircleMbr()

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].

Parameters
xcentre X coordinate.
ycentre Y coordinate.
radiusthe radius of the circle
sridthe SRID associated to the Envelope
resulton completion will contain a pointer to newly created BLOB-Geometry
sizeon completion this variabile will contain the BLOB's size (in bytes)
See also
gaiaBuildMbr
Note
the circle of givern radius and centre will be used so to determine the corresponding square Envelope

◆ gaiaBuildFilterMbr()

GAIAGEO_DECLARE void gaiaBuildFilterMbr ( double  x1,
double  y1,
double  x2,
double  y2,
int  mode,
unsigned char **  result,
int *  size 
)

Creates a BLOB-FilterMBR.

Parameters
x1first X coordinate.
y1first Y coordinate.
x2second X coordinate.
y2second Y coordinate.
modeone of: GAIA_FILTER_MBR_WITHIN, GAIA_FILTER_MBR_CONTAINS, GAIA_FILTER_MBR_INTERSECTS, GAIA_FILTER_MBR_DECLARE
resulton completion will contain a pointer to newly created BLOB-FilterMBR
sizeon completion this variabile will contain the BLOB's size (in bytes)
See also
gaiaParseFilterMbr
Note
[XY] coords must define two extreme Points identifying a diagonal of the MBR [Envelope]
no special order is required for coords: MAX / MIN values will be internally arranged as appropriate.
Remarks
internally used to implement Geometry Callback R*Tree filtering.

◆ gaiaBuildMbr()

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].

Parameters
x1first X coordinate.
y1first Y coordinate.
x2second X coordinate.
y2second Y coordinate.
sridthe SRID associated to the Envelope
resulton completion will contain a pointer to newly created BLOB-Geometry
sizeon completion this variabile will contain the BLOB's size (in bytes)
See also
gaiaBuildCircleMbr
Note
[XY] coords must define two extreme Points identifying a diagonal of the MBR [Envelope]
no special order is required for coords: MAX / MIN values will be internally arranged as appropriate.

◆ gaiaFromSpatiaLiteBlobMbr()

GAIAGEO_DECLARE gaiaGeomCollPtr gaiaFromSpatiaLiteBlobMbr ( const unsigned char *  blob,
unsigned int  size 
)

Creates a Geometry object corresponding to the Envelope [MBR] for a BLOB-Geometry.

Parameters
blobpointer to BLOB-Geometry
sizethe BLOB's size (in bytes)
Returns
the pointer to the newly created Geometry object: NULL on failure
See also
gaiaFreeGeomColl
Note
you are responsible to destroy (before or after) any allocated Geometry, unless you've passed ownership of the Geometry object to some further object: in this case destroying the higher order object will implicitly destroy any contained child object.

◆ gaiaGetMbrMaxX()

GAIAGEO_DECLARE int gaiaGetMbrMaxX ( const unsigned char *  blob,
unsigned int  size,
double *  maxx 
)

Retrieves the MBR (MaxX) from a BLOB-Geometry object.

Parameters
blobpointer to BLOB-Geometry.
sizethe BLOB's size (in bytes).
maxxon completion this variable will contain the MBR MaxX coordinate.
Returns
0 on failure: any other value on success.
See also
gaiaGetMbrMinX, gaiaGetMbrMinY, gaiaGetMbrMaxY

◆ gaiaGetMbrMaxY()

GAIAGEO_DECLARE int gaiaGetMbrMaxY ( const unsigned char *  blob,
unsigned int  size,
double *  maxy 
)

Retrieves the MBR (MaxY) from a BLOB-Geometry object.

Parameters
blobpointer to BLOB-Geometry.
sizethe BLOB's size (in bytes).
maxyon completion this variable will contain the MBR MaxY coordinate.
Returns
0 on failure: any other value on success.
See also
gaiaGetMbrMinX, gaiaGetMbrMaxX, gaiaGetMbrMinY

◆ gaiaGetMbrMinX()

GAIAGEO_DECLARE int gaiaGetMbrMinX ( const unsigned char *  blob,
unsigned int  size,
double *  minx 
)

Retrieves the MBR (MinX) from a BLOB-Geometry object.

Parameters
blobpointer to BLOB-Geometry.
sizethe BLOB's size (in bytes).
minxon completion this variable will contain the MBR MinX coordinate.
Returns
0 on failure: any other value on success.
See also
gaiaGetMbrMaxX, gaiaGetMbrMinY, gaiaGetMbrMaxY

◆ gaiaGetMbrMinY()

GAIAGEO_DECLARE int gaiaGetMbrMinY ( const unsigned char *  blob,
unsigned int  size,
double *  miny 
)

Retrieves the MBR (MinY) from a BLOB-Geometry object.

Parameters
blobpointer to BLOB-Geometry.
sizethe BLOB's size (in bytes).
minyon completion this variable will contain the MBR MinY coordinate.
Returns
0 on failure: any other value on success.
See also
gaiaGetMbrMinX, gaiaGetMbrMaxX, gaiaGetMbrMaxY

◆ gaiaMbrGeometry()

GAIAGEO_DECLARE void gaiaMbrGeometry ( gaiaGeomCollPtr  geom)

Updates the actual MBR for a Geometry object.

Parameters
geompointer to the Geometry object

◆ gaiaMbrLinestring()

GAIAGEO_DECLARE void gaiaMbrLinestring ( gaiaLinestringPtr  line)

Updates the actual MBR for a Linestring object.

Parameters
linepointer to the Linestring object

◆ gaiaMbrPolygon()

GAIAGEO_DECLARE void gaiaMbrPolygon ( gaiaPolygonPtr  polyg)

Updates the actual MBR for a Polygon object.

Parameters
polygpointer to the Polygon object

◆ gaiaMbrRing()

GAIAGEO_DECLARE void gaiaMbrRing ( gaiaRingPtr  rng)

Updates the actual MBR for a Ring object.

Parameters
rngpointer to the Ring object

◆ gaiaMbrsContains()

GAIAGEO_DECLARE int gaiaMbrsContains ( gaiaGeomCollPtr  mbr1,
gaiaGeomCollPtr  mbr2 
)

MBRs comparison: Contains.

Parameters
mbr1pointer to first Geometry object.
mbr2pointer to second Geometry object.
Returns
0 if false; any other value if mbr1 spatially contains mbr2
See also
gaiaMbrsDisjoint, gaiaMbrsEqual, gaiaMbrsIntersects, gaiaMbrsOverlaps, gaiaMbrsTouches, gaiaMbrsWithin

◆ gaiaMbrsDisjoint()

GAIAGEO_DECLARE int gaiaMbrsDisjoint ( gaiaGeomCollPtr  mbr1,
gaiaGeomCollPtr  mbr2 
)

MBRs comparison: Disjoint.

Parameters
mbr1pointer to first Geometry object.
mbr2pointer to second Geometry object.
Returns
0 if false; any other value if mbr1 and mbr2 are spatially disjoint
See also
gaiaMbrsContains, gaiaMbrsEqual, gaiaMbrsIntersects, gaiaMbrsOverlaps, gaiaMbrsTouches, gaiaMbrsWithin

◆ gaiaMbrsEqual()

GAIAGEO_DECLARE int gaiaMbrsEqual ( gaiaGeomCollPtr  mbr1,
gaiaGeomCollPtr  mbr2 
)

MBRs comparison: Equal.

Parameters
mbr1pointer to first Geometry object.
mbr2pointer to second Geometry object.
Returns
0 if false; any other value if mbr1 and mbr2 are spatially equal
See also
gaiaMbrsContains, gaiaMbrsDisjoint, gaiaMbrsIntersects, gaiaMbrsOverlaps, gaiaMbrsTouches, gaiaMbrsWithin

◆ gaiaMbrsIntersects()

GAIAGEO_DECLARE int gaiaMbrsIntersects ( gaiaGeomCollPtr  mbr1,
gaiaGeomCollPtr  mbr2 
)

MBRs comparison: Intersects.

Parameters
mbr1pointer to first Geometry object.
mbr2pointer to second Geometry object.
Returns
0 if false; any other value if mbr1 and mbr2 spatially intersect
See also
gaiaMbrsContains, gaiaMbrsDisjoint, gaiaMbrsEqual, gaiaMbrsOverlaps, gaiaMbrsTouches, gaiaMbrsWithin

◆ gaiaMbrsOverlaps()

GAIAGEO_DECLARE int gaiaMbrsOverlaps ( gaiaGeomCollPtr  mbr1,
gaiaGeomCollPtr  mbr2 
)

MBRs comparison: Overlaps.

Parameters
mbr1pointer to first Geometry object.
mbr2pointer to second Geometry object.
Returns
0 if false; any other value if mbr1 and mbr2 spatially overlap
See also
gaiaMbrsContains, gaiaMbrsDisjoint, gaiaMbrsEqual, gaiaMbrsIntersects, gaiaMbrsTouches, gaiaMbrsWithin

◆ gaiaMbrsTouches()

GAIAGEO_DECLARE int gaiaMbrsTouches ( gaiaGeomCollPtr  mbr1,
gaiaGeomCollPtr  mbr2 
)

MBRs comparison: Touches.

Parameters
mbr1pointer to first Geometry object.
mbr2pointer to second Geometry object.
Returns
0 if false; any other value if mbr1 and mbr2 spatially touche
See also
gaiaMbrsContains, gaiaMbrsDisjoint, gaiaMbrsEqual, gaiaMbrsIntersects, gaiaMbrsOverlaps, gaiaMbrsWithin

◆ gaiaMbrsWithin()

GAIAGEO_DECLARE int gaiaMbrsWithin ( gaiaGeomCollPtr  mbr1,
gaiaGeomCollPtr  mbr2 
)

MBRs comparison: Within.

Parameters
mbr1pointer to first Geometry object.
mbr2pointer to second Geometry object.
Returns
0 if false; any other value if mbr1 is spatially within mbr2
See also
gaiaMbrsContains, gaiaMbrsDisjoint, gaiaMbrsEqual, gaiaMbrsIntersects, gaiaMbrsOverlaps, gaiaMbrsTouches

◆ gaiaMRangeGeometry()

GAIAGEO_DECLARE void gaiaMRangeGeometry ( gaiaGeomCollPtr  geom,
double *  min,
double *  max 
)

Computes the Z-Range for a Geometry object.

Parameters
geompointer to the Geometry object
minon completion this variable will contain the min M value found
maxon completion this variable will contain the max M value found
See also
gaiaMRangeGeometryEx
Note
if the Geometry has XY or XYZ dims, the M-Range is meaningless

◆ gaiaMRangeGeometryEx()

GAIAGEO_DECLARE void gaiaMRangeGeometryEx ( gaiaGeomCollPtr  geom,
double  nodata,
double *  min,
double *  max 
)

Computes the Z-Range for a Geometry object (NODATA flavor)

Parameters
geompointer to the Geometry object
nodatathe NODATA value
minon completion this variable will contain the min M value found
maxon completion this variable will contain the max M value found
See also
gaiaMRangeGeometryEx
Note
if the Geometry has XY or XYZ dims, the M-Range is meaningless

◆ gaiaMRangeLinestring()

GAIAGEO_DECLARE void gaiaMRangeLinestring ( gaiaLinestringPtr  line,
double *  min,
double *  max 
)

Computes the M-Range for a Linestring object.

Parameters
linepointer to the Linestring object
minon completion this variable will contain the min M value found
maxon completion this variable will contain the max M value found
See also
gaiaMRangeLinestringEx
Note
if the Linestring has XY or XYZ dims, the M-Range is meaningless

◆ gaiaMRangeLinestringEx()

GAIAGEO_DECLARE void gaiaMRangeLinestringEx ( gaiaLinestringPtr  line,
double  nodata,
double *  min,
double *  max 
)

Computes the M-Range for a Linestring object (NODATA flavor)

Parameters
linepointer to the Linestring object
nodatathe NODATA value
minon completion this variable will contain the min M value found
maxon completion this variable will contain the max M value found
See also
gaiaMRangeLinestring
Note
if the Linestring has XY or XYZ dims, the M-Range is meaningless

◆ gaiaMRangePolygon()

GAIAGEO_DECLARE void gaiaMRangePolygon ( gaiaPolygonPtr  polyg,
double *  min,
double *  max 
)

Computes the M-Range for a Polygon object.

Parameters
polygpointer to the Polygon object
minon completion this variable will contain the min M value found
maxon completion this variable will contain the max M value found
See also
gaiaMRangePolygonEx
Note
if the Polygon has XY or XYZ dims, the M-Range is meaningless

◆ gaiaMRangePolygonEx()

GAIAGEO_DECLARE void gaiaMRangePolygonEx ( gaiaPolygonPtr  polyg,
double  nodata,
double *  min,
double *  max 
)

Computes the M-Range for a Polygon object (NODATA flavor)

Parameters
polygpointer to the Polygon object
nodatathe NODATA value
minon completion this variable will contain the min M value found
maxon completion this variable will contain the max M value found
See also
gaiaMRangePolygon
Note
if the Polygon has XY or XYZ dims, the M-Range is meaningless

◆ gaiaMRangeRing()

GAIAGEO_DECLARE void gaiaMRangeRing ( gaiaRingPtr  rng,
double *  min,
double *  max 
)

Computes the M-Range for a Ring object.

Parameters
rngpointer to the Ring object
minon completion this variable will contain the min M value found
maxon completion this variable will contain the max M value found
See also
gaiaMRangeRingEx
Note
if the Ring has XY or XYZ dims, the M-Range is meaningless

◆ gaiaMRangeRingEx()

GAIAGEO_DECLARE void gaiaMRangeRingEx ( gaiaRingPtr  rng,
double  nodata,
double *  min,
double *  max 
)

Computes the M-Range for a Ring object (NODATA flavor)

Parameters
rngpointer to the Ring object
nodatathe NODATA value
minon completion this variable will contain the min M value found
maxon completion this variable will contain the max M value found
See also
gaiaMRangeRing
Note
if the Ring has XY or XYZ dims, the M-Range is meaningless

◆ gaiaParseFilterMbr()

GAIAGEO_DECLARE int gaiaParseFilterMbr ( unsigned char *  result,
int  size,
double *  minx,
double *  miny,
double *  maxx,
double *  maxy,
int *  mode 
)

Creates a BLOB-FilterMBR.

Parameters
resultpointer to BLOB-FilterMBR [previously created by gaiaBuildFilterMbr] BLOB-Geometry
sizeBLOB's size (in bytes)
minxon completion this variable will contain the MBR MinX coord.
minyon completion this variable will contain the MBR MinY coord.
maxxon completion this variable will contain the MBR MinY coord.
maxyon completion this variable will contain the MBR MaxY coord.
modeon completion this variable will contain the FilterMBR mode.
See also
gaiaBuildFilterMbr
Remarks
internally used to implement Geometry Callback R*Tree filtering.

◆ gaiaZRangeGeometry()

GAIAGEO_DECLARE void gaiaZRangeGeometry ( gaiaGeomCollPtr  geom,
double *  min,
double *  max 
)

Computes the Z-Range for a Geometry object.

Parameters
geompointer to the Geometry object
minon completion this variable will contain the min Z value found
maxon completion this variable will contain the max Z value found
See also
gaiaZRangeGeometryEx
Note
if the Geometry has XY or XYM dims, the Z-Range is meaningless

◆ gaiaZRangeGeometryEx()

GAIAGEO_DECLARE void gaiaZRangeGeometryEx ( gaiaGeomCollPtr  geom,
double  nodata,
double *  min,
double *  max 
)

Computes the Z-Range for a Geometry object (NODATA flavor)

Parameters
geompointer to the Geometry object
nodatathe NODATA value
minon completion this variable will contain the min Z value found
maxon completion this variable will contain the max Z value found
See also
gaiaZRangeGeometry
Note
if the Geometry has XY or XYM dims, the Z-Range is meaningless

◆ gaiaZRangeLinestring()

GAIAGEO_DECLARE void gaiaZRangeLinestring ( gaiaLinestringPtr  line,
double *  min,
double *  max 
)

Computes the Z-Range for a Linestring object.

Parameters
linepointer to the Linestring object
minon completion this variable will contain the min Z value found
maxon completion this variable will contain the max Z value found
See also
gaiaZRangeLinestringEx
Note
if the Linestring has XY or XYM dims, the Z-Range is meaningless

◆ gaiaZRangeLinestringEx()

GAIAGEO_DECLARE void gaiaZRangeLinestringEx ( gaiaLinestringPtr  line,
double  nodata,
double *  min,
double *  max 
)

Computes the Z-Range for a Linestring object (NODATA flavor)

Parameters
linepointer to the Linestring object
nodatathe NODATA value
minon completion this variable will contain the min Z value found
maxon completion this variable will contain the max Z value found
See also
gaiaZRangeLinestring
Note
if the Linestring has XY or XYM dims, the Z-Range is meaningless

◆ gaiaZRangePolygon()

GAIAGEO_DECLARE void gaiaZRangePolygon ( gaiaPolygonPtr  polyg,
double *  min,
double *  max 
)

Computes the Z-Range for a Polygon object.

Parameters
polygpointer to the Polygon object
minon completion this variable will contain the min Z value found
maxon completion this variable will contain the max Z value found
See also
gaiaZRangePolygonEx
Note
if the Polygon has XY or XYM dims, the Z-Range is meaningless

◆ gaiaZRangePolygonEx()

GAIAGEO_DECLARE void gaiaZRangePolygonEx ( gaiaPolygonPtr  polyg,
double  nodata,
double *  min,
double *  max 
)

Computes the Z-Range for a Polygon object (NODATA flavor)

Parameters
polygpointer to the Polygon object
nodatathe NODATA value
minon completion this variable will contain the min Z value found
maxon completion this variable will contain the max Z value found
See also
gaiaZRangePolygon
Note
if the Polygon has XY or XYM dims, the Z-Range is meaningless

◆ gaiaZRangeRing()

GAIAGEO_DECLARE void gaiaZRangeRing ( gaiaRingPtr  rng,
double *  min,
double *  max 
)

Computes the Z-Range for a Ring object.

Parameters
rngpointer to the Ring object
minon completion this variable will contain the min Z value found
maxon completion this variable will contain the max Z value found
See also
gaiaZRangeRingEx
Note
if the Ring has XY or XYM dims, the Z-Range is meaningless

◆ gaiaZRangeRingEx()

GAIAGEO_DECLARE void gaiaZRangeRingEx ( gaiaRingPtr  rng,
double  nodata,
double *  min,
double *  max 
)

Computes the Z-Range for a Ring object (NODATA flavor)

Parameters
rngpointer to the Ring object
nodatathe NODATA value
minon completion this variable will contain the min Z value found
maxon completion this variable will contain the max Z value found
See also
gaiaZRangeRing
Note
if the Ring has XY or XYM dims, the Z-Range is meaningless