GIScience / OSM-realtime-update

:clock2: OpenStreetMap Data Extracts - updated on the fly!
https://giscience.github.io/OSM-realtime-update/
MIT License
41 stars 6 forks source link

information in pbf is not bounded by the polygon created by the user #18

Closed ictish closed 6 years ago

ictish commented 6 years ago
  1. I created a simply polygonal region in Tokyo to obtain the pbf file.

  2. Then converted it to Shapefile using ogr2ogr. My command to do so is

ogr2ogr -overwrite -f "ESRI Shapefile" test.shp test.osm.pbf -progress -sql "select osm_id, name, amenity, other_tags from multiploygons where amenity is not null"

  1. I then plotted the shapefile against OpenLayers Plugins (Google Maps->Google Street) in QGIS and found that it covers more area than that of the polygon I was desiring.
sedot42 commented 6 years ago

Hi, thanks for submitting your issue. Can you provide the task JSON whose .pbf file does not match the converted Shapefile?

ictish commented 6 years ago

Hi,

Thank you for your response. The task JSON is as follows:

[{"id":8,"name":"tokyo2","coverage":{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[139.50686309289156,35.69762944101423],[139.3926053474468,35.50825711449963],[139.6013455818218,35.38116304084568],[139.71999779146134,35.52077666099045],[139.50686309289156,35.69762944101423]]],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"properties":null},"URL":"./data/8_tokyo2.osm.pbf","expirationDate":"","updateInterval":600,"lastUpdated":null,"addedDate":"2018-04-09T08:40:24.194Z","averageRuntime":null}]

Regards, Satish

On Tue, Apr 10, 2018 at 8:28 PM, Stefan E. notifications@github.com wrote:

Hi, thanks for submitting your issue. Can you provide the task JSON whose .pbf file does not match the converted Shapefile?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/GIScience/OSM-realtime-update/issues/18#issuecomment-380065761, or mute the thread https://github.com/notifications/unsubscribe-auth/AG7GSzzazbgpPnvt7stJnuX6LSbfwvEwks5tnJdTgaJpZM4TNgFg .

-- ⌘===========================================⌘ The University of Tokyo Graduate School of Information Science and Technology Department of Information and Communication Engineering Taura Laboratory Satish Kumar Jaiswal (ジャスワル サティシュ クマル) Email: ictish@gmail.com Phone: +81 80-3774-2008 ⌘============================================⌘

sedot42 commented 6 years ago

Hi, sorry for the late reply. I could not reproduce your issue. See the screenshot. Your provided polygon is in blue, the resulting data is green. If you think your issue was not resolved, please comment here and I will reopen. tokyo_realtimeosm