|
shapereader
Read ESRI shapefiles
|
PolyLine. More...
#include <shp-polyline.h>
Public Member Functions | |
| size_t | shp_polyline_points (const shp_polyline_t *polyline, size_t part_num, size_t *start, size_t *end) |
| Get the points that form a part. | |
| void | shp_polyline_point (const shp_polyline_t *polyline, size_t point_num, shp_point_t *point) |
| Get a Point. | |
A PolyLine consists of one or more parts. A part is a connected sequence of of two or more points. See the "ESRI Shapefile Technical Description" [2] for more information.
| size_t shp_polyline_points | ( | const shp_polyline_t * | polyline, |
| size_t | part_num, | ||
| size_t * | start, | ||
| size_t * | end | ||
| ) |
Gets the indices for the points specified by part_num.
| polyline | a polyline. | |
| part_num | a zero-based part number. | |
| [out] | start | the range start. |
| [out] | end | the range end (exclusive). |
| void shp_polyline_point | ( | const shp_polyline_t * | polyline, |
| size_t | point_num, | ||
| shp_point_t * | point | ||
| ) |
Gets a Point that belongs to a PolyLine.
Example
| polyline | a PolyLine. | |
| point_num | a zero-based point number. | |
| [out] | point | a shp_point_t structure. |