[mapserver-users] Mapserver seem change the line size in raster dataset

Andrea Peri aperi2007 at gmail.com
Fri Jan 13 14:11:04 PST 2017


Hi Jukka.

This is a direct getmap over our wms

http://www502.regione.toscana.it/ows2/com.rt.wms.RTmap/wms?map=owstopoweb&version=1.3.0&map_resolution=91&TRANSPARENT=true&LAYERS=rt_topoweb.800k.rt&STYLES=&CRS=EPSG:25832&SERVICE=WMS&REQUEST=GetMap&FORMAT=image/png&BBOX=563561.9927077,4809257.3212631,817953.27072102,4878814.3834541&WIDTH=1302&HEIGHT=356

The raster is setting with this layer mapfile:


  OUTPUTFORMAT
    NAME "AGGA"
    DRIVER AGG/PNG
    MIMETYPE "image/png"
    IMAGEMODE RGBA    #serve RGBA per avere il trasparente
    FORMATOPTION "GAMMA=0.75"
    FORMATOPTION "INTERLACE=OFF"
    FORMATOPTION "QUANTIZE_DITHER=OFF"
    FORMATOPTION "COMPRESSION=6"  # Compression: 0=no compression,
9=best, 6=default compression
    FORMATOPTION "QUANTIZE_FORCE=ON"
    FORMATOPTION "QUANTIZE_COLORS=256"
   TRANSPARENT ON
  END
....
  LAYER
    NAME "rt_topoweb.800k.rt"
    STATUS OFF
    EXTENT 1530000 4665000 1800000 4950000
    TYPE raster
    TILEINDEX '/path-to-shapefile indexfile/index_tiled'
    TILEITEM 'location'
    PROJECTION
      "+init=epsg:3003"
    END
    PROCESSING "BANDS=1,2,3"
    PROCESSING "NODATA=0"
    PROCESSING "LOAD_WHOLE_IMAGE=YES"
    PROCESSING "RESAMPLE=AVERAGE"
    PROCESSING "OVERSAMPLE_RATIO=4.0"
    # ... other standard raster processing functions here
    METADATA
      "wms_title" "TopoWEB 800k"
      "wms_extent" "1530000 4665000 1800000 4950000"
      "wms_abstract" "Carta Topografica in scala 1:25.000"
      "wms_layer_group" "/rt_topoweb.rt"
    END
    MAXSCALEDENOM 5000000
    MINSCALEDENOM 600000
    # the color index for transparent
    OFFSITE 0 0 0
    # the global opacity (100=full opaque)
    OPACITY 100
  END


2017-01-13 11:17 GMT+01:00 Rahkonen Jukka (MML)
<jukka.rahkonen at maanmittauslaitos.fi>:
> Hi,
>
> What is included in "any setting I know on mapserver"? Could you show a link to some raster, together with the LAYER from your mapfile?
>
> -Jukka Rahkonen-
>
> Andrea Peri wrote:
> [mapserver-users] Mapserver seem change the line size in raster dataset
>
> Hi, I have a raster dataset to publish on internet using mapserver wms.
> This dataset is a rasterization of some thematic datasets.
>
> After publish it, I notice a difference between the map returned from mapserver and reproduced on qgis and the map reproduced using qgis accessing directly the same raster.
>
> I try any setting I know on mapserver but without be able to obtain the same image.
>
> To show the diffrence I capture the screenshot of both as visible on qgis:
>
> This is the sample of the raster on qgis retrieve from mapserver wms:
> https://www.dropbox.com/s/464cg3c91b5twpz/from-mapserver-scale800000.gif?dl=0
>
> This instead is the sample of the raster on qgis retrieve directly from the raster accessed directly from qgis.
> https://www.dropbox.com/s/ai9p3ntnkcmp9zt/from-qgis-scale800000.gif?dl=0
>
> The colors are the same, the difference is in the lines. That qgis desktop version has the lines more defined instead the mapserver version has lines reduced.
>
> Any hint is welcome,
> Thx
>
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -----------------
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------


More information about the mapserver-users mailing list