Opened 19 years ago
Last modified 18 years ago
#1371 new enhancement
Perl typemaps for image->write & map->process
Reported by: | Owned by: | sdlime | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | MapScript-SWIG | Version: | 4.6 |
Severity: | minor | Keywords: | |
Cc: |
Description
SWIG typemaps required for the image->write, map->processTemplate, map->processLegendTemplate, & map->processQueryTemplate to work in PerlMapScript. A patch file, currently for 4.4.2, will be attached and then for 4.6.0-beta3 as soon as available.
Attachments (9)
Change History (17)
by , 19 years ago
Attachment: | medina1.patch added |
---|
comment:1 by , 19 years ago
I don't think there will be a 4.4.3 release, but I don't mind applying the patch. For 4.6, we're getting away from imageObj::write() and recommending that modules implement imageObj::getBytes() instead. It's less confusing. Only file-like objects should be writing. The Python and Java mapscripts have getBytes for the version 4.6. You could look at those for examples.
comment:2 by , 19 years ago
I will inform the developer of the name change. The 4.4.2 patch is only intended as a sample until the 4.6 patch is available.
comment:3 by , 19 years ago
I think this method may be best left as 'write' as it is a file-like object.
comment:4 by , 19 years ago
Status: | new → assigned |
---|
I think this is a difference in usage style between Java/Python and Perl. With Python it is more natural to do this print imageObj.getBytes() # send image data to stdout I looked again at the Perl ImageMagick API and that does indeed use something more like imageObj->write(STDOUT); It is fine with me if you want to implement only the write method for Perl. The sooner you can patch against the 4.6 beta 3, the better because I am running out of time to help with this before the conference.
by , 19 years ago
Attachment: | 4.6.1_typemap.patch.gz added |
---|
Patch for 4.6.1 for image->write & map->processXtemplate
comment:5 by , 19 years ago
attachments.isobsolete: | 0 → 1 |
---|
comment:6 by , 18 years ago
Owner: | changed from | to
---|---|
Status: | assigned → new |
reassigning. i'm pretty sure i committed this one.
comment:7 by , 18 years ago
attachments.isobsolete: | 0 → 1 |
---|
comment:8 by , 18 years ago
(From update of attachment 546) swig -perl5 -shadow -outdir . -o mapscript_wrap.c ../mapscript.i
Note:
See TracTickets
for help on using tickets.
4.4.2 typemap patch