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

Update boundary file downloaded by downloadBoundaries task #197

Open
tsmock opened this issue Jan 4, 2022 · 2 comments
Open

Update boundary file downloaded by downloadBoundaries task #197

tsmock opened this issue Jan 4, 2022 · 2 comments

Comments

@tsmock
Copy link
Contributor

tsmock commented Jan 4, 2022

Right now, downloadBoundaries gets "https://dl.dropboxusercontent.com/s/5a5q6tro5lx4m07/world_boundaries_osm_20171013.txt.gz". This is (a) out of date and (b) in the wrong format.

When using ./gradlew run, the task errors out with the following:

org.openstreetmap.atlas.exception.CoreException: Job Atlas Generator failed.
        at org.openstreetmap.atlas.generator.tools.spark.SparkJob.onRun(SparkJob.java:204)
        at org.openstreetmap.atlas.utilities.runtime.Command.execute(Command.java:338)
        at org.openstreetmap.atlas.utilities.runtime.Command.run(Command.java:282)
        at org.openstreetmap.atlas.generator.AtlasGenerator.main(AtlasGenerator.java:63)
Caused by: org.openstreetmap.atlas.exception.CoreException: Invalid country boundary text file format.
        at org.openstreetmap.atlas.geography.boundary.CountryBoundaryMap.readFromPlainText(CountryBoundaryMap.java:730)
        at org.openstreetmap.atlas.geography.boundary.CountryBoundaryMap.fromPlainText(CountryBoundaryMap.java:189)
        at org.openstreetmap.atlas.geography.boundary.CountryBoundaryMapArchiver.read(CountryBoundaryMapArchiver.java:69)
        at org.openstreetmap.atlas.generator.AtlasGenerator.boundaries(AtlasGenerator.java:393)
        at org.openstreetmap.atlas.generator.AtlasGenerator.start(AtlasGenerator.java:157)
        at org.openstreetmap.atlas.generator.tools.spark.SparkJob.onRun(SparkJob.java:197)
        ... 3 more
Caused by: java.lang.ClassCastException: class org.locationtech.jts.geom.MultiPolygon cannot be cast to class org.locationtech.jts.geom.Polygon (org.locationtech.jts.geom.MultiPolygon and org.locationtech.jts.geom.Polygon are in unnamed module of loader 'app')
        at org.openstreetmap.atlas.geography.boundary.CountryBoundaryMap.readFromPlainText(CountryBoundaryMap.java:723)
        ... 8 more
@matthieun
Copy link
Collaborator

Hi @tsmock good catch! This needs an update.

@kalekarnn
Copy link

I am also facing this issue, any workaround or any other link from where we can pull the OSM world boundary file?

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

No branches or pull requests

3 participants