Doe this not work for you?<br><br>$ python<br>>>> from osgeo import gdal<br>>>> image = gdal.Open('<a href="http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/gis_layers/gis_layers.map&REQUEST=GetMap&SERVICE=WMS&version=%221.1.122&REQUEST=GetMap&LAYERS=imagery&STYLES=&BBOX=73.617203,18.168884,134.773590,53.554436&WIDTH=800&HEIGHT=800&FORMAT=image/png;%20mode=24bit&SRS=epsg:4326">http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/gis_layers/gis_layers.map&REQUEST=GetMap&SERVICE=WMS&version=%221.1.122&REQUEST=GetMap&LAYERS=imagery&STYLES=&BBOX=73.617203,18.168884,134.773590,53.554436&WIDTH=800&HEIGHT=800&FORMAT=image/png;%20mode=24bit&SRS=epsg:4326</a>')<br>
>>> image.RasterXSize<br>800<br>>>> 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"><<a href="mailto:manolopm@gmail.com">manolopm@gmail.com</a>></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'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've been<br>
looking into documentation but I didn'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>