[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ gpsdrive ] Custom map scale question
Grand Central wrote:
> I created a map, 1280x1024.
> The 1280 pixels are exactly 32 kilometers.
>
> Does that mean that the map scale that I need to enter into
> map_koord.txt is 32000?
No.
gdal_slice.sh
# You can figure out the "scale" factor by meters/pixel * 2817.947378
# 2817 is maybe someones monitor dpi converted to pixels/meter??
SCALE=`echo $M_PER_PIXEL | awk '{printf("%d", 0.5 + ($1 * 2817.947378) )}'`
so the scale factor is (32000/1280) * 2817.947378 = 70449
You need to make sure you name the image/dir with top_ or map_ as well,
depending on if the map was from a lat/lon (degree based) or projected
(meter based) source (e.g. UTM).
Hamish
--
This message was part of the gpsdrive mailinglist
unsubscribing can be done by sending a mail containing a body of:
-quote--
unsubscribe gpsdrive
-unquote--
to majordomo@warbase.selwerd.nl