jerome077 / gpsvp

Automatically exported from code.google.com/p/gpsvp
5 stars 2 forks source link

filenames with explicit latitude and longitude #121

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I wrote this mapcfg.ini...

[Tiled MAP]
gpsVPVersionMin=0.4.16
Filename=%LAT1&%LONG1&LAT2&LONG2.png
SubPath=/

... and supplied a 256*256 image named
"51.547269&-0.025618&51.573491&0.018812.png" in the same folder. The image
didn't load. In the very same folder the tiles generated from mapcrunch
worked (with Filename=%QKEY.png, of course). I'm wondering if there is some
issue with the format of lat/long, or is this naming style not supported at
all?

Original issue reported on code.google.com by mr.x....@gmail.com on 22 Dec 2009 at 9:11

GoogleCodeExporter commented 9 years ago
First of all "%" is missing in front of LAT2 and LONG2 in your ini file.

But anyway the variables %LAT1, %LONG1, %LAT2, %LONG2 were thought to be used 
in the
URLs for getting images from a WMS server. You can use them in file names but 
the
values must exactly correspond to the borders of a Google Maps tile. So it is 
only
useful if gpsvp downloaded the image itself (and either in this case I won't
recommend to use coordinates for the file names: different versions of gpsvp 
might
use different rounding algorithms for the coordinates).
If the image comes from another source, they will probably have completely 
different
coordinates and I won't work.

Original comment by jerome077 on 22 Dec 2009 at 9:44