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

Last change on this file since 9252 was 7849, checked in by martinvoosterhout, 12 years ago

Add support for route relations. It has some special processing for bicycle
routes which I just copied from the gravitystorm code. For normal relations
like bus routes it should work also. To actually use bicycle relations the
user will need to uncomment the relevent columns in the style file.

File size: 1.5 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
32char *get_wkt_simple(struct osmNode *, int count, int polygon, double *area, double *int_x, double *int_y);
33
34char* get_wkt(size_t index);
35void get_interior(size_t index, double *y, double *x);
36double get_area(size_t index);
37size_t build_geometry(int osm_id, struct osmNode **xnodes, int *xcount, int make_polygon);
38void clear_wkts();
39
40#ifdef __cplusplus
41}
42#endif
43   
44#endif
Note: See TracBrowser for help on using the repository browser.