[Mapserver-users] Terra Server WMS

Ed McNierney ed at topozone.com
Wed Jun 18 12:51:48 PDT 2003


Aaron -

Do you still get a blank map when you ask for an image near the center
of either zone?  You'll still need to use the OFFSITE parameter
technique I mentioned earlier to get the zones to overlap properly.

	- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
Phone: (978) 251-4242  Fax: (978) 251-1396
ed at topozone.com


-----Original Message-----
From: Aaron D. Hunt [mailto:hunt at zedxinc.com] 
Sent: Wednesday, June 18, 2003 2:51 PM
To: mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] Terra Server WMS

I have tried the group and extent and when I have more then one utm zone
in
the map file I get a blank map. My map file is below, is there something
I
am doing wrong.

#
# Start of map file
#

NAME test
STATUS ON
SIZE 500 500
EXTENT -77.89 40.77 -77.83 40.81
UNITS DD
SHAPEPATH "./"
IMAGECOLOR 235 235 235
INTERLACE ON

# Start of web interface definition
 WEB
  TEMPLATE demo.html
  IMAGEPATH "/home/wcs/html/dy_images/"
  IMAGEURL "/dy_images/"
 END


 PROJECTION
  "proj=longlat"
  "ellps=WGS84"
  "unit=dd"
 END



 OUTPUTFORMAT
   NAME png
   DRIVER "GD/PNG"
   MIMETYPE "image/png"
   IMAGEMODE RGB
   EXTENSION "png"
 END



 LAYER
   NAME "INC"
   PROJECTION
  "proj=longlat"
  "ellps=WGS84"
  "unit=dd"
   END
   STATUS OFF
   DATA "/home/wcs/html/data/earth.tif"
   TYPE RASTER
 END


 LAYER
    NAME ortho-18
    METADATA
      "wms_title" "USGS Digital Ortho-Quadrangles"
      "wms_srs"   "EPSG:26918" #NAD83 UTM zone 18N
      "wms_extent" "-78 0 -72 90"
      LYRNAME "DOQs (orthophotos)"
      LINK
"http://terraserver.microsoft.com/about.aspx?n=AboutTerraServiceOverview
"
    END
    GROUP "ORTHO DATA"
    STATUS DEFAULT
    TYPE RASTER
    MINSCALE 1500
    MAXSCALE 80000
    CONNECTIONTYPE WMS
    CONNECTION
"http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=DO
Q&FO
RMAT=png&styles="
    PROJECTION
      "init=epsg:26918" #NAD83 UTM zone 18N
    END
 END

 LAYER
    NAME ortho-17
    METADATA
      "wms_title" "USGS Digital Ortho-Quadrangles"
      "wms_srs"   "EPSG:26917" #NAD83 UTM zone 17N
      "wms_extent" "-84 0 -78 90"
      LYRNAME "DOQs (orthophotos)"
      LINK
"http://terraserver.microsoft.com/about.aspx?n=AboutTerraServiceOverview
"
    END
    GROUP "ORTHO DATA"
    STATUS DEFAULT
    TYPE RASTER
    MINSCALE 1500
    MAXSCALE 80000
    CONNECTIONTYPE WMS
    CONNECTION
"http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=DO
Q&FO
RMAT=png&styles="
    PROJECTION
      "init=epsg:26917" #NAD83 UTM zone 17N
    END
 END
END


----- Original Message ----- 
From: "Paul Ramsey" <pramsey at refractions.net>
To: "Erich Schroeder" <erich at museum.state.il.us>
Cc: "Dylan Keon" <keon at nacse.org>; <mapserver-users at lists.gis.umn.edu>
Sent: Tuesday, June 17, 2003 12:20 PM
Subject: Re: [Mapserver-users] Terra Server WMS


> Yep, declare them as separate layers with different zones, but give
them
> the same GROUP for handy toggling. Also make sure you include the
extent
> information in the  wms metadata, so mapserver knows to ignore layers
> outside of its current view extent.
>
> P.
>
> Erich Schroeder wrote:
> > On Tue, 17 Jun 2003, Dylan Keon wrote:
> >
> >>   PROJECTION
> >>     "init=epsg:26910" #NAD83 UTM zone 10N
> >>   END
> >
> > This is great! I'll be saving this message for future use!
> >
> > In my case, I would be spanning two utm zones. How would I handle
this?
> > Should there be two doq layers, one for each zone, and then the html
form
> > turns both on when the user asks for DOQs?
> >
> > Erich
> >
>
>
> -- 
>        __
>       /
>       | Paul Ramsey
>       | Refractions Research
>       | Email: pramsey at refractions.net
>       | Phone: (250) 885-0632
>       \_
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list