[TCMUG] Using GDAL to make WMS footprints

Dickerson, Jim (MNIT) jim.dickerson at state.mn.us
Thu Feb 27 15:50:01 PST 2014


Thanks Jim,
I'm using GDAL 1.7.0 from FWTools and pasting your URL still gives an error.  I'll upgrade and see if that helps.

Jim Dickerson
MNGeo
651-201-2484

From: Jim Klassen [mailto:klassen.js at gmail.com]
Sent: Thursday, February 27, 2014 5:39 PM
To: Dickerson, Jim (MNIT); Tcmug at lists.osgeo.org
Subject: Re: [TCMUG] Using GDAL to make WMS footprints

Ok, scratch that.  I had remembered that server was particularly strict w.r.t case, but the command is working as is for me:

$ gdalinfo --version
GDAL 1.9.0, released 2011/12/29

$ gdalinfo "WMS:http://geoint.lmic.state.mn.us/cgi-bin/wms?request=GetMap&version=1.1.1&layers=metro&TRANSPARENT=TRUE&SRS=EPSG:26915&BBOX=475400,4969100,518800,4991000&width=1200&height=800d&format=image/jpeg"
Driver: WMS/OGC Web Map Service
Files: none associated
Size is 1073741824, 541065216
Coordinate System is:
PROJCS["NAD83 / UTM zone 15N",
    GEOGCS["NAD83",
        DATUM["North_American_Datum_1983",
            SPHEROID["GRS 1980",6378137,298.257222101,
                AUTHORITY["EPSG","7019"]],
            TOWGS84[0,0,0,0,0,0,0],
            AUTHORITY["EPSG","6269"]],
        PRIMEM["Greenwich",0,
            AUTHORITY["EPSG","8901"]],
        UNIT["degree",0.0174532925199433,
            AUTHORITY["EPSG","9122"]],
        AUTHORITY["EPSG","4269"]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",-93],
    PARAMETER["scale_factor",0.9996],
    PARAMETER["false_easting",500000],
    PARAMETER["false_northing",0],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    AXIS["Easting",EAST],
    AXIS["Northing",NORTH],
    AUTHORITY["EPSG","26915"]]
Origin = (475400.000000000000000,4991000.000000000000000)
Pixel Size = (0.000040419399738,-0.000040475712266)
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (  475400.000, 4991000.000) ( 93d18'45.05"W, 45d 4'19.32"N)
Lower Left  (  475400.000, 4969100.000) ( 93d18'41.20"W, 44d52'29.62"N)
Upper Right (  518800.000, 4991000.000) ( 92d45'40.20"W, 45d 4'19.96"N)
Lower Right (  518800.000, 4969100.000) ( 92d45'43.14"W, 44d52'30.25"N)
Center      (  497100.000, 4980050.000) ( 93d 2'12.40"W, 44d58'25.99"N)
Band 1 Block=1024x1024 Type=Byte, ColorInterp=Red
  Overviews: 536870912x270532608, 268435456x135266304, 134217728x67633152, 67108864x33816576, 33554432x16908288, 16777216x8454144, 8388608x4227072, 4194304x2113536, 2097152x1056768, 1048576x528384, 524288x264192, 262144x132096, 131072x66048, 65536x33024, 32768x16512, 16384x8256, 8192x4128, 4096x2064, 2048x1032, 1024x516
  Mask Flags: PER_DATASET ALPHA
  Overviews of mask band: 536870912x270532608, 268435456x135266304, 134217728x67633152, 67108864x33816576, 33554432x16908288, 16777216x8454144, 8388608x4227072, 4194304x2113536, 2097152x1056768, 1048576x528384, 524288x264192, 262144x132096, 131072x66048, 65536x33024, 32768x16512, 16384x8256, 8192x4128, 4096x2064, 2048x1032, 1024x516
Band 2 Block=1024x1024 Type=Byte, ColorInterp=Green
  Overviews: 536870912x270532608, 268435456x135266304, 134217728x67633152, 67108864x33816576, 33554432x16908288, 16777216x8454144, 8388608x4227072, 4194304x2113536, 2097152x1056768, 1048576x528384, 524288x264192, 262144x132096, 131072x66048, 65536x33024, 32768x16512, 16384x8256, 8192x4128, 4096x2064, 2048x1032, 1024x516
  Mask Flags: PER_DATASET ALPHA
  Overviews of mask band: 536870912x270532608, 268435456x135266304, 134217728x67633152, 67108864x33816576, 33554432x16908288, 16777216x8454144, 8388608x4227072, 4194304x2113536, 2097152x1056768, 1048576x528384, 524288x264192, 262144x132096, 131072x66048, 65536x33024, 32768x16512, 16384x8256, 8192x4128, 4096x2064, 2048x1032, 1024x516
Band 3 Block=1024x1024 Type=Byte, ColorInterp=Blue
  Overviews: 536870912x270532608, 268435456x135266304, 134217728x67633152, 67108864x33816576, 33554432x16908288, 16777216x8454144, 8388608x4227072, 4194304x2113536, 2097152x1056768, 1048576x528384, 524288x264192, 262144x132096, 131072x66048, 65536x33024, 32768x16512, 16384x8256, 8192x4128, 4096x2064, 2048x1032, 1024x516
  Mask Flags: PER_DATASET ALPHA
  Overviews of mask band: 536870912x270532608, 268435456x135266304, 134217728x67633152, 67108864x33816576, 33554432x16908288, 16777216x8454144, 8388608x4227072, 4194304x2113536, 2097152x1056768, 1048576x528384, 524288x264192, 262144x132096, 131072x66048, 65536x33024, 32768x16512, 16384x8256, 8192x4128, 4096x2064, 2048x1032, 1024x516
Band 4 Block=1024x1024 Type=Byte, ColorInterp=Alpha
  Overviews: 536870912x270532608, 268435456x135266304, 134217728x67633152, 67108864x33816576, 33554432x16908288, 16777216x8454144, 8388608x4227072, 4194304x2113536, 2097152x1056768, 1048576x528384, 524288x264192, 262144x132096, 131072x66048, 65536x33024, 32768x16512, 16384x8256, 8192x4128, 4096x2064, 2048x1032, 1024x516

On 02/27/2014 04:59 PM, Dickerson, Jim (MNIT) wrote:
I don't have much experience with GDAL but I found a forum message that shows how to use it to make geotiffs from WMS calls.  Here's the link:
http://lists.osgeo.org/pipermail/gdal-dev/2013-April/035951.html  .  I want to use this to make footprint files of the WMS images.

I tried the suggested approach and got errors.  Here's my command line:

gdalinfo "WMS:http://geoint.lmic.state.mn.us/cgi-bin/wms?request=GetMap&version=1.1.1&layers=metro&TRANSPARENT=TRUE&SRS=EPSG:26915&BBOX=475400,4969100,518800,4991000&width=1200&height=800d&format=image/jpeg"

The error is:
ERROR 4: `'WMS:http://geoint.lmic.state.mn.us/cgi-bin/wms?request=GetMap' does not exist in the file system,
and is not recognised as a supported dataset name.

Can anyone suggest why this doesn't work?
Thanks,
Jim

Jim Dickerson  |  Minnesota geospatial information office
GIS services coordinator
MN.IT Services, Central
651-201-2484 (w)  |   612-555-1090 (f) |  Jim.Dickerson at state.mn.us<mailto:Jim.Dickerson at state.mn.us>

[cid:image001.jpg at 01CF33E4.05CE9B20]<http://www.mn.gov/oet>

Information Technology for Minnesota Government   |   mn.gov/mnit<http://www.mn.gov/oet>











_______________________________________________

Tcmug mailing list

Tcmug at lists.osgeo.org<mailto:Tcmug at lists.osgeo.org>

http://lists.osgeo.org/mailman/listinfo/tcmug

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/tcmug/attachments/20140227/f484b915/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 1600 bytes
Desc: image001.jpg
URL: <http://lists.osgeo.org/pipermail/tcmug/attachments/20140227/f484b915/attachment.jpg>


More information about the Tcmug mailing list