[OSM-dev] osm2pgsql support for relation type=boundary
grand.edgemaster at gmail.com
Tue Feb 10 18:12:00 GMT 2009
I have no knowledge of c, osm2pgsql, geos or any of the other stuff,
but I did have a hack at it a while back, and a very simple patch
seemed to give me a usable result from my experimentations with the
London borough relations.
Also attached is a mapnik rendering style that I used to confirm it worked.
--- output-pgsql.c (revision 11943)
+++ output-pgsql.c (working copy)
@@ -798,6 +798,10 @@
+ else if( strcmp( type, "boundary" ) == 0 )
+ make_polygon = 1;
/* Unknown type, just exit */
2009/2/10 sly (sylvain letuffe) <liste at letuffe.org>:
> Hi there,
> It may exists somewhere so please excuse me if it does.
> has anyone made a patch for osm2pgsql to support boundary relations import ?
> Has seen in here :
> It looks (I said "looks", I'm in no way a C++ expert) that only multipolygon
> and route type are supported/hard coded
> Before going deeper in C++ books, did anyone allready do it ?
> Sylvain Letuffe liste at letuffe.org
> qui suis-je : http://slyserv.dyndns.org
> dev mailing list
> dev at openstreetmap.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2049 bytes
Desc: not available
More information about the dev