Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

osm2pgsql make planet_osm_ways contain all raw ways #2360

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

osm2pgsql make planet_osm_ways contain all raw ways #2360

openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

Reporter: milo[at]opengeo.nl
[Submitted to the original trac issue database at 10.49pm, Tuesday, 6th October 2009]

I have been investigating osm2pgsql and discovered that not all xml way elements are parsed into the planet_osm_ways table.

As with planet_osm_nodes that does contain all the raw nodes, I would like planet_osm_ways to reflect the content of the osm-xml it originated from too, despite unknown tags and without ignoring the coastline.

@openstreetmap-trac
Copy link
Author

Author: milo[at]opengeo.nl
[Added to the original trac issue at 9.49am, Wednesday, 7th October 2009]

I ran a first test. For the test I altered

static int pgsql_add_way(int id, int *nds, int nd_count, struct keyval *tags)

(see output-pgsql.patch)

to NOT test for polygon or filter. It partially does what I want, I now have coastlines and ways with "unknown" tags in my planet_osm_ways table.

I noticed one thing, the coastlines are now also being written to planet_osm_line, but natural is set to NULL instead of to coastline. I would prefer a method where the planet_osm_line ignores the coastlines and other unknown tags completely not parsing anything at all.

@openstreetmap-trac
Copy link
Author

Author: amm
[Added to the original trac issue at 5.51pm, Monday, 16th September 2013]

I haven't verified this, but briefly looking at the code, it seems all ways should be written to planet_osm_ways table. So I am closing this as out of date.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant