[gdal-dev] Add "all_tags" option into OSM driver

Even Rouault even.rouault at mines-paris.org
Sun Nov 3 04:50:18 PST 2013


Le dimanche 15 septembre 2013 16:48:34, Jukka Rahkonen a écrit :
> Hi,
> 
> Currently it is possible to select which OSM tags are converted into normal
> OGR fiels and select that the rest will be written into "other_tags" field,
> except the ones from the ignore list.
> 
> In case of PostGIS and hstore it would be sometimes good to have all the
> tags written into the hstore fiels, also those which are converted into OGR
> fields.
> 
> I suggest to add an "all_tags" option which would concatenate all the tags
> into a common field except those which are in the ingore list.
> Alternatively there could be switch to change the "other_tags" behavious
> between "all tags which are not OGR tags of ignored" vs. "all tags which
> are not ignored"
> 
> Adding a new "all_tags" option feels easier to implement but I can not
> really imagine why any user would like to select both "other_tags" and
> "all_tags" options at the same time.
> 
> Osmconf.ini which would support the easy but perhaps stupid alternative
> would then look like this:
> 
> # keys to report as OGR fields
> attributes=[list]
> # keys that should NOT be reported in the "other_tags" and "all_tags"
> fields ignore=[list]
> # uncomment to avoid creation of "other_tags" field
> #other_tags=no
> # uncomment to avoid creation of "all_tags" field
> all_tags=no
> 
> 
> The "all_tags" option is how osm2pgsql works with the -k parameter and
> having that in GDAL would help in using those two programs side by side.

Hi,

I've just added a "all_tags=yes" option. It is disabled by default. When 
enabled, it replaces "other_tags" if it is also enabled.

Even


> 
> -Jukka Rahkonen-
> 
> 
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
Geospatial professional services
http://even.rouault.free.fr/services.html


More information about the gdal-dev mailing list