shapereader
Read ESRI shapefiles
shp-polygonz.h
Go to the documentation of this file.
1/*
2 * Read ESRI shapefiles
3 *
4 * Copyright (C) 2023 Andreas Vögele
5 *
6 * This library is free software; you can redistribute it and/or modify it
7 * under either the terms of the ISC License or the same terms as Perl.
8 */
9
10/* SPDX-License-Identifier: ISC OR Artistic-1.0-Perl OR GPL-1.0-or-later */
11
16#ifndef _SHAPEREADER_SHP_POLYGONZ_H
17#define _SHAPEREADER_SHP_POLYGONZ_H
18
19#include "shp-pointz.h"
20#include <stddef.h>
21
29typedef struct shp_polygonz_t {
30 double x_min;
31 double x_max;
32 double y_min;
33 double y_max;
34 double z_min;
35 double z_max;
36 double m_min;
37 double m_max;
38 size_t num_parts;
39 size_t num_points;
40 const char *parts; /* Index to first point in part */
41 const char *points; /* X and Y coordinates */
42 const char *z_array; /* Z coordinates */
43 const char *m_array; /* Measures */
45
60extern size_t shp_polygonz_points(const shp_polygonz_t *polygonz,
61 size_t part_num, size_t *start,
62 size_t *end);
63
92extern void shp_polygonz_pointz(const shp_polygonz_t *polygonz,
93 size_t point_num, shp_pointz_t *pointz);
94
95#endif
PointZ.
Definition: shp-pointz.h:25
PolygonZ.
Definition: shp-polygonz.h:29
size_t num_points
Total number of points.
Definition: shp-polygonz.h:39
double m_min
M minimum value.
Definition: shp-polygonz.h:36
double x_max
X maximum value.
Definition: shp-polygonz.h:31
double x_min
X minimum value.
Definition: shp-polygonz.h:30
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.
Definition: shp-polygonz.c:17
double z_min
Z minimum value.
Definition: shp-polygonz.h:34
void shp_polygonz_pointz(const shp_polygonz_t *polygonz, size_t point_num, shp_pointz_t *pointz)
Get a PointZ.
Definition: shp-polygonz.c:52
double y_min
Y minimum value.
Definition: shp-polygonz.h:32
double y_max
Y maximum value.
Definition: shp-polygonz.h:33
double z_max
Z maximum value.
Definition: shp-polygonz.h:35
double m_max
M maximum value.
Definition: shp-polygonz.h:37
size_t num_parts
Number of parts.
Definition: shp-polygonz.h:38