Opened 20 years ago

Closed 20 years ago

#772 closed defect (fixed)

imageobj saveimage method to take mapobject as argument.

Reported by: assefa Owned by: mapserverbugs
Priority: high Milestone: 4.4 release
Component: MapScript-PHP Version: 4.3
Severity: normal Keywords:
Cc: mapserver@…

Description

Original message from Don Drake <dondrake@gmail.com>

I was wondering if there are any plans to update the PHP/Mapscript
libraries to get them more in sync with the Perl/Python versions.

I was trying to generate GeoTiffs with PHP/Mapscript and ran into some
troubles.  It would generate the .tiff file just fine, but there was
no geo-information embedded when inspecting with gdalinfo.

I tracked the problem down to the imageObj not taking a map reference
as a parameter when saving.  The Perl module does, and uses the
projection information of the map as a data source for the GeoTifff's
reference points and datum.

I was able to convert my PHP code to Perl/Mapscript to get this to
work, but would really like a single-code base (language) for my
project.


Please also see  Bug 549

Change History (3)

comment:1 by dmorissette, 20 years ago

Milestone: 4.4 release

comment:2 by mapserver@…, 20 years ago

Cc: mapserver@… added

comment:3 by assefa, 20 years ago

Resolution: fixed
Status: newclosed
function saveimage can now take a map object as a second non manadtory argument.

Ex :  $img->saveImage("c:/msapps/gmap/htdocs/ttt2.tif", $oMap);
Note: See TracTickets for help on using tickets.