Hi Carlos,
If you want to go down the PHP MapScript way, as Jan mentioned, we
already do similar checks as part of the PHPUnit tests (
https://github.com/MapServer/MapServer/tree/main/msautotest/php ).
Specifically, we use PHPUnit's assertFileEquals() function to compare 2
files ( see example at
https://github.com/MapServer/MapServer/blob/main/msautotest/php/mapObjTest.php
), and you can even check speeds (see example at
https://github.com/MapServer/MapServer/blob/main/msautotest/php/reprojectionObjTest.php
)
(if you're wondering, we use PHPUnit version 12, from https://phpunit.de/ )
Hope that helps,
-jeff
--
Jeff McKenna
GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev
co-founder of FOSS4G
http://gatewaygeo.com/
On 2025-11-05 5:35 a.m., Carlos Neves (LREC) via MapServer-users wrote:
Hi List,
I have Mapserver running loading heavy Geotiffs files. I run a periodic
background C script to make dynamic geotiffs files but sometimes the
Geotiff files are not ready (they are still in building process) when
Mapserver load it and stops displays maps.
In PHP I can check that with "md5_file" function comparing the two
files. I'm considering if there is any trick to do it with MAP files
using a command like: "IF geotiff file not exist or not ready load another"
Any ideas would be appreciated.
Best Regards,
Carlos
_______________________________________________
MapServer-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
MapServer-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users