[UMN_MAPSERVER-USERS] Group / Scale
Fortin,Nicolas [SteFoy]
nicolas.fortin at EC.GC.CA
Fri Jan 13 06:40:45 PST 2006
Hi James,
You can't have a both a GROUP and a LAYER with the same name. What's the purpose of the first layer?? Here's an example I have that works well (oraclespatial):
LAYER
GROUP "RIV6P"
NAME "RIV6PFULL_LINE"
TYPE LINE
CONNECTIONTYPE oraclespatial
CONNECTION "****/****@odyssee"
DATA "LINE FROM (SELECT LINE, SHORELINE_ID FROM USR_SHORELINE.V_SHORELINE_6P) USING UNIQUE SHORELINE_ID SRID 82196"
STATUS ON
DUMP TRUE
MAXSCALE 500000
METADATA
"wms_group_title" "Ligne de Rivage du fleuve St-Laurent"
"wms_group_abstract" "blablabla..."
"wms_title" "Ligne de rivage détaillée"
"wms_abstract" "blablabla"
"wms_extent" "198000 4983000 384000 5139000"
"wms_srs" "EPSG:2145"
"wms_metadataurl_href" "http://webservices.qc.ec.gc.ca/map/meta/smc/Rivage_Sim_ALYZES_fr.xml"
"wms_metadataurl_format" "text/xml"
"wms_metadataurl_type" "FGDC"
END
PROJECTION
"init=epsg:2145" #NAD83 MTM Zone8
END
CLASS
NAME "Ligne de rivage détaillé"
COLOR 0 51 255
SYMBOL 'CIRCLE'
SIZE 1
END
END
LAYER
GROUP "RIV6P"
NAME "RIV6PLIGHT_LINE"
TYPE LINE
CONNECTIONTYPE oraclespatial
CONNECTION "****/****@odyssee"
DATA "LINE FROM (SELECT LINE, LINE_ID FROM USR_SHORELINE.V_SHORELINE_L) USING UNIQUE LINE_ID SRID 82196"
STATUS ON
DUMP TRUE
MINSCALE 500000
MAXSCALE 1000000
METADATA
"wms_group_title" "Ligne de Rivage du fleuve St-Laurent"
"wms_group_abstract" "blablabla..."
"wms_title" "Ligne de rivage allégée"
"wms_abstract" "blablabla"
"wms_extent" "198000 4983000 384000 5139000"
"wms_srs" "EPSG:2145"
"wms_metadataurl_href" "http://webservices.qc.ec.gc.ca/map/meta/smc/LigneRivage_allege_2ans.xml"
"wms_metadataurl_format" "text/xml"
"wms_metadataurl_type" "FGDC"
END
PROJECTION
"init=epsg:2145" #NAD83 MTM Zone8
END
CLASS
NAME "Ligne de rivage allégée"
COLOR 0 51 255
SYMBOL 'CIRCLE'
SIZE 1
END
END
Nicolas
-----Message d'origine-----
De : James Net [mailto:james_marsnett at hotmail.com]
Envoyé : 12 janvier 2006 17:25
À : Fortin,Nicolas [SteFoy]; MAPSERVER-USERS at LISTS.UMN.EDU
Objet : RE: RE : [UMN_MAPSERVER-USERS] Group / Scale
Hi Again,
So I tried the following without luck: Any Ideas? Help?
LAYER
NAME "earth"
TYPE RASTER
STATUS ON
METADATA
wms_title "earth"
wms_srs "EPSG:4326"
END
END
LAYER
NAME "marble"
TYPE RASTER
STATUS ON
GROUP "earth"
MINSCALE 4000000.0
CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?"
CONNECTIONTYPE WMS
METADATA
wms_title "marble" # DO I NEED THIS HERE?
"wms_srs" "EPSG:4326"
"wms_name" "BMNG"
"wms_server_version" "1.1.1"
"wms_format" "image/jpeg"
END
END
LAYER
NAME "my_map"
DATA "data/my_map.tif"
TYPE RASTER
STATUS ON
GROUP "earth"
TRANSPARENCY ALPHA
OFFSITE 0 0 0
MAXSCALE 4000000.0
# MINSCALE 100000000.0
METADATA
wms_title "my_map"
wms_srs "EPSG:4326"
wms_abstract "The map"
END
END
Thanks,
James
>From: "Fortin,Nicolas [SteFoy]" <nicolas.fortin at ec.gc.ca>
>To: "James Net"
><james_marsnett at HOTMAIL.COM>,<MAPSERVER-USERS at LISTS.UMN.EDU>
>Subject: RE : [UMN_MAPSERVER-USERS] Group / Scale
>Date: Thu, 12 Jan 2006 09:00:11 -0500
>
>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%2
>F&_t=752129232&_r=Hotmail_tagline_23Nov05&_m=EXT
_________________________________________________________________
Make your dream car a reality
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fcarpoint%2Eninemsn%2Ecom%2Eau&_t=12345&_r=emailtagline&_m=EXT
More information about the MapServer-users
mailing list