[mapserver-users] EXTENT in LAYER definition not clipping
Rahkonen Jukka
Jukka.Rahkonen at mmmtike.fi
Sat Oct 15 07:46:49 PDT 2011
Hi,
Mapserver does not support what you want. Setting EXTENT on layer level is pushing it directly into layer bounding box in the GetCapabilities document without checking it from data. It can make GetCapabilites to work fastes. However, you can zoom around those extents. MAP level ectents do not prevent showing data outside that area either. There are some clients which are interpreting the extents so that they do not send GetMaps if BBOX is outside that area. Kosmo GIS is one example that behaved that way. It can be unwanted solution too because not all WMS servers are configured correctly.
Some alternatives:
- Cut your image to the extents you want.
- Make a huge polygon with a hole where you want to publish the raster image and make the polygon layer to render always on top or your raster image.
- Study PostGIS rasters, maybe you could create a view into the database that reads rastes data just within your window.
-Jukka Rahkonen-
________________________________________
Lähettäjä: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän John Cartwright [John.C.Cartwright at noaa.gov] puolesta
Lähetetty: 14. lokakuuta 2011 23:21
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [mapserver-users] EXTENT in LAYER definition not clipping
Hello All,
I have a LAYER definition which includes the EXTENT keyword (see except
below) because I want to limit the area in which data are displayed
regardless of the extent of the request.
It seems that with a WMS request this limit is being ignored and the
data matching the requested BBOX is displayed instead. This is version
mapserver 5.6.3, can someone please point out what I'm doing wrong?
Thanks!
--john
LAYER
DATA "/data/test.tif"
EXTENT 90 -23 179 23
DUMP TRUE
METADATA
...
"ows_extent" "90 -23 179 23"
...
END
NAME "test.tif"
...
END
_______________________________________________
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