| 
    shapereader
    
   Read ESRI shapefiles 
   | 
 
Polygon. More...
#include <shp-polygon.h>
Public Member Functions | |
| size_t | shp_polygon_points (const shp_polygon_t *polygon, size_t part_num, size_t *start, size_t *end) | 
| Get the points that form a part.   | |
| void | shp_polygon_point (const shp_polygon_t *polygon, size_t point_num, shp_point_t *point) | 
| Get a Point.   | |
A polygon 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. See the "ESRI Shapefile Technical Description" [2] for more information.
| size_t shp_polygon_points | ( | const shp_polygon_t * | polygon, | 
| size_t | part_num, | ||
| size_t * | start, | ||
| size_t * | end | ||
| ) | 
Gets the indices for the points specified by part_num.
| polygon | a polygon. | |
| part_num | a zero-based part number. | |
| [out] | start | the range start. | 
| [out] | end | the range end (exclusive). | 
| void shp_polygon_point | ( | const shp_polygon_t * | polygon, | 
| size_t | point_num, | ||
| shp_point_t * | point | ||
| ) | 
Gets a Point that belongs to the edges of a Polygon.
Example
| polygon | a polygon. | |
| point_num | a zero-based point number. | |
| [out] | point | a shp_point_t structure. |