You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Failing msautotests following update to Ubuntu 24.04 #7243
As noted in #7250 generated zips don't seem to match their reference output and change on each run. These are currently excluded with a TO_FIX instead of RUN_PARAMS.
@msmitherdc - is it possible to set the compression on an OUTPUTFORMAT? I tried the following (although could find nothing documenting this), but file outputs were the same (but with differences):
NAME "SHAPEZIP"
DRIVER "OGR/ESRI Shapefile"
MIMETYPE "application/shapefile"
FORMATOPTION "STORAGE=filesystem"
FORMATOPTION "FORM=zip"
FORMATOPTION "FILENAME=result.zip"
FORMATOPTION "LCO:DBF_DATE_LAST_UPDATE=2018-06-18"
# tried adding the following
FORMATOPTION "COMPRESS=STOR"
END
@rouault - a changing timestamp would explain the exact same file size but different content. Is this something that can be set as a FORMATOPTION currently (as with the LCO:DBF_DATE_LAST_UPDATE), or it needs to be read from the Mapfile and code updated to pass it to that function?
Activity
geographika commentedon Mar 6, 2025
As noted in #7250 generated zips don't seem to match their reference output and change on each run. These are currently excluded with a
TO_FIXinstead ofRUN_PARAMS.msmitherdc commentedon Mar 6, 2025
@geographika could the zip issues be due to compression on the zip files? Maybe just have them be STOR compression to eliminate that?
rouault commentedon Mar 6, 2025
I would rather think to timestamps: https://github.com/OSGeo/gdal/blob/fd803f4d797a34fdb73d84f50dcf6c75ccc50cea/port/cpl_minizip_zip.cpp#L2205
So there's this TIMESTAMP option for the CPLCreateFileInZip() function (and CPLAddFileInZip()) that we could for example set to 0 in https://github.com/MapServer/MapServer/blob/e04fbd49a3277f451909893db03937d767449226/src/mapogroutput.cpp#L1269C11-L1269C26
geographika commentedon Mar 6, 2025
Thanks both for the suggestions.
@msmitherdc - is it possible to set the compression on an OUTPUTFORMAT? I tried the following (although could find nothing documenting this), but file outputs were the same (but with differences):
@rouault - a changing timestamp would explain the exact same file size but different content. Is this something that can be set as a
FORMATOPTIONcurrently (as with theLCO:DBF_DATE_LAST_UPDATE), or it needs to be read from the Mapfile and code updated to pass it to that function?rouault commentedon Mar 6, 2025
yes that