source: subversion/applications/utils/export/osm2pgsql/build_geometry.h @ 2770

Last change on this file since 2770 was 2158, checked in by artem, 13 years ago

use geos to create geometries

File size: 1.3 KB
Line 
1/*
2#-----------------------------------------------------------------------------
3# Part of osm2pgsql utility
4#-----------------------------------------------------------------------------
5# By Artem Pavlenko, Copyright 2007
6#
7# This program is free software; you can redistribute it and/or
8# modify it under the terms of the GNU General Public License
9# as published by the Free Software Foundation; either version 2
10# of the License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
20#-----------------------------------------------------------------------------
21*/
22
23#ifndef BUILD_GEOMETRY_H
24#define BUILD_GEOMETRY_H
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30int is_simple(const char* wkt);
31void add_segment(double x0,double y0,double x1, double y1);
32const char* get_wkt(size_t index);
33size_t build_geometry(int polygon);
34void clear_wkts();
35
36#ifdef __cplusplus
37}
38#endif
39   
40#endif
Note: See TracBrowser for help on using the repository browser.