apache / incubator-baremaps

Create custom vector tiles from OpenStreetMap and other data sources with Postgis and Java.
baremaps.apache.org
Apache License 2.0
511 stars 58 forks source link

workflow.json in osm example is not working #847

Closed benoitregamey closed 1 week ago

benoitregamey commented 5 months ago

Hi there, Awesome project, thanks !

Here's my 2 cents : the examples/openstreetmap/workflow.json seems not to work. Log says :

Could not resolve type id 'ImportOsmPbf' as a subtype of `org.apache.baremaps.workflow.Task`

I had to manually download OSM data in .pbf and use the command baremaps database import-osm to get it to work.

All the best Benoit

bchapuis commented 5 months ago

Thanks a lot for reporting this issue. Could you tell me which version of baremaps you are using?

We are in the process of dropping a new release and I fixed some issues when testing the examples. Do you think they may be related? https://github.com/apache/incubator-baremaps/pull/848

Also, everyone is invited to vote for the release artifacts, so do not hesitate to add yours. https://lists.apache.org/thread/cvz3y3rqsnv37zqx8b7vo65f6lpbtjm6

benoitregamey commented 5 months ago

I used version 0.7.2 from here https://dist.apache.org/repos/dist/release/incubator/baremaps/0.7.2/

We are in the process of dropping a new release and I fixed some issues when testing the examples. Do you think they may be related? I don't know, according to the logs, it seems the task ImportOsmPbf does not exist

bchapuis commented 5 months ago

The format of the workflow currently used in the main branch probably changed slightly and is not supported by 0.7.2 anymore. One option could be to try with 0.7.3-rc1 from here (I tested the openstreetmap example currently in main with this release candidate):

https://dist.apache.org/repos/dist/dev/incubator/baremaps/0.7.3-rc1/

Another option could be to use the workflow tagged with 0.7.2 (as you noticed the problematic task was named ImportOpenStreetMap by then and was renamed ImportOsmPbf):

https://github.com/apache/incubator-baremaps/blob/v0.7.2/examples/openstreetmap/workflow.json

Do not hesitate to reach out if you need some support along the setup.