Skip to content

bug fixes, remove japan from OSM download#495

Open
yuyangshu wants to merge 1 commit intoopenvenues:masterfrom
yuyangshu:whosonfirst-polygons
Open

bug fixes, remove japan from OSM download#495
yuyangshu wants to merge 1 commit intoopenvenues:masterfrom
yuyangshu:whosonfirst-polygons

Conversation

@yuyangshu
Copy link
Contributor

  • remove japan part from the OSM download script as it doesn't seem to be a separate file anymore
  • a few fixes to get the geodata package running again


wget --quiet http://ftp5.gwdg.de/pub/misc/openstreetmap/planet.openstreetmap.org/pbf/planet-latest.osm.pbf -O $OUT_DIR/$PLANET_PBF &
wget --quiet http://download.geofabrik.de/asia/japan-latest.osm.pbf -O $OUT_DIR/$JAPAN_PBF &
wget --quiet https://planet.openstreetmap.org/pbf/planet-latest.osm.pbf -O $OUT_DIR/$PLANET_PBF &
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't see mirrors anymore, load balancing might have been delegated to infrastructure provider


# Fix for polygons crossing the 180th meridian
lons = [lon for lon, lat in coords]
lons = [coordinate[0] for coordinate in coords]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some coordinates in the latest data are in the form of (latitude, longitude, altitude)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant