<!DOCTYPE html><html><head><title></title><style type="text/css">#qt p.qt-MsoNormal{margin-top:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;font-size:11pt;font-family:"Calibri", sans-serif;}
#qt a:link{color:rgb(5, 99, 193);text-decoration-line:underline;text-decoration-style:solid;text-decoration-color:currentcolor;text-decoration-thickness:auto;}

p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi Jukka,<br></div><div><br></div><div>Sounds interesting.<br></div><div>How would you envisage the Mapfile OUTPUTFORMAT looking in this case? Would it reference a VRT file ignoring any SourceFilename?<br></div><div><br></div><div>Seth<br></div><div><br></div><div id="sig62266145"><div class="signature">--<br></div><div class="signature">web:<a href="https://geographika.net">https://geographika.net</a> & <a href="https://mapserverstudio.net">https://mapserverstudio.net</a><br></div><div class="signature">twitter: @geographika<br></div></div><div><br></div><div>On Tue, Apr 23, 2024, at 4:58 PM, Rahkonen Jukka via MapServer-dev wrote:<br></div><blockquote type="cite" id="qt" style="overflow-wrap:break-word;"><div class="qt-WordSection1"><p class="qt-MsoNormal">Hi,<br></p><p class="qt-MsoNormal"> <br></p><p class="qt-MsoNormal"><span lang="EN-US">I was experimenting with GDAL VRT and KernelFilteredSource </span><a href="https://gdal.org/drivers/raster/vrt.html#kernelfilteredsource"><span lang="EN-US">https://gdal.org/drivers/raster/vrt.html#kernelfilteredsource</span></a><span lang="EN-US">. My aim was to sharpen aeriel photos a bit for helping visual image
 interpretation. I was rather satisfied with the following that, I believe, is an unsharp mask filter <a href="https://en.wikipedia.org/wiki/Kernel_(image_processing)">https://en.wikipedia.org/wiki/Kernel_(image_processing)</a>. Excerpt from my VRT file:</span><br></p><p class="qt-MsoNormal"><span lang="EN-US"> </span><br></p><p class="qt-MsoNormal"><span lang="EN-US"><KernelFilteredSource></span><br></p><p class="qt-MsoNormal"><span lang="EN-US">      <SourceFilename relativeToVRT="1">P4433H.tif</SourceFilename></span><br></p><p class="qt-MsoNormal"><span lang="EN-US">      <SourceBand>3</SourceBand></span><br></p><p class="qt-MsoNormal"><span lang="EN-US">      <Kernel normalized="1"></span><br></p><p class="qt-MsoNormal"><span lang="EN-US">                <Size>5</Size></span><br></p><p class="qt-MsoNormal"><span lang="EN-US">          <Coefs> -0.00390625 -0.015625 -0.0234375 -0.015625 -0.00390625 -0.015625 -0.0625 -0.09375 -0.0625 -0.015625 -0.0234375 -0.09375 1.859375 -0.09375 -0.0234375 -0.015625 -0.0625 -0.09375 -0.0625 -0.015625 -0.00390625
 -0.015625 -0.0234375 -0.015625 -0.00390625 </Coefs></span><br></p><p class="qt-MsoNormal"><span lang="EN-US">  </Kernel></span><br></p><p class="qt-MsoNormal"><span lang="EN-US"> </span><br></p><p class="qt-MsoNormal"><span lang="EN-US">I tested the sharpened VRT with QGIS and it works well. Now I wonder if it could be possible to configure Mapserver to have KernelFiltered outputformats driven by GDAL and VRT. Derived bands might be useful as well. Any
 thoughts?</span><br></p><p class="qt-MsoNormal"><span lang="EN-US"> </span><br></p><p class="qt-MsoNormal"><span lang="EN-US">-Jukka Rahkonen-</span><br></p></div><div>_______________________________________________<br></div><div>MapServer-dev mailing list<br></div><div><a href="mailto:MapServer-dev@lists.osgeo.org">MapServer-dev@lists.osgeo.org</a><br></div><div><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev">https://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br></div><div><br></div></blockquote><div><br></div></body></html>