[OSM-dev] osm2pgsql fails on current data

Martijn van Oosterhout kleptog at gmail.com
Sat Apr 12 17:52:10 BST 2008


On Sat, Apr 12, 2008 at 3:46 PM, Frederik Ramm <frederik at remote.org> wrote:
>    there are some ways tagged "admin_level=6;8" (way #23636282 e.g.)
>  which seem to break osm2pgsql:
>
>  COPY_END for planet_osm_line failed: ERROR:  invalid input syntax for integer: "6;8"
>  CONTEXT:  COPY planet_osm_line, line 2766147, column admin_level: "6;8"
>
>  I'm not too experienced with osm2pgsql, would it help if I just
>  changed the style file to make "admin_level" a "text" type instead of
>  "int4", or will this break other things then?

That will work, though it will change the meaning of [admin_level] <
10 if mapnik tries to do that (not sure if we do that anywhere....)

Have a nice day,
-- 
Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/




More information about the dev mailing list