[Mapserver-users] Adding a WMS Layer from terraservice.net

Dylan Keon keon at nacse.org
Fri Jun 4 17:18:28 EDT 2004


On 6/4/2004 1:15 PM, Robert Aldridge wrote:

> Matthew,
> 
> Thanks for the reply.  I'm still getting the same
> results (a 600x400, solid white PNG).  Here's my
> updated mapfile:
> 
> [begin mapfile]
> MAP
>   NAME "wms_test"
>   SIZE 600 400
>   STATUS ON
>   EXTENT 430400 3750400 435200 3753600
>   UNITS METERS
>   IMAGETYPE PNG
>   #"init=epsg:26916"
>   LAYER
>     NAME DOQ
>     METADATA
>         "wms_title"             "USGS Digital
> Ortho-Quadrangles"
>         "wms_srs"               "EPSG:26916" #NAD83
> UTM Zone 16N
>         "wms_name"              "DOQ"
>         "wms_layers"            "doq"
>         "wms_server_version"    "1.1.1"
>         "wms_formatlist"       
> "image/png,image/jpeg,image/gif"
>         "wms_format"            "image/png"
>     END
>     OFFSITE 255 255 255
>     STATUS DEFAULT
>     TYPE RASTER
>     CONNECTIONTYPE WMS
>     CONNECTION "http://terraservice.net/ogcmap.ashx?"
>     #DEBUG ON
>   END
> END
> [end mapfile]


This layer definition is currently working for me:

LAYER
   NAME ortho
   METADATA
     "wms_title" "USGS Digital Ortho-Quadrangles"
     "wms_srs"   "EPSG:26910" #NAD83 UTM zone 10N
   END
   GROUP "BASE DATA"
   STATUS OFF
   TYPE RASTER
   MINSCALE 1500
   MAXSCALE 80000
   CONNECTIONTYPE WMS
   CONNECTION 
"http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=DO
Q&FORMAT=jpeg&styles="
   PROJECTION
     "init=epsg:26910" #NAD83 UTM zone 10N
   END
END



More information about the mapserver-users mailing list