GDAL

ogr_geos.h
1/******************************************************************************
2 *
3 * Project: OpenGIS Simple Features Reference Implementation
4 * Purpose: Definitions related to support for use of GEOS in OGR.
5 * This file is only intended to be pulled in by OGR implementation
6 * code directly accessing GEOS.
7 * Author: Frank Warmerdam <warmerdam@pobox.com>
8 *
9 ******************************************************************************
10 * Copyright (c) 2004, Frank Warmerdam <warmerdam@pobox.com>
11 *
12 * SPDX-License-Identifier: MIT
13 ****************************************************************************/
14
15#ifndef OGR_GEOS_H_INCLUDED
16#define OGR_GEOS_H_INCLUDED
17
18#ifdef HAVE_GEOS
19// To avoid accidental use of non reentrant GEOS API.
20// (check only effective in GEOS >= 3.5)
21#define GEOS_USE_ONLY_R_API
22
23#include <geos_c.h>
24#else
25
26 namespace geos
27{
28 class Geometry;
29}
30
31#endif
32
33#endif /* ndef OGR_GEOS_H_INCLUDED */