|
shapereader
Read ESRI shapefiles
|
PolygonZ. More...
#include <shp-polygonz.h>
Public Member Functions | |
| size_t | shp_polygonz_points (const shp_polygonz_t *polygonz, size_t part_num, size_t *start, size_t *end) |
| Get the points that form a part. | |
| void | shp_polygonz_pointz (const shp_polygonz_t *polygonz, size_t point_num, shp_pointz_t *pointz) |
| Get a PointZ. | |
A PolygonZ consists of one or more parts. A part is a connected sequence of four or more points that form a closed, non-self-intersecting loop. Each point is associated with a measure, for example a temperature.
| size_t shp_polygonz_points | ( | const shp_polygonz_t * | polygonz, |
| size_t | part_num, | ||
| size_t * | start, | ||
| size_t * | end | ||
| ) |
Gets the indices for the points specified by part_num.
| polygonz | a PolygonZ. | |
| part_num | a zero-based part number. | |
| [out] | start | the range start. |
| [out] | end | the range end (exclusive). |
| void shp_polygonz_pointz | ( | const shp_polygonz_t * | polygonz, |
| size_t | point_num, | ||
| shp_pointz_t * | pointz | ||
| ) |
Gets a PointZ that belongs to the edges of a PolygonZ.
Example
| polygonz | a PolygonZ. | |
| point_num | a zero-based point number. | |
| [out] | pointz | a shp_pointz_t structure. |