getting true extents

Aaron Craig mercutio at POBOX.COM
Mon Jan 31 10:08:12 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sounds like a problem I had recently.

You need to make sure that your proportions are the same between your
extent and your pixels -- that is that (using 600 x 400):
minx : maxx = 0 : 600
miny : maxy = 0 : 400

Otherwise, when you convert between one system and another, your
calculations will be thrown off.

Jeff Portwine wrote:
|
| My map image width/height is 600x400... and when it draws the map in
| this area, it does not map out the extents that I have set in the map
| file.  It seems to map the proper "x" extents, but the "y" extents
| extend north and south past the set "y" extents to fill the map.   This
| doesn't really present a huge problem most of the time, but now I have
| the need to calculate pixel position and since i don't know the actual
| extents I can't do this.
|
| Anybody have any suggestions?
|
| Thanks,
| Jeff
|

- --
Aaron Craig
mercutio at pobox.com

===========================================================
Get Firefox!
http://www.spreadfirefox.com/?q=affiliates&id=0&t=1
===========================================================


- -=-=-
Men at some time are masters of their fates: The fault, dear Brutus, is
not in our stars, But in ourselves, that we are underlings.  --Julius
Caesar I.ii.
- -=-=-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB/knboyEQRcU83p4RAtCuAJ9EnCZJrv3Tpziabac8Iq9+q3jTjwCeOQK0
B/a6QVto2UbcJmcuT1ubWlI=
=qw8v
-----END PGP SIGNATURE-----



More information about the mapserver-users mailing list