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ä: [email protected] 
[[email protected]] käyttäjän John 
Cartwright [[email protected]] puolesta
Lähetetty: 14. lokakuuta 2011 23:21
Vastaanottaja: [email protected]
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
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to