[Tile-serving] [osm2pgsql-dev/osm2pgsql] highway=osm_restarea treatet as line (Issue #2116)
reald
notifications at github.com
Sat Dec 23 18:23:06 UTC 2023
<!-- Please don't use screenshots. Copy and paste the *text* output here if that's needed for context. -->
## What version of osm2pgsql are you using?
```
osm2pgsql version 1.10.0
Build: RelWithDebInfo
Compiled using the following library versions:
Libosmium 2.20.0
Proj [API 6] 8.2.1
Lua 5.3.6
```
## What operating system and PostgreSQL/PostGIS version are you using?
Ubuntu 22.04.3 LTS
## Tell us something about your system
32GB Ram, 16 Cores
## What did you do exactly?
Imported .pbf file:
`osm2pgsql --slim --drop -C 8192 -c -S default.style -l -d $DBNAME -U real -H localhost -W germany-latest.osm.pbf`
## What did you expect to happen?
Closed lines with `highway='rest_area'` should appear in `planet_osm_polygon`.
## What did happen instead?
Closed lines with `highway='rest_area'` appeared in `planet_osm_line` and some in `planet_osm_polygon`.
## What did you do to try analyzing the problem?
Tried osm2pgsql version 1.6 and 1.10.0.
The difference seem to be that the entries in `planet_osm_polygon` have `area='yes'` set, too.
The problem is that setting `area='yes'` is unnecessary because `highway='rest_area'` already implicitly marks an area. josm gives a warning if you want wo set `area='yes'` together with `highway='rest_area'`.
=> Treat all closed lines with `highway='rest_area'` as areas independent if `area='yes'` is set or not.
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/issues/2116
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/issues/2116 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20231223/4770df33/attachment.htm>
More information about the Tile-serving
mailing list