[OSM-dev] Using NULL values in mapnik / postgres DB

Artem Pavlenko artem at pavlenko.uklinux.net
Sat Feb 24 15:50:47 GMT 2007


> valid segments to be dropped:
>
> --- build_geometry.cpp  (revision 2158)
> +++ build_geometry.cpp  (working copy)
> @@ -90,7 +90,7 @@
>
>     while (pos != end)
>     {
> -      if (pos->x0 != pos->x1 && pos->y0 != pos->y1)
> +      if (pos->x0 != pos->x1 || pos->y0 != pos->y1)
>        {
>

Yes, thanks! 

I'd like to start using coastline polygons, would it be possible to ignore 
natural=coastline ways at the conversion stage? 

select count(1) from planet_osm where "natural"='coastline';
 count
--------
 232098
(1 row)

Cheers,
Artem






More information about the dev mailing list