[Gdal-dev] WMS with C# Bindings
Tamas Szekeres
szekerest at gmail.com
Fri Dec 7 18:40:20 EST 2007
Your file is working pretty good. The only thing I had to do is to set
the GDAL_DATA environment variable because of the EPSG specification.
You might want to do a test with gdalinfo, here's my command output:
E:\buildbot\osgeo\slaves\szekerest-msvc80-gdal\szekerest-vc80-full\build\gdal\apps>gdalinfo
--formats
Supported Formats:
VRT (rw+): Virtual Raster
GTiff (rw+): GeoTIFF
NITF (rw+): National Imagery Transmission Format
RPFTOC (ro): Raster Product Format TOC format
HFA (rw+): Erdas Imagine Images (.img)
SAR_CEOS (ro): CEOS SAR Image
CEOS (ro): CEOS Image
JAXAPALSAR (ro): JAXA PALSAR Product Reader (Level 1.1/1.5)
GFF (ro): Ground-based SAR Applications Testbed File Format (.gff)
ELAS (rw+): ELAS
AIG (ro): Arc/Info Binary Grid
AAIGrid (rw): Arc/Info ASCII Grid
SDTS (ro): SDTS Raster
DTED (rw): DTED Elevation Raster
PNG (rw): Portable Network Graphics
JPEG (rw): JPEG JFIF
MEM (rw+): In Memory Raster
JDEM (ro): Japanese DEM (.mem)
GIF (rw): Graphics Interchange Format (.gif)
ESAT (ro): Envisat Image Format
BSB (ro): Maptech BSB Nautical Charts
XPM (rw): X11 PixMap Format
BMP (rw+): MS Windows Device Independent Bitmap
DIMAP (ro): SPOT DIMAP
AirSAR (ro): AirSAR Polarimetric Image
RS2 (ro): RadarSat 2 XML Product
PCIDSK (rw+): PCIDSK Database File
PCRaster (rw): PCRaster Raster File
ILWIS (rw+): ILWIS Raster Map
SGI (ro): SGI Image File Format 1.0
SRTMHGT (rw): SRTMHGT File Format
Leveller (rw+): Leveller heightfield
Terragen (rw+): Terragen heightfield
PNM (rw+): Portable Pixmap Format (netpbm)
DOQ1 (ro): USGS DOQ (Old Style)
DOQ2 (ro): USGS DOQ (New Style)
ENVI (rw+): ENVI .hdr Labelled
EHdr (rw+): ESRI .hdr Labelled
GenBin (ro): Generic Binary (.hdr Labelled)
PAux (rw+): PCI .aux Labelled
MFF (rw+): Vexcel MFF Raster
MFF2 (rw+): Vexcel MFF2 (HKV) Raster
FujiBAS (ro): Fuji BAS Scanner Image
GSC (ro): GSC Geogrid
FAST (ro): EOSAT FAST Format
BT (rw+): VTP .bt (Binary Terrain) 1.3 Format
LAN (ro): Erdas .LAN/.GIS
CPG (ro): Convair PolGASP
IDA (rw+): Image Data and Analysis
NDF (ro): NLAPS Data Format
DIPEx (ro): DIPEx
ISIS3 (ro): USGS Astrogeology ISIS cube (Version 3)
ISIS2 (ro): USGS Astrogeology ISIS cube (Version 2)
PDS (ro): NASA Planetary Data System
ERS (rw+): ERMapper .ers Labelled
L1B (ro): NOAA Polar Orbiter Level 1b Data Set
FIT (rw): FIT Image
RMF (rw+): Raster Matrix Format
WCS (ro): OGC Web Coverage Service
WMS (ro): OGC Web Map Service
MSGN (ro): EUMETSAT Archive native (.nat)
RST (rw+): Idrisi Raster A.1
INGR (rw+): Intergraph Raster
GSAG (rw+): Golden Software ASCII Grid (.grd)
GSBG (rw+): Golden Software Binary Grid (.grd)
GS7BG (ro): Golden Software 7 Binary Grid (.grd)
COSAR (ro): COSAR Annotated Binary Matrix (TerraSAR-X)
TSX (ro): TerraSAR-X Product
COASP (ro): DRDC COASP SAR Processor Raster
RIK (ro): Swedish Grid RIK (.rik)
USGSDEM (rw): USGS Optional ASCII DEM (and CDED)
GXF (ro): GeoSoft Grid Exchange Format
HTTP (ro): HTTP Fetching Wrapper
ADRG (rw+): ARC Digitized Raster Graphics
E:\buildbot\osgeo\slaves\szekerest-msvc80-gdal\szekerest-vc80-full\build\gdal\apps>gdalinfo
GDAL_WMS.txt
ERROR 4: Unable to open EPSG support file gcs.csv.
Try setting the GDAL_DATA environment variable to point to the
directory containing EPSG csv files.
ERROR 1: GDALWMS: Bad projection specified.
gdalinfo failed - unable to open 'GDAL_WMS.txt'.
E:\buildbot\osgeo\slaves\szekerest-msvc80-gdal\szekerest-vc80-full\build\gdal\apps>set
GDAL_DATA=E:/buildbot/osgeo/slaves/szekerest-msvc80-gdal/szekerest-vc80-f
ull/build/gdal/data
E:\buildbot\osgeo\slaves\szekerest-msvc80-gdal\szekerest-vc80-full\build\gdal\ap
ps>
E:\buildbot\osgeo\slaves\szekerest-msvc80-gdal\szekerest-vc80-full\build\gdal\ap
ps>gdalinfo GDAL_WMS.txt
Driver: WMS/OGC Web Map Service
Files: GDAL_WMS.txt
Size is 2666666, 1333333
Coordinate System is:
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.01745329251994328,
AUTHORITY["EPSG","9122"]],
AUTHORITY["EPSG","4326"]]
Origin = (-180.000000000000000,90.000000000000000)
Pixel Size = (0.000135000033750,-0.000135000033750)
Corner Coordinates:
Upper Left (-180.0000000, 90.0000000) (180d 0'0.00"W, 90d 0'0.00"N)
Lower Left (-180.0000000, -90.0000000) (180d 0'0.00"W, 90d 0'0.00"S)
Upper Right ( 180.0000000, 90.0000000) (180d 0'0.00"E, 90d 0'0.00"N)
Lower Right ( 180.0000000, -90.0000000) (180d 0'0.00"E, 90d 0'0.00"S)
Center ( 0.0000000, 0.0000000) ( 0d 0'0.01"E, 0d 0'0.01"N)
Band 1 Block=1024x1024 Type=Byte, ColorInterp=Undefined
Overviews: 1333333x666667, 666667x333333, 333333x166667, 166667x83333, 83333x4
1667, 41667x20833, 20833x10417, 10417x5208, 5208x2604, 2604x1302, 1302x651
Band 2 Block=1024x1024 Type=Byte, ColorInterp=Undefined
Overviews: 1333333x666667, 666667x333333, 333333x166667, 166667x83333, 83333x4
1667, 41667x20833, 20833x10417, 10417x5208, 5208x2604, 2604x1302, 1302x651
Band 3 Block=1024x1024 Type=Byte, ColorInterp=Undefined
Overviews: 1333333x666667, 666667x333333, 333333x166667, 166667x83333, 83333x4
1667, 41667x20833, 20833x10417, 10417x5208, 5208x2604, 2604x1302, 1302x651
E:\buildbot\osgeo\slaves\szekerest-msvc80-gdal\szekerest-vc80-full\build\gdal\apps>
Best regards,
Tamas
2007/12/7, GrinderDev <grinderprogrammer at gmail.com>:
>
>
> Adam Nowacki wrote:
> >
> > You sure you're just not missing a 't' there? If not attach your xml
> > config file.
>
> The missing 't' was just a typing error. Any other suggestions on getting
> this to work with C#?
> --
> View this message in context: http://www.nabble.com/WMS-with-C--Bindings-tf4956367.html#a14214457
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
More information about the gdal-dev
mailing list