[gdal-dev] Compile GDAL With WMS Support (Win32)

Joel Odom joelodom at gmail.com
Thu Dec 18 17:29:24 EST 2008


Frank, thanks (again) for your help.  I'm in business.  I stepped into
the code and found that WMS support was being built in (after I
installed curl and changed the nmake.opt file).  For some reason,
though, WMS doesn't show up on gdalinfo --formats.  The reason my open
was failing was because I had three bytes of white space before my
<GDAL_WMS> tag that were invisible in my text editor.



On Thu, Dec 18, 2008 at 4:20 PM, Frank Warmerdam <warmerdam at pobox.com> wrote:
> Joel Odom wrote:
>>
>> I'm trying to use GDAL to pull down WMS images.  I installed curl and
>> built with it.  (I can see that libcurl.dll is being loaded.)  When I
>> pass in my XML service descriptor file to GDALOpen, I get, "ERROR 4:
>> `C:\Documents and Settings\jo44\Desktop\ogr_data\wms.xml' not
>> recognised as a supported file format."  I ran "gdalinfo --formats"
>> and found that WMS is *not* listed among the supported formats, so I
>> assume that I have left something out of my build.  Does anyone have
>> any hints as to where to go from here?  Thanks!
>
> Joel,
>
> I don't see any obvious problem in building on windows with WMS support
> if you enable curl.  I did discover that the frmts/makefile.vc depends
> on CURL_DIR being defined in the nmake.opt file even though it is otherwise
> just used to define CURL_INCLUDE and CURL_LIB.  For this reason it turned
> out none of the curl based raster formats was actually getting built into
> OSGeo4W (fixed in the OSGeo4W pkg-gdal60 now).
>
> Best regards,
> --
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush    | Geospatial Programmer for Rent
>
>



-- 
http://giscoder.blogspot.com/


More information about the gdal-dev mailing list