[MapServer-users] Varying use of overviews across Mapserver versions

Dylan Beaudette debeaudette at ucdavis.edu
Fri Jan 10 09:49:49 PST 2025


Thanks Scott,

I tried that: md5sums on the GeoTiffs and diff on the .map files confirms
that they are identical.

The only difference between these two systems is the version of Mapserver.

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

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

The newer version is provided via apt:
cgi-mapserver                          7.6.4-2build2
    amd64        CGI executable for MapServer

Any other leads?
Thanks!
Dylan

On Thu, Jan 9, 2025 at 2:45 PM Scott via MapServer-users <
mapserver-users at lists.osgeo.org> wrote:

> I would do a sanity check first, just to make sure the 2 raster files
> are truly the same. Try something like:
>
> gdalinfo -stats -hist file1.tif
> gdalinfo -stats -hist file2.tif
>
> Then, I would continue with the .map files, to make sure they are the
> same. Something like:
>
> diff serv1.map serv2.map
>
> See what falls out.
>
> On 1/9/25 13:10, Dylan Beaudette via MapServer-users wrote:
> >
> > Hi Everyone,
> >
> > I've got identical GeoTiffs and .map files on two servers with varying
> > versions of Mapserver that is being used as a TMS. Mapserver 7.2.2 is (I
> > think) correctly using the overviews while Mapserver 7.6.4 is not.
> >
> > Here is an example of the same file, tile, and styling applied across
> > both versions of Mapserver.
> >
> > # Mapserver 7.2.2:
> > 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
> <
> 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
> >
> >
> > Mapserver 7.6.4:
> > 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
> <
> 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
> >
> >
> > It appears to me that the newer version is either ignoring or
> > interpreting the overviews differently. Each file has an internal tiling
> > and overview scheme like this:
> >
> >
> ----------------------------------------------------------------------------------
> > Band 1 Block=1766x4 Type=Byte, ColorInterp=Gray
> >    NoData Value=0
> >    Overviews: 883x1262, 442x631, 221x316, 111x158
> >
> ----------------------------------------------------------------------------------
> >
> > Does anyone have a clue about the differences? Is either version in
> error?
> >
> > Thanks, and good to be back on the mailing list after a nearly 15 year
> > hiatus!
> > Dylan
> >
> >
> >
> >
> > _______________________________________________
> > MapServer-users mailing list
> > MapServer-users at lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> _______________________________________________
> MapServer-users mailing list
> MapServer-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20250110/e80210d4/attachment.htm>


More information about the MapServer-users mailing list