[gdal-dev] Re: C# bindings - setting up progress delegate for Gdal.Open()

Maksim Sestic max at geoinova.com
Tue Jan 3 08:20:01 EST 2012

Hm, that's strange. I'm using Gdal.Open() to fetch WMS graphics, for example:

Dim ds As Dataset = Gdal.Open("<GDAL_WMS><Service

...returns requested dataset, which I further save to disk using appropriate
Driver and CreateCopy() method. It works correctly. I hope that above
example does not perform GetCapabilities() at all?

I was thinking about above case, when Gdal.Open(...) actually reads a raster
dataset from WMS. First it creates "grid" of tiles if pixel size is larger
than BlockSizeX/Y. Then it reads tile by tile from server, merging them all
at the end into the final dataset. Downloading each tile would trigger
progress change. Setting BlockSize to i.e. 256x256 pixels (instead of
default 1024x1024) should make it granular enough for progress bars.

Maksim Sestic

View this message in context: http://osgeo-org.1803224.n2.nabble.com/C-bindings-setting-up-progress-delegate-for-Gdal-Open-tp7146342p7146691.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.

More information about the gdal-dev mailing list