[mapserver-users] Scale dependant image tile

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Mon Oct 19 09:06:46 PDT 2009


Hi,

The following should work:

Make one tileindex file per map scale and three scale dependent layers:
Scale_1
tileindex scale_1.shp
...
Scale_2
tileindex scale_1.shp
...
Scale_3
tileindex scale_1.shp
...
Set min/maxscaldenominators.  Collect all three layers under the same GROUP and call GROUP instead of individual layers. Alternatively, call always all the three layers. Because of scale settings only one at a time will be visible.

-Jukka Rahkonen-

bbarrett wrote:

Hello,

I have recently started using mapserver and ran out of ideas with this
problem. 

I have three maps for the same location that I wish to be visible at
different scales (but in the same map layer). Each map comes as 4 or 5 tif
files. I have created a tileindex shapefile for each map using gdaltindex. I
have then created a tileindex shapefile that references each of these using
tile4ms

I had expected the following code to do the trick:

LAYER
	NAME "maps"
	TILEINDEX "D:\path_to_my_files\maps.shp"
	TILEITEM "LOCATION" 
	TYPE RASTER
	STATUS ON
	CLASSITEM "LOCATION"
	CLASS # 1-10000
		EXPRESSION '/1-10000/' # 1:10000 scale map tileindex has 1-10000 in file
path
		MINSCALEDENOM 0
		MAXSCALEDENOM 6000
	END
	CLASS # 1-25000
		EXPRESSION '/1-25000/' # 1:25000 scale map tileindex has 1-10000 in file
path
		MINSCALEDENOM 6000
		MAXSCALEDENOM 20000
	END
	CLASS # 1-50000
		EXPRESSION '/1-50000/' # 1:50000 scale map tileindex has 1-10000 in file
path
		MINSCALEDENOM 20000
	END
END

Can anyone help me to get this scale dependant map that I desire please? 

Thanks

Brian
-- 
View this message in context: http://n2.nabble.com/Scale-dependant-image-tile-tp3849182p3849182.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list