source: subversion/applications/utils/export/osm2pgsql-intarray/build_geometry.h @ 26438

Last change on this file since 26438 was 19148, checked in by jonb, 10 years ago

osm2pgsql: Apply multipolygon patch from Twain with a few changes.

File size: 1.6 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
30#include "osmtypes.h"
31
32int parse_wkt(const char * wkt, struct osmNode *** xnodes, int ** xcount, int * polygon);
33
34char *get_wkt_simple(struct osmNode *, int count, int polygon);
35size_t get_wkt_split(struct osmNode *, int count, int polygon, double split_at);
36
37char* get_wkt(size_t index);
38double get_area(size_t index);
39size_t build_geometry(int osm_id, struct osmNode **xnodes, int *xcount, int make_polygon, int enable_multi, double split_at);
40void clear_wkts();
41
42#ifdef __cplusplus
43}
44#endif
45   
46#endif
Note: See TracBrowser for help on using the repository browser.