Re: [MapServer-users] Layer is opaque

2023-04-21 Thread Atlanta Geek
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.

On Thu, Apr 20, 2023 at 3:51 PM Rahkonen Jukka <
jukka.rahko...@maanmittauslaitos.fi> wrote:

> Hi,
>
>
>
> Work for me in two different ways with this test layer
>
>
>
> LAYER
>
>   NAME "layername"
>
>   TYPE POLYGON
>
>   FEATURE
>
>   POINTS 10 5 15 10 5 10 10 5 END
>
>   END #feature
>
> # opacity defined with COMPOSITE
>
>   COMPOSITE
>   OPACITY 70
>  END # COMPOSITE
>
>   METADATA
>
>   'wms_title' 'layername'
>
>   "wms_srs" "EPSG:4326"
>
>   END #metadata
>
> CLASS
>
> STYLE
>
> #alternatively opacity defined in style
>
> #OPACITY 80
>
> COLOR  210 155 100
>
> END #style
>
> END #class
>
> END #layer
>
>
>
> The outputformat must be png, jpeg does not support opacity/transparency.
>
>
>
> -Jukka Rahkonen-
>
>
>
> *Lähettäjä:* MapServer-users  
> *Puolesta
> *Atlanta Geek
> *Lähetetty:* torstai 20. huhtikuuta 2023 16.03
> *Vastaanottaja:* mapserver 
> *Aihe:* [MapServer-users] Layer is opaque
>
>
>
> 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.
>
>
>
> MAP
> IMAGETYPE png
> MAXSIZE 4000
> SIZE 800 800
> EXTENT -9583207 3548826 -8999182 4183713
> UNITS meters
> IMAGECOLOR "#FF00"
> WEB
>METADATA
>   "wfs_title" "mapserverdemo"
>   "wfs_enable_request" "*"
>   "wfs_onlineresource" "
> http://localhost:8080/mapserv?map=/etc/mapserver/wms.map";
>   "ows_enable_request" "*"
>   "wms_srs" "EPSG:3857 EPSG:4326"
>   "wfs_srs" "EPSG:3857 EPSG:4326"
>   "labelcache_map_edge_buffer" "-1"
>   "wms_title" "OpenStreetMap"
>   "wms_feature_info_mime_type" "text/plain text/html application/json"
>END
>IMAGEPATH "/ms4w/tmp/ms_tmp/"
>IMAGEURL "/ms_tmp/"
> END
> DEBUG 1
> CONFIG "MS_ERRORFILE" "stderr"
> PROJECTION
>"init=epsg:3857"
> END
> OUTPUTFORMAT
>   NAME "jpeg_png"
>   MIMETYPE "image/vnd.jpeg-png"
>   DRIVER AGG/MIXED
>   IMAGEMODE RGBA
>   FORMATOPTION "TRANSPARENT_FORMAT=png"
>   FORMATOPTION "OPAQUE_FORMAT=jpeg"
> END
>
>
> LAYER
> STATUS DEFAULT
> TYPE POLYGON
> NAME "h3_polygons"
> GROUP "h3"
> CONNECTIONTYPE postgis
> CONNECTION "host=host.docker.internal dbname=h3demo user=postgres
> password=postgres port=5432"
> DATA "geom from pop6 using unique fld using srid=4326"
> COMPOSITE
>   OPACITY 70
> END # COMPOSITE
> CLASS
>   STYLE
>  OUTLINECOLOR 0 0 255
>  WIDTH 3
>   END
>   STYLE
>  COLOR 255 0 0
>  OPACITY 10
>   END
>END
>
>
>
>   PROJECTION #source
> "init=epsg:4326"
>   END
> END
>
> END
>
>
>
> --
>
> http://www.atlantageek.com
>


-- 
http://www.atlantageek.com
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[MapServer-users] 8.0.1 & 7.6.5 released

2023-04-21 Thread Jeff McKenna
The MapServer team is pleased to announce the maintenance releases of 
MapServer 8.0.1 and 7.6.5


For the list of changes see the changelogs:

 - 8.0.1: 
https://mapserver.org/development/changelog/changelog-8-0.html#changelog-8-0-1


 - 7.6.5: 
https://mapserver.org/development/changelog/changelog-7-6.html#changelog-7-6-5


Or head to Download at https://mapserver.org/download.html

For those wanting searchable offline documentation (with click-able 
index of terms at end), the updated PDF is now available at 
https://download.osgeo.org/mapserver/docs/MapServer.pdf


(the demo server and its so many services have all received big upgrades 
as part of this effort: https://demo.mapserver.org )


Fun fact: most #foss4g releases happen on a Friday 😄

Happy (fast) mapserving...


--
The MapServer Team







___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users