shapereader
Read ESRI shapefiles
shp-polylinem.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_POLYLINEM_H
17#define _SHAPEREADER_SHP_POLYLINEM_H
18
19#include "shp-pointm.h"
20#include <stddef.h>
21
29typedef struct shp_polylinem_t {
30 double x_min;
31 double x_max;
32 double y_min;
33 double y_max;
34 double m_min;
35 double m_max;
36 size_t num_parts;
37 size_t num_points;
38 const char *parts; /* Index to first point in part */
39 const char *points; /* X and Y coordinates */
40 const char *m_array; /* Measures */
42
57extern size_t shp_polylinem_points(const shp_polylinem_t *polylinem,
58 size_t part_num, size_t *start,
59 size_t *end);
60
89extern void shp_polylinem_pointm(const shp_polylinem_t *polylinem,
90 size_t point_num, shp_pointm_t *pointm);
91
92#endif
PointM.
Definition: shp-pointm.h:25
PolyLineM.
Definition: shp-polylinem.h:29
size_t num_points
Total number of points.
Definition: shp-polylinem.h:37
double y_min
Y minimum value.
Definition: shp-polylinem.h:32
double m_max
M maximum value.
Definition: shp-polylinem.h:35
double x_max
X maximum value.
Definition: shp-polylinem.h:31
double x_min
X minimum value.
Definition: shp-polylinem.h:30
size_t shp_polylinem_points(const shp_polylinem_t *polylinem, size_t part_num, size_t *start, size_t *end)
Get the points that form a part.
Definition: shp-polylinem.c:17
void shp_polylinem_pointm(const shp_polylinem_t *polylinem, size_t point_num, shp_pointm_t *pointm)
Get a PointM.
Definition: shp-polylinem.c:52
double y_max
Y maximum value.
Definition: shp-polylinem.h:33
double m_min
M minimum value.
Definition: shp-polylinem.h:34
size_t num_parts
Number of parts.
Definition: shp-polylinem.h:36