|
shapereader
Read ESRI shapefiles
|
MultiPatch. More...
#include <shp-multipatch.h>
Public Member Functions | |
| size_t | shp_multipatch_points (const shp_multipatch_t *multipatch, size_t part_num, shp_part_type_t *part_type, size_t *start, size_t *end) |
| Get the points that form a part. | |
| void | shp_multipatch_pointz (const shp_multipatch_t *multipatch, size_t point_num, shp_pointz_t *pointz) |
| Get a PointZ. | |
A MultiPatch consists of a number of surface patches. Each surface patch describes a surface. The surface patches of a MultiPatch are referred to as its parts, and the type of part controls how the order of vertices of an MultiPatch part is interpreted. See the "ESRI Shapefile Technical Description" [2] for more information.
| size_t shp_multipatch_points | ( | const shp_multipatch_t * | multipatch, |
| size_t | part_num, | ||
| shp_part_type_t * | part_type, | ||
| size_t * | start, | ||
| size_t * | end | ||
| ) |
Gets the indices for the points specified by part_num.
| multipatch | a MultiPatch. | |
| part_num | a zero-based part number. | |
| [out] | part_type | the part type. |
| [out] | start | the range start. |
| [out] | end | the range end (exclusive). |
| void shp_multipatch_pointz | ( | const shp_multipatch_t * | multipatch, |
| size_t | point_num, | ||
| shp_pointz_t * | pointz | ||
| ) |
Gets a PointZ that belongs to the edges of a MultiPatch.
Example
| multipatch | a MultiPatch. | |
| point_num | a zero-based point number. | |
| [out] | pointz | a shp_pointz_t structure. |