1 /********************************************************************** 2 * $Id: mitab_geometry.h 1b6ddf05f3ceee1fde40bbd56f44a2d462af0856 2017-02-09 14:29:57Z Kurt Schwehr $ 3 * 4 * Name: mitab_geometry.cpp 5 * Project: MapInfo TAB Read/Write library 6 * Language: C++ 7 * Purpose: Geometry manipulation functions. 8 * Author: Daniel Morissette, dmorissette@dmsolutions.ca 9 * Based on functions from mapprimitive.c/mapsearch.c in the source 10 * of UMN MapServer by Stephen Lime (http://mapserver.gis.umn.edu/) 11 ********************************************************************** 12 * Copyright (c) 1999, 2000, Daniel Morissette 13 * 14 * Permission is hereby granted, free of charge, to any person obtaining a 15 * copy of this software and associated documentation files (the "Software"), 16 * to deal in the Software without restriction, including without limitation 17 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 18 * and/or sell copies of the Software, and to permit persons to whom the 19 * Software is furnished to do so, subject to the following conditions: 20 * 21 * The above copyright notice and this permission notice shall be included 22 * in all copies or substantial portions of the Software. 23 * 24 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 27 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 29 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 30 * DEALINGS IN THE SOFTWARE. 31 **********************************************************************/ 32 33 #ifndef MITAB_GEOMETRY_H_INCLUDED 34 #define MITAB_GEOMETRY_H_INCLUDED 35 36 #include "ogr_geometry.h" 37 38 GBool OGRPointInRing(OGRPoint *poPoint, OGRLineString *poRing); 39 GBool OGRIntersectPointPolygon(OGRPoint *poPoint, OGRPolygon *poPoly); 40 int OGRPolygonLabelPoint(OGRPolygon *poPoly, OGRPoint *poLabelPoint); 41 int OGRPolylineCenterPoint(OGRLineString *poLine, OGRPoint *poLabelPoint); 42 int OGRPolylineLabelPoint(OGRLineString *poLine, OGRPoint *poLabelPoint); 43 44 #endif /* ndef MITAB_GEOMETRY_H_INCLUDED */ 45