[gdal-dev] Getting an WMS without XML file.

Roger André randre at gmail.com
Tue Apr 27 12:44:02 EDT 2010


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
<manolopm at 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100427/ac6b9bb9/attachment-0001.html


More information about the gdal-dev mailing list