Doe this not work for you? $ python >>> from osgeo import gdal >>> image = gdal.Open(' 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 ') >>> image.RasterXSize 800 >>> image.RasterYSize 800
Roger -- On Tue, Apr 6, 2010 at 1:33 AM, Manolo Padron Martinez <manol...@gmail.com>wrote: > Hi: > > I'm trying to use gdal to get images from a WMS server, I got a simple > code to do it (using GDALOpen and RasterIO methods). But I need to > make the petition without create previously a XML file, I've been > looking into documentation but I didn't find a way to do it. Anyone > knows how to do it? > > Regards from Canary Islands > > Manolo Padron Martinez > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev >
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev