Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing geometry even when lat/lon present #26

Open
nanodan opened this issue Sep 10, 2020 · 4 comments
Open

Missing geometry even when lat/lon present #26

nanodan opened this issue Sep 10, 2020 · 4 comments
Assignees
Labels
feature New feature or request help wanted Extra attention is needed

Comments

@nanodan
Copy link
Collaborator

nanodan commented Sep 10, 2020

the planet_nodes table seems to be missing some geometries, even when the lat/lon exists.

Example:

select *
  from `bigquery-public-data.geo_openstreetmap.planet_nodes` 
where id = 705843564

This occurs quite a lot:

select count(1)
 from `bigquery-public-data.geo_openstreetmap.planet_nodes` 
where geometry is null
  and latitude is not null 
  and longitude is not null

The above query returns 6121356366 rows (97% of the table)

@pseveryn pseveryn added the bug Something isn't working label Sep 14, 2020
@pseveryn
Copy link
Collaborator

@Pseverin thanks! I see that there are missing data at the bigquery-public-data.geo_openstreetmap.planet_points (GDAL branch of the pipeline). Take it into the work

@pseveryn pseveryn self-assigned this Sep 14, 2020
@pseveryn
Copy link
Collaborator

@nanodan, it turned out, that GDAL generates geometry only for Nodes that contain tags (in other words, Nodes that represent some independent real objects). If some node is just a part of a larger object (e.g. way, multipolygon, etc.), GDAL would skip geometry for this node.

Could you please provide the use case where you need these geometries?

@pseveryn pseveryn added feature New feature or request help wanted Extra attention is needed and removed bug Something isn't working labels Sep 17, 2020
@nanodan
Copy link
Collaborator Author

nanodan commented Sep 25, 2020

@Pseverin I use some untagged nodes (when they are multiply connected) to identify the locations of junctions between ways.

@allenday
Copy link
Contributor

so if I understand correctly, we should file an issue with GDAL upstream repo to export untagged points.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants