Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.2

Bug #1179 Negative coordinates still appear "flipped"
Submitted: 2004-04-11 15:55 UTC
From: listas at globalpartner dot com dot br Assigned: ostborn
Status: Closed Package: Image_GIS
PHP Version: Irrelevant OS: RedHat Linux
Roadmaps: (Not assigned)    
Subscription  


 [2004-04-11 15:55 UTC] listas at globalpartner dot com dot br
Description: ------------ As you well know, coordinates in the southern hemisphere or east of Greenwich are represented by negative numbers. I assume negative numbers should be used in setRange arguments. The image produced by the package presents a "horizontally and verticaly flipped" (180 degree rotated) image and only in the positive range of coordinates (serious problem when a region crosses equator). Script used is the one used in the example on the home page, but with a different data set (example below). A space is not required before the minus sign (tried to fix this in the E00.php parser). Otherwise, it works great. Reproduce code: --------------- Sample of valid E00 data: EXP 0 /AFS/PSU.EDU/LIBRARY/DCW/FTP/DCW_DATA/17245/RRLINE.E00 ARC 2 1 2714 5 6 13 13 6 -5.0999596E+01-2.0187527E+01-5.0989342E+01-2.0189198E+01 -5.0982140E+01-2.0193340E+01-5.0963341E+01-2.0208616E+01 -5.0952515E+01-2.0211725E+01-5.0941479E+01-2.0212950E+01

Comments

 [2004-04-13 04:03 UTC] listas at globalpartner dot com dot br
west...
 [2004-04-30 19:43 UTC] arno at paanstra dot nl
You can fix this bug quit easy. In the file E00.php you find several times "[ -]([0-9]" change it to "([ -][0-9]". That's all. Arno
 [2004-05-01 01:00 UTC] listas at globalpartner dot com dot br
Arno, Thanks for the idea, but I don't think that it fixes the problem. Or problems, to be more precise. a- it still renders a flipped image (rotated 180 deg) b- $map -> setRange needs to accept negative values Jose
 [2004-07-11 22:20 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-07-25 13:57 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!