[Tile-serving] [openstreetmap/osm2pgsql] Changing delete_tag rules for ingest (#633)

Tim OLeary notifications at github.com
Mon Oct 24 13:39:38 UTC 2016


I'm trying to be able to ingest data keeping the note and source tags rather than dropping.

I found in multi.lua:
```
delete_tags = {'name_.*', 'note', 'note:.*', 'source', 'source_ref', 'source:.*',
               'attribution', 'comment', 'fixme', 'created_by', 'odbl',
               'odbl:note', 'SK53_bulk:load', 'tiger:.*', 'NHD:.*', 'nhd:.*',
               'gnis:.*', 'geobase:.*', 'accuracy:meters', 'sub_sea:type',
               'waterway:type', 'KSJ2:.*', 'yh:.*', 'osak:.*', 'kms:.*', 'ngbe:.*',
               'naptan:.*', 'CLC:.*', '3dshapes:ggmodelk', 'AND_nosr_r',
               'import', 'it:fvg:.*'}
```

I removed the note and source entries from the delete tags array and altered the default style to keep these tags for linear features (roads I am testing with), then rebuilt osm2pgqsl.  Everything builds fine and I see in my default styl `/usr/local/share/osm2pgsql/default.style` that my rules kept but when I try to ingest the job dies because I am trying to keep notes in a `non-delete` style entry.

Default.style
```
node,way    note                    text    linear,nocolumn
node,way    note:*                  text    linear,nocolumn
node,way    source                  text    linear,nocolumn
node,way    source_ref              text    linear,nocolumn
node,way    source:*                text    linear,nocolumn
node,way    attribution             text    delete
node,way    comment                 text    delete
node,way    fixme                   text    delete
```

```
[centos at ip-172-31-52-70 ~]$ osm2pgsql -k -d gis source.osm
osm2pgsql version 0.91.0-dev (64 bit id space)

wildcard 'note:*' in non-delete style entry
Error occurred, cleaning up
```

Has anyone run into this?  I've been looking around but haven't had much luck

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/633
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20161024/247daecb/attachment.html>


More information about the Tile-serving mailing list