Re: [gdal-dev] gdal_translate using a wms as input

2013-08-21 Thread Signell, Richard
I too am interested in trying to use gdal_translate with a WMS getmap request, but using the approach suggested does not seem to preserve the geospatial info: rsignell@gam:~$ export GDAL_SKIP=WMS rsignell@gam:~$ gdal_translate -of GTiff -co "TFW=YES" "http://geoport.whoi.edu/ thredds/wms/bathy/g

Re: [gdal-dev] gdal_translate using a wms as input

2013-04-14 Thread Even Rouault
Le dimanche 14 avril 2013 13:17:30, Andrea Peri a écrit : > Even, thx for response > > Perhaps I miss the real mean of the parameter -srcwin. > > I guess that setting -srcwin 0 0 377 283 for a wms image of > ...WIDTH=377&HEIGHT=283&... Ah, I didn't notice those parameters. Well, they will be ign

Re: [gdal-dev] gdal_translate using a wms as input

2013-04-14 Thread Andrea Peri
Even, thx for response Perhaps I miss the real mean of the parameter -srcwin. I guess that setting -srcwin 0 0 377 283 for a wms image of ...WIDTH=377&HEIGHT=283&... mean "take all the image". don't ? Many thx, Andrea. 2013/4/14 Even Rouault > Le dimanche 14 avril 2013 00:33:55, Andrea P

Re: [gdal-dev] gdal_translate using a wms as input

2013-04-13 Thread Even Rouault
Le dimanche 14 avril 2013 00:33:55, Andrea Peri a écrit : > Hi even, > > thx for hints. > > I try it on a linux 64bit and effectively the error was disappeared. > > But the result is a full black (empty ?) image . > The same wms request applied to a browser give a visible image. > > This could

Re: [gdal-dev] gdal_translate using a wms as input

2013-04-13 Thread Andrea Peri
Hi even, thx for hints. I try it on a linux 64bit and effectively the error was disappeared. But the result is a full black (empty ?) image . The same wms request applied to a browser give a visible image. This could be a problem of my pc only ? Thx Andrea. 2013/4/13 Even Rouault > Le sam

Re: [gdal-dev] gdal_translate using a wms as input

2013-04-13 Thread Even Rouault
Le samedi 13 avril 2013 22:27:57, Tyler Mitchell a écrit : > I'm not at my desk right now but I thought adding -outsize x y would do the > trick? No, because -outsize is used to set the dimensions of the in-memory temporary VRT dataset, but this doesn't change how the source raster is managed. __

Re: [gdal-dev] gdal_translate using a wms as input

2013-04-13 Thread Tyler Mitchell
I'm not at my desk right now but I thought adding -outsize x y would do the trick? On 2013-04-13, at 1:21 PM, "Even Rouault" wrote: > Le samedi 13 avril 2013 22:10:07, Andrea Peri a écrit : >> Hi, >> >> I'm try-ing to get a raster from a wms service using gdal_translate >> >> this is the cal

Re: [gdal-dev] gdal_translate using a wms as input

2013-04-13 Thread Even Rouault
Le samedi 13 avril 2013 22:10:07, Andrea Peri a écrit : > Hi, > > I'm try-ing to get a raster from a wms service using gdal_translate > > this is the call I'm doing: > > gdal_translate -of GTiff -co "TFW=Y > ES" -srcwin 0 0 377 283 "WMS: > http://www502.regione.toscana.it/cartografia/wmsras > te

[gdal-dev] gdal_translate using a wms as input

2013-04-13 Thread Andrea Peri
Hi, I'm try-ing to get a raster from a wms service using gdal_translate this is the call I'm doing: gdal_translate -of GTiff -co "TFW=Y ES" -srcwin 0 0 377 283 "WMS: http://www502.regione.toscana.it/cartografia/wmsras ter/com.rt.wms.RTmap/wms?map=wmsofc&language=ita&&SERVICE=WMS&VERSION=1.3.0&RE