[mapserver-users] msIO_getStdoutBufferBytes(), gdBuffer in mapscript perl

Felipe Alcacibar falcacibar at gmail.com
Tue Jun 9 03:25:06 PDT 2009


i found this thread in my mail, and i have solutioned this, i made a
patch.here is the url:

http://counter.tryer.cl/mapserver/mapserver_mapscript_perl_gdbuffer_bytes.patch

On Fri, Apr 10, 2009 at 9:41 AM, Daniel
Morissette<dmorissette at mapgears.com> wrote:
> Just a guess since I'm not very familiar with the Perl SWIG stuff, but maybe
> the patch from this ticket could help?
>  http://trac.osgeo.org/mapserver/ticket/2962
> If I'm not mistaken it solves a similar problem with the imageObj.getBytes
> return value, and I presume the problem you encountered needs a similar
> solution.
>
> Daniel
>
>
> Felipe Alcacibar wrote:
>>
>> Hi, i'm trying to implement a wms server with a perl api of mapscript
>> but i cannot understand how msIO_getStdoutBufferBytes() work
>> in the docs msIO_getStdoutBufferBytes() function return the binary
>> content of the current output but i cannot see that, when i dump with
>> Data::Dump::Streamer i got:
>>
>> -> $_p_gdBuffer1 = bless( \do { my $v = 152646680 }, '_p_gdBuffer' );
>>
>>
>> I go to read the sources of the mapscript perl implementation and i
>> found a struct with properties data and size, but i cannot get that i
>> got that when i try to dump data.
>>
>> -> Can't locate object method "data" via package "_p_gdBuffer" at
>> /home/counter/mscacherd/maptest.pl line 36.
>>
>>
>> How it works in perl, how i can get the data from the gdBuffer perl class?
>>
>>
>> Thanks in advice.
>> Greetings
>>
>>
>> Felipe
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> --
> Daniel Morissette
> http://www.mapgears.com/
>



More information about the MapServer-users mailing list