[Tile-serving] [openstreetmap/osm2pgsql] Split up --extra-attributes option (Issue #1680)

Jochen Topf notifications at github.com
Fri May 26 09:46:32 UTC 2023


Here is a possible design for this: Add a call in the Flex Lua config file that allows setting some processing options. Something like this:

```
osm2pgsql.config('process_untagged_nodes', true)
osm2pgsql.config('process_untagged_ways', true)
osm2pgsql.config('process_untagged_relations', true)
```
(Not sure about the interface here, but this gives us the flexibility to add more options later.)

The default should be that the process functions are only called for tagged objects. I'd rather have a few people who are doing something with attributes complain that they don't see all objects by default than more people complaining osm2pgsql is unexplicably slow when they use `-x`.

We can also add `osm2pgsql.with_attributes` as a boolean reflecting the setting of the `-x/--extra-attributes` comand line option. This way we can get the old behaviour back by writing something like this in Lua:

```
if osm2pgsql.with_attributes then
  osm2pgsql.config('process_untagged_nodes', true)
  osm2pgsql.config('process_untagged_ways', true)
  osm2pgsql.config('process_untagged_relations', true)
end
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1680#issuecomment-1564118191
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/issues/1680/1564118191 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230526/e51c99d3/attachment-0001.htm>


More information about the Tile-serving mailing list