shapereader
Read ESRI shapefiles
shp-point.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_POINT_H
17
#define _SHAPEREADER_SHP_POINT_H
18
24
typedef
struct
shp_point_t
{
25
double
x
;
26
double
y
;
27
}
shp_point_t
;
28
46
extern
int
shp_point_in_bounding_box
(
const
shp_point_t
*point,
double
x_min,
47
double
y_min,
double
x_max,
48
double
y_max);
49
50
#endif
shp_point_t
Point.
Definition:
shp-point.h:24
shp_point_t::x
double x
X coordinate.
Definition:
shp-point.h:25
shp_point_t::y
double y
Y coordinate.
Definition:
shp-point.h:26
shp_point_t::shp_point_in_bounding_box
int shp_point_in_bounding_box(const shp_point_t *point, double x_min, double y_min, double x_max, double y_max)
Check whether a point is in a bounding box.
Definition:
shp-point.c:17
Generated by
1.9.4