Opened 17 years ago
Last modified 17 years ago
#1968 closed defect
calling setRotation() causes a Fatal Error — at Initial Version
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | high | Milestone: | 5.0 release |
Component: | MapScript-PHP | Version: | 4.10 |
Severity: | major | Keywords: | |
Cc: |
Description
I use the MS4W (mapserver 4.10) package with PHP5 on a PC with WindowsXP Pro with Apache 2.0.59 and I noticed that calling: $map->setExtent() $map->setSize() $map->setRotation() (the sequence matters) causes an error at the line that calls setRotation(). Fatal Error: [MapServer Error]: msCalculateScale(): Invalid image width or height However, if I use the following sequence $map->setSize() $map->setExtent() $map->setRotation() it seems to work. I've prepared a small example that demonstrates this behaviour. Here's the download link: http://terra.newstrekker.com/setrotation.zip Note that the EXTENT and the SIZE are not set in the mapfile itself. MFG Stefan Schmidhammer
Note:
See TracTickets
for help on using tickets.