|
GDAL
|
00001 /****************************************************************************** 00002 * $Id: ogr_libs.h 36883 2016-12-15 13:31:12Z rouault $ 00003 * 00004 * Project: OpenGIS Simple Features Reference Implementation 00005 * Purpose: Definitions related to support for use of SFCGAL and GEOS in OGR. 00006 * This file is only intended to be pulled in by OGR implementation 00007 * code directly accessing SFCGAL and/or GEOS. 00008 * Author: Avyav Kumar Singh <avyavkumar at gmail dot com> 00009 * 00010 ****************************************************************************** 00011 * Copyright (c) 2016, Avyav Kumar Singh <avyavkumar at gmail dot com> 00012 * 00013 * Permission is hereby granted, free of charge, to any person obtaining a 00014 * copy of this software and associated documentation files (the "Software"), 00015 * to deal in the Software without restriction, including without limitation 00016 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 00017 * and/or sell copies of the Software, and to permit persons to whom the 00018 * Software is furnished to do so, subject to the following conditions: 00019 * 00020 * The above copyright notice and this permission notice shall be included 00021 * in all copies or substantial portions of the Software. 00022 * 00023 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00024 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00025 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 00026 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00027 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 00028 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 00029 * DEALINGS IN THE SOFTWARE. 00030 ****************************************************************************/ 00031 00032 #ifndef HAVE_GEOS 00033 #define UNUSED_IF_NO_GEOS CPL_UNUSED 00034 #else 00035 #define UNUSED_IF_NO_GEOS 00036 #endif 00037 00038 #ifndef HAVE_SFCGAL 00039 #define UNUSED_IF_NO_SFCGAL CPL_UNUSED 00040 #else 00041 #define UNUSED_IF_NO_SFCGAL 00042 #endif 00043 00044 #ifndef UNUSED_PARAMETER 00045 00046 #ifdef HAVE_GEOS 00047 #ifndef HAVE_SFCGAL 00048 #define UNUSED_PARAMETER UNUSED_IF_NO_SFCGAL // SFCGAL no and GEOS yes - GEOS methods always work 00049 #else 00050 #define UNUSED_PARAMETER // Both libraries are present 00051 #endif 00052 #endif 00053 00054 #ifndef HAVE_GEOS 00055 #ifdef HAVE_SFCGAL 00056 #define UNUSED_PARAMETER UNUSED_IF_NO_GEOS // SFCGAL yes and GEOS no - SFCGAL methods always work 00057 #else 00058 #define UNUSED_PARAMETER CPL_UNUSED // Neither of the libraries have support enabled 00059 #endif 00060 #endif 00061 00062 #endif
1.7.6.1.