[mapserver-users] two mapserver speed-optimization questions

Mohamed Saâd HESSANE saad.hessane at gmail.com
Wed Mar 16 08:11:11 EDT 2011


For the raster image you can build pyramid with gdaladdo, it's really useful
to increase performances



2011/3/16 Frank Warmerdam <warmerdam at pobox.com>

> On Tue, Mar 15, 2011 at 5:03 PM, Vince Miller <vincentpmiller at yahoo.com>
> wrote:
> > 1. The following two lines of PHP from my application transform an php
> image object into a raster map layer:
> >
> > imagepng($rmap, __MAPS_PATH__ . "resource.png");
> > $map->getLayerByName("resource")->set("data", __MAPS_PATH__ .
> "resource.png");
> >
> > The imagepng call is a major bottleneck when the extent of the layer is
> large.
> > Can the data in image "$rmap" be accessed for layer "resource" directly,
> without the file write/read? If so, how? FYI, the following lines appear in
> my mapfile:
>
>
> Vince,
>
> There are no mechanisms to utilize a PHP image object as the
> data in a mapserver raster layer without first writing to disk.  I
> gather PHP image resources are actually a handle to a gdImage
> object, so if you needed it badly enough it should be possible to
> write a PHP function that turn that gdImage into something that
> was accessable to GDAL as a raster but that would be quite
> involved and not something likely to go back into the core
> distribution.
>
> Best regards,
>
>
>
> --
>
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush    | Geospatial Programmer for Rent
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110316/aaa5f902/attachment-0001.html


More information about the mapserver-users mailing list