To give a more detailed example of what *should* work:

  LAYER
    ..
    REQUIRES "![modis] OR ![someotherlayername]"
  END

I'll continue my 8.0-dev testing...


-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/


On 2021-11-23 5:29 p.m., Jeff McKenna wrote:
Hi Carlos,

I had a great answer drafted for you, tooting my own horn on the recent MapServer tutorial updates for MapServer 8.x, and the demo server updates...as by chance the tutorial mentions that the parameter "REQUIRES" at the LAYER level should do exactly what you need, super : but sadly my tests now fail with MapServer 8.0-dev, I cannot get REQUIRES to work, such as:

   LAYER
    ..
    REQUIRES "![modis]"
   END

  where modis is another layer name.

Since I hadn't been testing this feature, and it is only briefly mentioned in the tutorial (and not part of the live demo), I have no way of saying when this should have worked, for what MapServer version.  It is part of the tutorial mapfiles, but the functionality is not working, for my local tests.

But your question has made me see more room for improvement in the tutorial, and its mapfiles, so your question has helped.

Sorry for my non-news, ha.

I'll do more testing on this feature and report back.

-jeff




_______________________________________________
MapServer-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to