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.
The following users thanked this post: Viajero Perdido
#2
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).
The following users thanked this post: pelsta