PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Images » Image_GIS » Bug #1179

Negative coordinates still appear "flipped"

Details

Submitted2004-04-11 15:55 UTC
Fromlistas at globalpartner dot com dot br
Assignedostborn
StatusClosed
PackageImage_GIS
PHP VersionIrrelevant
OSRedHat Linux
Roadmaps(Not assigned)

Comments

[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

[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