Doe this not work for you?<br><br>$ python<br>&gt;&gt;&gt; from osgeo import gdal<br>&gt;&gt;&gt; image = gdal.Open(&#39;<a href="http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/gis_layers/gis_layers.map&amp;REQUEST=GetMap&amp;SERVICE=WMS&amp;version=%221.1.122&amp;REQUEST=GetMap&amp;LAYERS=imagery&amp;STYLES=&amp;BBOX=73.617203,18.168884,134.773590,53.554436&amp;WIDTH=800&amp;HEIGHT=800&amp;FORMAT=image/png;%20mode=24bit&amp;SRS=epsg:4326">http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/gis_layers/gis_layers.map&amp;REQUEST=GetMap&amp;SERVICE=WMS&amp;version=%221.1.122&amp;REQUEST=GetMap&amp;LAYERS=imagery&amp;STYLES=&amp;BBOX=73.617203,18.168884,134.773590,53.554436&amp;WIDTH=800&amp;HEIGHT=800&amp;FORMAT=image/png;%20mode=24bit&amp;SRS=epsg:4326</a>&#39;)<br>
&gt;&gt;&gt; image.RasterXSize<br>800<br>&gt;&gt;&gt; image.RasterYSize<br>800<br><br>Roger<br>--<br><br><br><br><div class="gmail_quote">On Tue, Apr 6, 2010 at 1:33 AM, Manolo Padron Martinez <span dir="ltr">&lt;<a href="mailto:manolopm@gmail.com">manolopm@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi:<br>
<br>
I&#39;m trying to use gdal to get images from a WMS server, I got a simple<br>
code to do it (using GDALOpen and RasterIO methods). But I need to<br>
make the petition without create previously a XML file, I&#39;ve been<br>
looking into documentation but I didn&#39;t find a way to do it. Anyone<br>
knows how to do it?<br>
<br>
Regards from Canary Islands<br>
<font color="#888888"><br>
Manolo Padron Martinez<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</font></blockquote></div><br>