Closed ictish closed 6 years ago
Hi, thanks for submitting your issue. Can you provide the task JSON whose .pbf file does not match the converted Shapefile?
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 ⌘============================================⌘
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.
I created a simply polygonal region in Tokyo to obtain the pbf file.
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"