Open giggls opened 1 year ago
That's unfortunate that we have this inconsistency in "naming" the OSM types. The problem is that we can't really change that now, more than two years since version 1.3.0 was released, which introduced this.
I see two options:
member.osm_type
or so, that uses the uppercase handle. Mark the member.type
as deprecated and remove it in a few years. I just saw that it is easy to remove the inconsistency from the database by replacing this piece of code as follows:
member_type = member.type
member_type = string.upper(member.type)
So documenting the inconsistency is probably the way to go.
What version of osm2pgsql are you using?
What operating system and PostgreSQL/PostGIS version are you using?
Debian 11 (PostgreSQL 13 and PostGIS 3.1.1 from Debian 11)
What did you do exactly?
I try to import site relations.
What did you expect to happen?
I would expect that member_type of relations and regular osm_type would use the same case.
What did happen instead?
While member_type uses lowercase ('n','w','r') osm_type uses uppercase ('N','W','R').
What did you do to try analyzing the problem?
The Problem can be reproduced using the following lua script: