file : README.msvc.txt

2011-04-24: Build of libgdal (static) /MT runtime

2011-11-04: Added dependence on CURL for http requests and thus added 
and enabled FRMT_wms // GDALRegister_WMS();
Examples:
gdal_translate -of JPEG -outsize 500 250 onearth_global_mosaic.xml onearth_global_mosaic.jpg 
gdal_translate -of JPEG -projwin -10 55 30 35 -outsize 500 250 onearth_global_mosaic.xml onearth_global_mosaic2.jpg 
The folder C:\Projects\gdal\gdal-1.8\frmts\wms contains
frmt_wms_metacarta_tms.xml
frmt_wms_metacarta_wmsc.xml
frmt_wms_onearth_global_mosaic.xml
frmt_wms_openstreetmap_tms.xml
frmt_wms_tileservice_bmng.xml
frmt_wms_tileservice_nysdop2004.xml
NOTE: Got error - Unable to open EPSG - Need to set the GDAL_DATA environment 
variable to point to the directory containing EPSG csv files, like gcs.csv
BUT oneearth_global_mosaic no longer offers full WMS service, so must choose another...

Try OSM WMS
Full command used for debug
-of JPEG -projwin -1113194.90793274 7361866.11305119 3339584.72379821 4163881.14406429 \
-outsize 500 250 ..\frmts\wms\frmt_wms_openstreetmap_tms.xml temp_osm.png

Note, GDAL creates a 'cache' in 'gdalwmscache' and in repeated runs on fetching a 
specific tile, the image will ONLY be obtained from the CACHE. The file and this 
cache must be deleted to force another server fetch...

The above command caused 3 fetched from OSM -
...10...20...30...40...50...60...70.
HTTP: Requesting [1/3] http://tile.openstreetmap.org/4/7/6.png
HTTP: Requesting [2/3] http://tile.openstreetmap.org/4/8/6.png
HTTP: Requesting [3/3] http://tile.openstreetmap.org/4/9/6.png
And wrote 
04/11/2011  15:37            33,938 temp_osm.png

Trying frmt_wms_metacarta_tms.xml
-of JPEG -projwin -10 55 30 35 -outsize 500 250 \
..\frmts\wms\frmt_wms_metacarta_tms.xml temp_meta.png 
Some log output...
GDAL: GDALOpen(..\frmts\wms\frmt_wms_metacarta_tms.xml, this=0101AF58) succeeds as WMS.
HTTP: Requesting [1/3] http://labs.metacarta.com/wms-c/Basic.py/1.0.0/basic/3/7/6.png
HTTP: Requesting [2/3] http://labs.metacarta.com/wms-c/Basic.py/1.0.0/basic/3/8/6.png
HTTP: Requesting [3/3] http://labs.metacarta.com/wms-c/Basic.py/1.0.0/basic/3/9/6.png
and wrote -
04/11/2011  15:46            21,837 temp_meta.png

NOTE DEBUG: To get debug output, set CPL_DEBUG=ON in the environment - example output
(of course this FAILED, since jpl.nasa.gov no longer offers full WMS services!)
WMS: URL = http://onearth.jpl.nasa.gov/wms.cgi?
request=GetMap&version=1.1.1
&layers=global_mosaic&styles=visual
&srs=EPSG:4326&format=image/jpeg
&width=512&height=512
&bbox=76.00000000,-166.00000000,332.00000000,90.00000000

ALSO, setting CPL_LOG=outfile.txt will write some LOG messages to this 
file... see CPLDefaultErrorHandler in cpl_error.cpp... 

/* test data
..\swig\java\test_data\byte.tif
..\swig\java\test_data\poly.[dbf|shp|shx]
> bin\gdalinfo test_AV_MI.tif

/* 2011 - list of applications */
dumpoverviews.exe
gdal2ogr.exe
gdaladdo.exe
gdalbuildvrt.exe
gdaldem.exe
gdalenhance.exe
gdalflattenmask.exe
gdalinfo.exe
gdallocationinfo.exe
gdalmanage.exe
gdaltindex.exe
gdaltorture.exe
gdaltransform.exe
gdalwarp.exe
gdalwarpsimple.exe
gdal_contour.exe
gdal_grid.exe
gdal_rasterize.exe
gdal_translate.exe
multireadtest.exe
nearblack.exe
ogr2ogr.exe
ogrdissolve.exe
ogrinfo.exe
ogrtindex.exe
testepsg.exe
testreprojmulti.exe
test_ogrsf.exe

/* List of formats
   2011-04-24 - This is the current hand chosen set for Windows,
   but some #undef items need to be checked, to make sure they do
   require thirdparty code... the only reason for their
   exclusion here. Extract from gdalallregsiter.cpp module */

#ifdef _MSC_VER
/* List of formats */
#define FRMT_vrt // GDALRegister_VRT();
#undef FRMT_gdb // GDALRegister_GDB();
#define FRMT_gtiff // GDALRegister_GTiff();
#define FRMT_nitf // GDALRegister_NITF(); GDALRegister_RPFTOC();
#define FRMT_hfa // GDALRegister_HFA();
#define FRMT_ceos2 // GDALRegister_SAR_CEOS();
#define FRMT_ceos // GDALRegister_CEOS();
#define FRMT_jaxapalsar // GDALRegister_PALSARJaxa();
#define FRMT_gff // GDALRegister_GFF();
#define FRMT_elas // GDALRegister_ELAS();
#define FRMT_aigrid // //   GDALRegister_AIGrid2();  GDALRegister_AIGrid();
#define FRMT_aaigrid //  GDALRegister_AAIGrid();
#define FRMT_sdts // GDALRegister_SDTS();
#undef FRMT_ogdi // GDALRegister_OGDI();
#define FRMT_dted // GDALRegister_DTED();
#define FRMT_png // GDALRegister_PNG();
#define FRMT_jpeg // GDALRegister_JPEG();
#define FRMT_mem // GDALRegister_MEM();
#define FRMT_jdem // GDALRegister_JDEM();
#undef FRMT_rasdaman // GDALRegister_RASDAMAN();
#define FRMT_gif // GDALRegister_GIF(); GDALRegister_BIGGIF();
#define FRMT_envisat // GDALRegister_Envisat();
#undef FRMT_fits // GDALRegister_FITS();
#define FRMT_bsb // GDALRegister_BSB();
#define FRMT_xpm // GDALRegister_XPM();
#define FRMT_bmp // GDALRegister_BMP();
#define FRMT_dimap // GDALRegister_DIMAP();
#define FRMT_airsar // GDALRegister_AirSAR();
#define FRMT_rs2 // GDALRegister_RS2();
#define FRMT_pcidsk // GDALRegister_PCIDSK();
#define FRMT_pcraster // GDALRegister_PCRaster();
#define FRMT_ilwis // GDALRegister_ILWIS();
#define FRMT_sgi // GDALRegister_SGI();
#define FRMT_srtmhgt // GDALRegister_SRTMHGT();
#define FRMT_leveller // GDALRegister_Leveller();
#define FRMT_terragen // GDALRegister_Terragen();
#undef FRMT_netcdf // GDALRegister_GMT(); GDALRegister_netCDF();
#undef FRMT_hdf4 // GDALRegister_HDF4(); GDALRegister_HDF4Image();
#define FRMT_pds // GDALRegister_ISIS3(); GDALRegister_ISIS2(); GDALRegister_PDS();
#define FRMT_til // GDALRegister_TIL();
#define FRMT_ers // GDALRegister_ERS();
#undef FRMT_jp2kak // // JPEG2000 support using Kakadu toolkit GDALRegister_JP2KAK();
#undef FRMT_jpipkak // // JPEG2000 support using Kakadu toolkit GDALRegister_JPIPKAK();
#undef FRMT_ecw // GDALRegister_ECW(); GDALRegister_JP2ECW();
#undef FRMT_openjpeg // // JPEG2000 support using OpenJPEG library GDALRegister_JP2OpenJPEG();
#undef FRMT_jpeg2000 // // JPEG2000 support using JasPer toolkit 
// This one should always be placed after other JasPer supported formats,
// such as BMP or PNM. In other case we will get bad side effects. GDALRegister_JPEG2000();
#define FRMT_l1b // GDALRegister_L1B();
#define FRMT_fit // GDALRegister_FIT();
#define FRMT_grib // GDALRegister_GRIB();
#undef FRMT_mrsid // GDALRegister_MrSID();
#undef FRMT_mrsid_lidar // GDALRegister_MG4Lidar();
#define FRMT_rmf // GDALRegister_RMF();
#define FRMT_wcs // GDALRegister_WCS();
#undef FRMT_wms // GDALRegister_WMS();
#undef FRMT_sde // GDALRegister_SDE();
#define FRMT_msgn // GDALRegister_MSGN();
#undef FRMT_msg // GDALRegister_MSG();
#define FRMT_idrisi // GDALRegister_IDRISI();
#define FRMT_ingr // GDALRegister_INGR();
#define FRMT_gsg // GDALRegister_GSAG(); GDALRegister_GSBG(); GDALRegister_GS7BG();
#define FRMT_cosar // GDALRegister_COSAR();
#define FRMT_tsx // GDALRegister_TSX();
#define FRMT_coasp // GDALRegister_COASP();
#undef FRMT_tms // GDALRegister_TMS();
#define FRMT_r // GDALRegister_R();
/* -------------------------------------------------------------------- */
/*      Put raw formats at the end of the list. These drivers support   */
/*      various ASCII-header labeled formats, so the driver could be    */
/*      confused if you have files in some of above formats and such    */
/*      ASCII-header in the same directory.                             */
/* -------------------------------------------------------------------- */
#define FRMT_raw // GDALRegister_PNM(); GDALRegister_DOQ1(); GDALRegister_DOQ2();
// GDALRegister_ENVI(); GDALRegister_EHdr(); GDALRegister_GenBin();
// GDALRegister_PAux(); GDALRegister_MFF(); GDALRegister_HKV();
// GDALRegister_FujiBAS(); GDALRegister_GSC(); GDALRegister_FAST();
// GDALRegister_BT(); GDALRegister_LAN(); GDALRegister_CPG();
// GDALRegister_IDA(); GDALRegister_NDF(); GDALRegister_EIR();
// GDALRegister_DIPEx(); GDALRegister_LCP(); GDALRegister_GTX();
// GDALRegister_LOSLAS(); GDALRegister_NTv2();
/* -------------------------------------------------------------------- */
/*      Our test for the following is weak or expensive so we try       */
/*      them last.                                                      */
/* -------------------------------------------------------------------- */
#define FRMT_rik // GDALRegister_RIK();
#define FRMT_usgsdem // GDALRegister_USGSDEM();
#define FRMT_gxf // GDALRegister_GXF();
#undef FRMT_grass // GDALRegister_GRASS();
#undef FRMT_dods // GDALRegister_DODS();
#define FRMT_wcs // GDALRegister_HTTP();
#undef FRMT_hdf5 // GDALRegister_BAG(); GDALRegister_HDF5(); GDALRegister_HDF5Image();
#define FRMT_northwood // GDALRegister_NWT_GRD(); GDALRegister_NWT_GRC();
#define FRMT_adrg // GDALRegister_ADRG(); GDALRegister_SRP();
#define FRMT_blx // GDALRegister_BLX();
#undef FRMT_pgchip // GDALRegister_PGCHIP();
#undef FRMT_georaster // GDALRegister_GEOR();
#define FRMT_rasterlite // GDALRegister_Rasterlite();
#undef FRMT_epsilon // GDALRegister_EPSILON();
#undef FRMT_postgisraster // GDALRegister_PostGISRaster();
#define FRMT_saga // GDALRegister_SAGA();
#define FRMT_kmlsuperoverlay // GDALRegister_KMLSUPEROVERLAY();
#define FRMT_xyz // GDALRegister_XYZ();
#define FRMT_hf2 // GDALRegister_HF2();
#undef FRMT_pdf // GDALRegister_PDF();
#undef FRMT_jpegls // GDALRegister_JPEGLS();
#define FRMT_ozi // GDALRegister_OZI();
#endif // _MSC_VER

/* 2009 list of applications */
gdaladdo.exe gdalenhance.exe gdalinfo.exe gdalmanage.exe gdaltindex.exe
gdaltransform.exe gdalwarp.exe gdal_contour.exe gdal_grid.exe gdal_rasterize.exe
gdal_translate.exe nearblack.exe ogr2ogr.exe ogrinfo.exe ogrtindex.exe

# eof - README.msvc.txt
