jgrunert / Osm-Routing-App

Android App for offline routing with OpenStreetMap
GNU General Public License v3.0
6 stars 0 forks source link

OSM Road Network Chunks #2

Open KerryKilian opened 2 years ago

KerryKilian commented 2 years ago

Hello, as I saw that you answered an issue a few months ago, I hope that you could have the time to watch out my problem: I am doing this project in android studio with gradle and I get this problem:

2 files found with path 'osmosis-plugins.conf'.
Adding a packagingOptions block may help, please refer to
https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/ResourcesPackagingOptions
for more information

You are using maven and I dont know much about maven so it is difficult for me to figure out how to solve this problem. If anyone can, I would appreciate seeing the solution. But whatever, I can imagine it is difficult for you to remember everything because the project is a few years old. So is it possible to share such a osm network chunk file so that I could test if my project could work with these files? I tried with other ways, e.g. creating such a file with other tools on the internet but none of these files work in AndroMapView. For example I get .osm files and you are using an .index file. There is always the error in AndroMapView:

java.io.StreamCorruptedException: invalid stream header: 3C3F786D
2022-06-14 14:15:14.105 19283-19283/de.jgrunert W/System.err:     at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:862)
2022-06-14 14:15:14.105 19283-19283/de.jgrunert W/System.err:     at java.io.ObjectInputStream.<init>(ObjectInputStream.java:353)
2022-06-14 14:15:14.105 19283-19283/de.jgrunert W/System.err:     at de.jgrunert.osmrouting.AStarRouteSolver.intializeGrids(AStarRouteSolver.java:182)
2022-06-14 14:15:14.106 19283-19283/de.jgrunert W/System.err:     at de.jgrunert.osmrouting.AStarRouteSolver.<init>(AStarRouteSolver.java:154)

Moreover I am facing this error in AndroMapView:

FATAL EXCEPTION: LayerManager
    Process: de.jgrunert, PID: 19283
    java.lang.IllegalArgumentException: Invalid Region.Op - only INTERSECT and DIFFERENCE are allowed
        at android.graphics.Canvas.checkValidClipOp(Canvas.java:821)
        at android.graphics.Canvas.clipRect(Canvas.java:960)
        at org.mapsforge.map.android.graphics.AndroidCanvas.resetClip(AndroidCanvas.java:140)
        at org.mapsforge.map.layer.TileLayer.draw(TileLayer.java:78)
        at org.mapsforge.map.layer.LayerManager.doWork(LayerManager.java:90)
        at org.mapsforge.map.util.PausableThread.run(PausableThread.java:140)

These are a few questions and I hope you have some ideas how to solve it, espacially with the invalid stream header. You maybe have these grid files that I can use?