[UMN_MAPSERVER-USERS] Group / Scale

Fortin,Nicolas [SteFoy] nicolas.fortin at EC.GC.CA
Thu Jan 12 06:00:11 PST 2006


Hi

I have many layers that act like this, you only have to modify your MINSCALE and MAXSCALE within the group:

For the high res, something like for example
MAXSCALE 500000

For the marble
MINSCALE 500000
MAXSCALE 5000000 # if any

Hope this help
Nicolas

-----Message d'origine-----
De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de James Net
Envoyé : 11 janvier 2006 23:55
À : MAPSERVER-USERS at LISTS.UMN.EDU
Objet : [UMN_MAPSERVER-USERS] Group / Scale


Hello all,

I have a high res raster map of a fixed extent. I want to do the following, 
but don't know how: I want to group my high res raster with JPL bue marble 
so that when I zoom out I see the JPL blue marbe map, but when I zoom into 
my extent I render my high res raster map.

With my mapserver map file, I'm stuck here:

   LAYER
      NAME     "marble"
      TYPE     RASTER
      STATUS   ON
      GROUP    "earth"
      MAXSCALE ???
      MINSCALE ???
      CONNECTION     "http://wms.jpl.nasa.gov/wms.cgi?"
      CONNECTIONTYPE WMS
      METADATA
         "wms_srs"             "EPSG:4326"
         "wms_name"            "BMNG"
         "wms_server_version"  "1.1.1"
         "wms_format"          "image/jpeg"
      END
   END

        LAYER
                NAME    "my_high_res_map"
                DATA    "data/my_mosaic.tif"
                TYPE    RASTER
                STATUS  ON
                GROUP   "earth"
                TRANSPARENCY    ALPHA
                OFFSITE 0 0 0
                MAXSCALE        4000000.0
               MINSCALE        ??? #0.0
                METADATA
                        wms_title       "base_map"
                        wms_srs         "EPSG:4326"
                END
        END

Any help would be great, I've been at it all day without luck!


Many thanks,

James

_________________________________________________________________
ASUS M5 Ultra-slim lightweight is Now $1999 (was $2,999)  
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fwww%2Easus%2Ecom%2Eau%2F&_t=752129232&_r=Hotmail_tagline_23Nov05&_m=EXT



More information about the MapServer-users mailing list