<div dir="ltr"><div id="gmail-:2yl" class="gmail-Am gmail-aO9 gmail-Al editable gmail-LW-avf gmail-tS-tW gmail-tS-tY" aria-label="Message Body" role="textbox" aria-multiline="true" tabindex="1" style="direction:ltr;min-height:85px" aria-controls=":31d">Thank, that gave me the hint I needed. jpegs were being requested and not pngs. It turned out the leaflet app I was using defaulted to jpegs even though I told leaflet the layer was transparent. I forced png and it worked.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 20, 2023 at 3:51 PM Rahkonen Jukka <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi">jukka.rahkonen@maanmittauslaitos.fi</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 class="msg6753803195372520902">
<div lang="FI" style="overflow-wrap: break-word;">
<div class="m_-3577594115530373598WordSection1">
<p class="MsoNormal"><span>Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Work for me in two different ways with this test layer<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">LAYER<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> NAME "layername"<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> TYPE POLYGON<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> FEATURE
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> POINTS 10 5 15 10 5 10 10 5 END<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> END #feature<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> # opacity defined with COMPOSITE<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span><span lang="EN-US">COMPOSITE<br>
OPACITY 70<br>
END # COMPOSITE<br>
<br>
</span><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> METADATA<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> 'wms_title' 'layername'<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> "wms_srs" "EPSG:4326"<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> END #metadata<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> CLASS<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> STYLE<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> #alternatively opacity defined in style<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> #OPACITY 80<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> COLOR 210 155 100<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> END #style<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> END #class<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> END #layer<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">The outputformat must be png, jpeg does not support opacity/transparency.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">-Jukka Rahkonen-<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b>Lähettäjä:</b> MapServer-users <<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>>
<b>Puolesta </b>Atlanta Geek<br>
<b>Lähetetty:</b> torstai 20. huhtikuuta 2023 16.03<br>
<b>Vastaanottaja:</b> mapserver <<a href="mailto:MapServer-users@lists.osgeo.org" target="_blank">MapServer-users@lists.osgeo.org</a>><br>
<b>Aihe:</b> [MapServer-users] Layer is opaque<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">I am trying to use mapserver to display some data but unfortunately the map in not visible below the layer. My configuration of my mapserver is below. Any guidance would be appreciated.<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">MAP<br>
IMAGETYPE png<br>
MAXSIZE 4000<br>
SIZE 800 800<br>
EXTENT -9583207 3548826 -8999182 4183713<br>
UNITS meters<br>
IMAGECOLOR "#FF000000"<br>
WEB<br>
METADATA<br>
"wfs_title" "mapserverdemo"<br>
"wfs_enable_request" "*"<br>
"wfs_onlineresource" "<a href="http://localhost:8080/mapserv?map=/etc/mapserver/wms.map" target="_blank">http://localhost:8080/mapserv?map=/etc/mapserver/wms.map</a>"<br>
"ows_enable_request" "*"<br>
"wms_srs" "EPSG:3857 EPSG:4326"<br>
"wfs_srs" "EPSG:3857 EPSG:4326"<br>
"labelcache_map_edge_buffer" "-1"<br>
"wms_title" "OpenStreetMap"<br>
"wms_feature_info_mime_type" "text/plain text/html application/json"<br>
END<br>
IMAGEPATH "/ms4w/tmp/ms_tmp/"<br>
IMAGEURL "/ms_tmp/"<br>
END<br>
DEBUG 1<br>
CONFIG "MS_ERRORFILE" "stderr"<br>
PROJECTION<br>
"init=epsg:3857"<br>
END<br>
OUTPUTFORMAT<br>
NAME "jpeg_png"<br>
MIMETYPE "image/vnd.jpeg-png"<br>
DRIVER AGG/MIXED<br>
IMAGEMODE RGBA<br>
FORMATOPTION "TRANSPARENT_FORMAT=png"<br>
FORMATOPTION "OPAQUE_FORMAT=jpeg"<br>
END<br>
<br>
<br>
LAYER<br>
STATUS DEFAULT<br>
TYPE POLYGON<br>
NAME "h3_polygons"<br>
GROUP "h3"<br>
CONNECTIONTYPE postgis<br>
CONNECTION "host=host.docker.internal dbname=h3demo user=postgres password=postgres port=5432"<br>
DATA "geom from pop6 using unique fld using srid=4326"<br>
COMPOSITE<br>
OPACITY 70<br>
END # COMPOSITE<br>
CLASS<br>
STYLE<br>
OUTLINECOLOR 0 0 255<br>
WIDTH 3<br>
END<br>
STYLE<br>
COLOR 255 0 0<br>
OPACITY 10<br>
END<br>
END<br>
<br>
<br>
<br>
PROJECTION #source<br>
"init=epsg:4326"<br>
END<br>
END<br>
<br>
END<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal"><span class="m_-3577594115530373598gmailsignatureprefix">-- </span><u></u><u></u></p>
<div>
<p class="MsoNormal"><a href="http://www.atlantageek.com/" target="_blank">http://www.atlantageek.com</a><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div></blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><a href="http://www.atlantageek.com" target="_blank">http://www.atlantageek.com</a></div>