[OSM-dev] Using NULL values in mapnik / postgres DB
Jon Burgess
jburgess777 at googlemail.com
Wed Feb 21 23:50:20 GMT 2007
On Wed, 2007-02-21 at 21:53 +0000, Artem Pavlenko wrote:
> Hello,
>
> Attached is console app that takes list of geometries ( in WKT format) and
> cleans them. It works quite well and I can correct all not simple ways from
> latest osm. It requires GEOS lib from geos.refractions.net (I'm using
> geos-3.0.0rc3).
>
> It should fit nicely into osm2pgsql as in essence it takes bunch of
> segments, 'node' them , merge them and spits out 'clean' geometries.
>
> As a side effect it is possible to output geometries in HEX WKB format which
> will speed up loading into postgresql.
>
> Shall I try to merge this into osm2pgsql?
>
> Cheers,
> Artem
Feel free to have a go. I guess the easiest thing would be to wrap your
C++ code with extern "C" and then link and call it from the C code.
Otherwise there is a C API to Geos (it even seems to be recommended over
the C++ for API stability).
Jon
More information about the dev
mailing list