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

Robert Aldridge bamarob55 at yahoo.com
Fri Jun 4 13:15:11 PDT 2004


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]

Thanks,

Robert


--- Matthew Perry <mtperry78 at sbcglobal.net> wrote:
> Robert,
>    I made an error in my first response. It should
> be:
> 
> "wms_layers" "doq"
> 
> instead of "drg". Not sure if this will make a
> difference as I suspect setting the "wms_name" to
> "DOQ" should do the trick. 
> 
> - matt
> 
> --- Robert Aldridge <bamarob55 at yahoo.com> wrote:
> > I'm attempting to show a DOQ from terraservice.net
> > via
> > mapserver.  I've read through the howto's and
> > archives
> > of this list, but to no avail.  It appears to be
> > working, but I just get a blank image.  Could
> > someone
> > post a simple mapfile that displays a DOQ from
> > terraserver, or take a look at my mapfile to see
> if
> > you can identify my problem?
> > 
> > Here's my (simple) mapfile:
> > 
> > #begin mapfile
> > NAME "wms_test"
> > SIZE 600 400
> > STATUS ON
> > EXTENT 430400 3750400 435200 3753600
> > UNITS METERS
> > IMAGETYPE PNG
> > LAYER
> >   NAME ortho
> >   METADATA
> >         "wms_title"             "USGS Digital
> > Ortho-Quadrangles"
> >         "wms_srs"               "EPSG:26916"
> #NAD83
> > UTM Zone 16N
> >         "wms_name"              "ortho"
> >         "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
> > #end mapfile
> > 
> > I'm viewing it by typing the following URL:
> > 
> >
>
http://myserver/cgi-bin/mapserv?map=/var/www/mapping/wms.map&mode=map
> > 
> > It returns a 600x400 PNG image, but it's blank
> (all
> > white).
> > 
> > Thanks,
> > 
> > Robert
> > 
> > 
> > 	
> > 		
> > __________________________________
> > Do you Yahoo!?
> > Friends.  Fun.  Try the all-new Yahoo! Messenger.
> > http://messenger.yahoo.com/ 
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> >
>
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 



More information about the MapServer-users mailing list