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