<div dir="ltr">Hi Rich,<div><br></div><div>Now that is a good question! Perhaps an implied use of those overviews has changed across versions, or a previously-default mapfile parameter has changed. We didn't see anything in the changelog, but to be honest, a lot has changed between versions and maybe I missed something.\</div><div><br></div><div>Here is a direct link to the file, in case that is helpful:</div><div><a href="https://soilmap4-1.lawr.ucdavis.edu/taxa-grid-tms/taxsubgrp/typic_xerofluvents.tif">https://soilmap4-1.lawr.ucdavis.edu/taxa-grid-tms/taxsubgrp/typic_xerofluvents.tif</a></div><div><br></div><div>Here is a snippet from the mapfile, the same on both machines. Note that we are using a combination of pattern matching and expressions to select files and apply a color styling. Perhaps there was an implied change to "processing" or "use of overviews" directives in the more recent mapserver version?</div><div><br></div><div>MAP<br>        OUTPUTFORMAT<br>                NAME "png"<br>                IMAGEMODE RGBA<br>                DRIVER "AGG/PNG"<br>                MIMETYPE "image/png"<br>                EXTENSION "png"<br>                FORMATOPTION "GAMMA=0.75"<br>        END<br><br>        STATUS ON<br><br>        # set the output projection of map images to 'spherical mercator' used by leaflet maps<br>        PROJECTION<br>                "init=epsg:3857"<br>        END<br><br>        ##### blue 9 from dylan<br>        LAYER<br>                NAME blue9dylan<br>                STATUS ON<br>                DATA "%type%/%name%.tif"<br>                TYPE RASTER<br>                # set the input projection of the source data<br>                PROJECTION<br>                        "init=epsg:3857"<br>                END<br>                VALIDATION<br>                        "type" "^taxorder|taxsuborder|taxgrtgroup|taxsubgrp|fm\/gg|fm\/sg$"<br>                        "name" "^[a-zA-z_\-]+$"<br>                        "minvalue" "^[0-9]{1,3}$"<br>                END<br>                CLASS # NoData Values<br>                        EXPRESSION ([pixel] = 0)<br>                        STYLE<br>                                COLOR "#00000000"<br>                        END<br>                END<br>                CLASS<br>                        EXPRESSION ([pixel] >= %minvalue% AND [pixel] <= 2)<br>                        STYLE<br>                                COLOR "#E0F7E1"<br>                        END<br>                END<br></div><div>[...]</div><div><br></div><div>Thanks,</div><div>Dylan</div><div><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Fri, Jan 10, 2025 at 11:10 AM Richard Greenwood <<a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Dylan,<div><br></div><div>Welcome back. Why do you think the issue is related to the use of overviews and not something else?</div><div><br></div><div>Rich</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 10, 2025 at 10:50 AM Dylan Beaudette via MapServer-users <<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Thanks Scott,</div><div><br></div><div>I tried that: md5sums on the GeoTiffs and diff on the .map files confirms that they are identical.</div><div><br></div><div>The only difference between these two systems is the version of Mapserver.</div><div><br></div><div>MapServer version 7.2.2 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE</div><div><br></div><div>MapServer version 7.6.4 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=POINT_Z_M SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE<br></div><div><br></div><div>The newer version is provided via apt:</div><div>cgi-mapserver                          7.6.4-2build2                           amd64        CGI executable for MapServer</div><div><br></div><div>Any other leads?</div><div>Thanks!</div><div>Dylan</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 9, 2025 at 2:45 PM Scott via MapServer-users <<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I would do a sanity check first, just to make sure the 2 raster files <br>
are truly the same. Try something like:<br>
<br>
gdalinfo -stats -hist file1.tif<br>
gdalinfo -stats -hist file2.tif<br>
<br>
Then, I would continue with the .map files, to make sure they are the <br>
same. Something like:<br>
<br>
diff serv1.map serv2.map<br>
<br>
See what falls out.<br>
<br>
On 1/9/25 13:10, Dylan Beaudette via MapServer-users wrote:<br>
> <br>
> Hi Everyone,<br>
> <br>
> I've got identical GeoTiffs and .map files on two servers with varying <br>
> versions of Mapserver that is being used as a TMS. Mapserver 7.2.2 is (I <br>
> think) correctly using the overviews while Mapserver 7.6.4 is not.<br>
> <br>
> Here is an example of the same file, tile, and styling applied across <br>
> both versions of Mapserver.<br>
> <br>
> # Mapserver 7.2.2:<br>
> <a href="https://soilmap2-1.lawr.ucdavis.edu/cgi-bin/mapserv?map=/data1/website/" rel="noreferrer" target="_blank">https://soilmap2-1.lawr.ucdavis.edu/cgi-bin/mapserv?map=/data1/website/</a> <br>
> ste/ <br>
> taxa.map&mode=tile&tilemode=gmap&tile=5+12+5&layer=blue9dylan&type=taxsubgrp&name=typic_xerofluvents&minvalue=5 <<a href="https://soilmap2-1.lawr.ucdavis.edu/cgi-bin/mapserv?map=/data1/website/ste/taxa.map&mode=tile&tilemode=gmap&tile=5+12+5&layer=blue9dylan&type=taxsubgrp&name=typic_xerofluvents&minvalue=5" rel="noreferrer" target="_blank">https://soilmap2-1.lawr.ucdavis.edu/cgi-bin/mapserv?map=/data1/website/ste/taxa.map&mode=tile&tilemode=gmap&tile=5+12+5&layer=blue9dylan&type=taxsubgrp&name=typic_xerofluvents&minvalue=5</a>><br>
> <br>
> Mapserver 7.6.4:<br>
> <a href="https://soilmap4-1.lawr.ucdavis.edu/cgi-bin/mapserv?map=/data1/website/" rel="noreferrer" target="_blank">https://soilmap4-1.lawr.ucdavis.edu/cgi-bin/mapserv?map=/data1/website/</a> <br>
> ste/ <br>
> taxa.map&mode=tile&tilemode=gmap&tile=5+12+5&layer=blue9dylan&type=taxsubgrp&name=typic_xerofluvents&minvalue=5 <<a href="https://soilmap4-1.lawr.ucdavis.edu/cgi-bin/mapserv?map=/data1/website/ste/taxa.map&mode=tile&tilemode=gmap&tile=5+12+5&layer=blue9dylan&type=taxsubgrp&name=typic_xerofluvents&minvalue=5" rel="noreferrer" target="_blank">https://soilmap4-1.lawr.ucdavis.edu/cgi-bin/mapserv?map=/data1/website/ste/taxa.map&mode=tile&tilemode=gmap&tile=5+12+5&layer=blue9dylan&type=taxsubgrp&name=typic_xerofluvents&minvalue=5</a>><br>
> <br>
> It appears to me that the newer version is either ignoring or <br>
> interpreting the overviews differently. Each file has an internal tiling <br>
> and overview scheme like this:<br>
> <br>
> ----------------------------------------------------------------------------------<br>
> Band 1 Block=1766x4 Type=Byte, ColorInterp=Gray<br>
>    NoData Value=0<br>
>    Overviews: 883x1262, 442x631, 221x316, 111x158<br>
> ----------------------------------------------------------------------------------<br>
> <br>
> Does anyone have a clue about the differences? Is either version in error?<br>
> <br>
> Thanks, and good to be back on the mailing list after a nearly 15 year <br>
> hiatus!<br>
> Dylan<br>
> <br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> MapServer-users mailing list<br>
> <a href="mailto:MapServer-users@lists.osgeo.org" target="_blank">MapServer-users@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br>
_______________________________________________<br>
MapServer-users mailing list<br>
<a href="mailto:MapServer-users@lists.osgeo.org" target="_blank">MapServer-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div></div>
_______________________________________________<br>
MapServer-users mailing list<br>
<a href="mailto:MapServer-users@lists.osgeo.org" target="_blank">MapServer-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Richard W. Greenwood<br><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a></div></div>
</blockquote></div>