|
shapereader
Read ESRI shapefiles
|
PolygonM. More...
#include <shp-polygonm.h>
Public Member Functions | |
| size_t | shp_polygonm_points (const shp_polygonm_t *polygonm, size_t part_num, size_t *start, size_t *end) |
| Get the points that form a part. | |
| void | shp_polygonm_pointm (const shp_polygonm_t *polygonm, size_t point_num, shp_pointm_t *pointm) |
| Get a PointM. | |
A PolygonM 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_polygonm_points | ( | const shp_polygonm_t * | polygonm, |
| size_t | part_num, | ||
| size_t * | start, | ||
| size_t * | end | ||
| ) |
Gets the indices for the points specified by part_num.
| polygonm | a PolygonM. | |
| part_num | a zero-based part number. | |
| [out] | start | the range start. |
| [out] | end | the range end (exclusive). |
| void shp_polygonm_pointm | ( | const shp_polygonm_t * | polygonm, |
| size_t | point_num, | ||
| shp_pointm_t * | pointm | ||
| ) |
Gets a PointM that belongs to the edges of a PolygonM.
Example
| polygonm | a PolygonM. | |
| point_num | a zero-based point number. | |
| [out] | pointm | a shp_pointm_t structure. |