mapcache icon indicating copy to clipboard operation
mapcache copied to clipboard

Mapserver source: msLoadMap takes a new parameter

Open mamaar opened this issue 2 years ago • 3 comments

Since this commit: https://github.com/MapServer/MapServer/commit/f478a37305cc3646aea7fd618e27ded429367183 MapServer seems to take a new parameter for config. The MapServer source in Mapcache has not been updated to reflect this change:

  • https://github.com/MapServer/mapcache/blob/2ac1a6105da3c60d304a55bb85a1d96c2a943a4b/lib/source_mapserver.c#L63
  • https://github.com/MapServer/mapcache/blob/2ac1a6105da3c60d304a55bb85a1d96c2a943a4b/lib/source_mapserver.c#L232

My guess is that the new parameter could just take a NULL when called from Mapcache. If I can get a confirmation on this assumption, I'm glad to open a pull request.

mamaar avatar Dec 15 '23 08:12 mamaar

So this is for the experimental MapServer integration. I've never used that feature myself but assuming the mapfile being processed is configured in the mapcache config file and not via a request then you're correct. @tbonfort or @jbo-ads, is that assumption is correct?

--Steve

sdlime avatar Dec 19 '23 16:12 sdlime

@mamaar your plan sounds good to me. If you can test your change locally, confirm it works with null, and then open a pull request with that change, soon-ish, we can include it in the upcoming MapCache release. thanks!

jmckenna avatar May 16 '24 17:05 jmckenna

@mamaar @sdlime, all: I actually just hit this when upgrading the MapCache CI tests to use MapServer 8, with MapCache (in ubuntugis-unstable), and had to make this change for the build to pass. (see full PR). Let me know if all looks ok (will potentially include this in a 1.14.2 release at the end of this month). Even though MapServer as source for MapCache is still marked as experimental, some may be using it. Thanks.

jmckenna avatar Mar 05 '25 16:03 jmckenna