PHPMapScript : pixels to geo problem using dynamic symbols

Eric Bridger eric at GOMOOS.ORG
Mon Mar 7 12:10:36 EST 2005


On Mon, 2005-03-07 at 11:41, Geoff Rowland wrote:
> ah, i guess that could be it.  how to you match the image size to the
> extent?

Pick a width or a height such that:

width / height = (maxx - minxx) / (maxy - minx)

Another issue might be that your UNITS look like decimal degrees (DD)
but you had METERS.

>         SIZE 800 600
>         STATUS ON
>
>         EXTENT -17.533 -46.970 55.541 37.340
>         UNITS METERS
>         SHAPEPATH "data"
>



More information about the mapserver-users mailing list