Restricting map draws WMS
Travis Kirstine GIS Tech
tkirstine at JDBARNES.COM
Thu Jun 1 06:09:10 PDT 2006
Steve,
I've attached a portion of a mapfile with the min/max scale definitions in
the layer definitions. I've done some looking through ESRI technical
articles and found some issues on their end:
http://support.esri.com/index.cfm?fa=knowledgebase.techArticles.articleShow&
d=27956
http://support.esri.com/index.cfm?fa=knowledgebase.techArticles.articleShow&
d=27954
Do I have to accept this as another fact of life or is there anything I
could do about it?
MAP
NAME "FirstBaseSolutions_wms"
STATUS OFF
SIZE 490 440
UNITS METERS
EXTENT 514539 4734925 825054 4994985
SHAPEPATH /var/www/data/umap_vector_data/
FONTSET "/var/www/html/umap_www/map_symbols/fonts.txt"
SYMBOLSET "/var/www/html/umap_www/map_symbols/symbols.sym"
IMAGECOLOR 255 255 255
IMAGETYPE png
WEB
IMAGEPATH "/var/www/html/wms/map_images/"
IMAGEURL "http://www.firstbasesolutions.com/wms/map_images/"
METADATA
"wms_title" "FirstBaseSolutions_wms"
#"wms_accessconstraints" "none"
"wms_onlineresource" "http://www.site.com/cgi-bin/name_of_service?"
"wms_srs" "EPSG:26917"
END
END
PROJECTION
"init=epsg:26917"
END
OUTPUTFORMAT
NAME png
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE RGB
EXTENSION "png"
END
# raster layers
#<<<<<<<<<<<< FBS 6km Tiles >>>>>>>>>>>>>
LAYER
NAME ortho_6km_tiles
METADATA
"wms_title" "ortho_6km_tiles"
"wms_extent" "551000 4744000 796000 4983000"
END
PROJECTION
"init=epsg:26917"
END
STATUS OFF
MINSCALE 0
MAXSCALE 50000
TYPE RASTER
TILEINDEX "/var/public/esri_wms_data/fbs_6km_tiles_2002"
TILEITEM "location"
#GROUP Orthophoto
END
#<<<<<<<<<<<<< FBS 1km Tiles >>>>>>>>>>>>
LAYER
NAME ortho_1km_tiles
METADATA
"wms_title" "ortho_1km_tiles"
"wms_extent" "551000 4744000 796000 4983000"
END
PROJECTION
"init=epsg:26917"
END
STATUS OFF
MINSCALE 0
MAXSCALE 3500
TYPE RASTER
TILEINDEX "/var/public/esri_wms_data/fbs_1km_tiles_2002"
TILEITEM "location"
#GROUP Orthophoto
END
Travis Kirstine
-----Original Message-----
From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us]
Sent: Wednesday, May 31, 2006 6:09 PM
To: tkirstine at JDBARNES.COM; MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Restricting map draws WMS
Travis: Did you try setting MINSCALE/MAXSCALE for each layer? The underlying
drawing code will respect (or at least I think it does) those values
regardless of the what the client asks for.
Steve
>>> Travis Kirstine GIS Tech <tkirstine at JDBARNES.COM> 05/31/06 12:06 PM >>>
Hi All,
Is there a easy way to control minscale/maxscale draws server side for a
wms? We are testing a wms that serves out high res. ortho for a large area
(30,000km2). We were hoping that we could control the draw with the
minscale maxcale options in the layer definition in the server side mapfile.
However, when testing the wms using ArcGIS 8.3, ArcGIS 9.1, uDig and
ArcExplorer Web we are finding that the minscale maxscale are not
consistently recognized on the client side, and if the minscale/maxscale
definitions are omitted the draw times are extreme.
Any ideas would be great.
Travis
More information about the MapServer-users
mailing list