[Gdal-dev] WMS with C# Bindings

Christopher Schmidt crschmidt at metacarta.com
Thu Dec 6 10:43:14 EST 2007


On Thu, Dec 06, 2007 at 07:08:42AM -0800, GrinderDev wrote:
> 
> Could someone point me in the right direction for using the C# bindings with
> the new WMS format?  I've created a XML file, actually I'm using the example
> files, but I'm not sure what file name extension to use.
> 
> The problem occurs with the following:
> _GdalDataset = Gdal.Open(_Filename, Access.GA_ReadOnly);
> 
> _Filename - The XML file.  I've used different file extensions, including
> XML & WMS
> 
> I suspect I may be going about this in the wrong direction.

The filename shouldn't matter. The thing that matters is that the first
characters in the file are:

<GDAL_WMS>

That is, there must be no XML prolog or anything else before that.

Also, are you sure your GDAL library supports WMS requests? 

crschmidt at hypercube:~/gdal$ ./apps/gdalinfo --formats | grep WMS
  WMS (ro): OGC Web Map Service
 
Regards,
-- 
Christopher Schmidt
MetaCarta


More information about the gdal-dev mailing list