For the raster image you can build pyramid with gdaladdo, it&#39;s really useful to increase performances<br><br><br><br><div class="gmail_quote">2011/3/16 Frank Warmerdam <span dir="ltr">&lt;<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Tue, Mar 15, 2011 at 5:03 PM, Vince Miller &lt;<a href="mailto:vincentpmiller@yahoo.com">vincentpmiller@yahoo.com</a>&gt; wrote:<br>

&gt; 1. The following two lines of PHP from my application transform an php image object into a raster map layer:<br>
&gt;<br>
&gt; imagepng($rmap, __MAPS_PATH__ . &quot;resource.png&quot;);<br>
&gt; $map-&gt;getLayerByName(&quot;resource&quot;)-&gt;set(&quot;data&quot;, __MAPS_PATH__ . &quot;resource.png&quot;);<br>
&gt;<br>
&gt; The imagepng call is a major bottleneck when the extent of the layer is large.<br>
&gt; Can the data in image &quot;$rmap&quot; be accessed for layer &quot;resource&quot; directly, without the file write/read? If so, how? FYI, the following lines appear in my mapfile:<br>
<br>
<br>
</div>Vince,<br>
<br>
There are no mechanisms to utilize a PHP image object as the<br>
data in a mapserver raster layer without first writing to disk.  I<br>
gather PHP image resources are actually a handle to a gdImage<br>
object, so if you needed it badly enough it should be possible to<br>
write a PHP function that turn that gdImage into something that<br>
was accessable to GDAL as a raster but that would be quite<br>
involved and not something likely to go back into the core<br>
distribution.<br>
<br>
Best regards,<br>
<br>
<br>
<br>
--<br>
---------------------------------------+--------------------------------------<br>
I set the clouds in motion - turn up   | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>
and watch the world go round - Rush    | Geospatial Programmer for Rent<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div><br>