Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - srtie4k

#1
Bump for visibility, dealing with .lnk files in Windows 11 is a huge nightmare. I am a theme developer who works in Windows, I built the "Adventure" theme for adventure motorcyclists (hosted over on advrider.com).

Every time I load a theme in to Locus with lnk files pointing to the legend, I get an error in the Android PDF viewer "Cannot display PDF ([theme].pdf cannot be opened).

I believe this is because Windows is appending metadata to each .lnk file whenever the OS sees the file renamed from a txt extension. If I generate the lnk file on my Android and place it in the theme folder, the legend is able to successfully open from within Locus with no error, but every time I try to offload the lnk file from my phone to my Windows machine, then transfer it back to the phone again, I get this error.

It would be nice if you could add a provision for those of us who work in Windows to get the legend link files working in our themes. Maybe even look for a standard txt file in addition to the lnk file. For the time being, I will have to make a copy of the legend PDF for the 2 theme XML files I maintain (a V3 and a V4 theme), since even a URL will not work.
#2
I'm less interested in hike/bike/mtb profiles and really just want car, especially to save space.

Have the sorting and turn costs issues been worked out? Are the current routing profiles by develar generated using the latest graphhopper master, or 0.12 snapshot? I see that the config file has changed in the latest master release.

I'm also very interested in motorcycle profile. Anyone know if this works offline?

If anyone has tips on these current profiles and which version of graphhopper to use to generate, it would be greatly appreciated.
#3
I ended up falling back to the Geofabrik "region" files for the US, i.e. Northeast, South, Midwest, West, Pacific (and Canada), biggest of which is ~1.3GB. That seems to work mostly, although sometimes Locus still crashes, sometimes I get "service not available" or some such error even when correct region file is selected for start/end location.

One other oddity I noticed is that Graphhopper lists region files in some arbitrary order, seemingly the order in which they were copied to the SD card, rather than alphabetical.

I'm keeping BRouter as a backup, Graphhopper is still a bit buggy.
#4
Is there a limitation on "country file" size? I built the entire US as a routing file and tried it in Locus (it was 3.5GB) and it immediately crashed on opening the navigation screen.
#5
Quote from: pelsta on July 27, 2017, 10:20:41
Quote from: Bucky Kid on July 26, 2017, 21:57:32
Yes it works, updated Windows bat with precompiled targets:
https://drive.google.com/file/d/0By0QjFcdxojodzA3Z3hoV3ZNaVk

Thank you very much, @Bucky Kid!

All you need to generate routing data for GraphHopper is this:
GraphHopper.bat, config.properties, graphhopper-tools-0.10-SNAPSHOT-jar-with-dependencies.jar and, of course, the .pbf file.

How can I generate graphhopper-tools-VERSION-jar-with-dependencies.jar file myself?

You can also build a Ubuntu VM (and install Java, aka "sudo apt-get install default-jdk"), copy the graphhopper source over and build a small set of routing data with "graphhopper.sh import xxx" this will compile the JAR files automatically before importing, which you can then copy the project to your Windows PC.

BTW I would recommend adding parameters "-Xms512m -Xmx12g " to JAVA_OPT in the BAT file. "-XmsYYYm" is the starting memory allocation where YYY is your memory in "m" (megs), and -XmxZZZg is the maximum memory allocation where ZZZ is your memory in g (gigs), especially if you plan on building routing files larger than 1GB in size (as JVM defaults to 1GB or 75% of memory on Windows).
#6
Actually after using graphhopper.sh on a Ubuntu VM, the JARs were compiled and I was able to export the whole graphhopper folder to my Windows machine, and used the batch file script posted on the previous page.

Next question is would it be possible to import the entirety of North America? Or is the file size just simply too big? The NA PBF file is ~7.8GB, not sure how big the final "imported" region would end up being.
#7
Any way to get the graphhopper 0.9.0 files prepackaged as JAR's with dependencies, so I can use it in Windows to convert OSM region files?