Re: [mapserver-users] How to limit the width of the outline when the symbol size changes with the map scale?
Hi, Just a quick example. Please look at the GIST I created. https://gist.github.com/LarsSchy/610fc4cf3ed91ba0113b3c215481615b Jukka is right two circle symbols on top of each other i possible the best solution. That is circle 3, 4 and 5. In circle 2 I am drawing the outline first and then the middle. It is kind the same. Circle 4 and 5 I am drawing the red outline with translucent color: COLOR "#FF80" Circle 5 is with a shadow with color "#80808080". That is grey with 50 % transparency. The 80 is 128 in hex. Run the example with: shp2img -m point_examples.map -o point_examples.png My MapServer version this evening was: MapServer version 7.2.2 I guess that these should behave differently when You zoom. Have fun / Lars Schylberg 26 februari 2022 kl. 15:19, "Rahkonen Jukka (MML)" mailto:jukka.rahko...@maanmittauslaitos.fi?to=%22Rahkonen%20Jukka%20(MML)%22%20)> skrev: Hi, Have you tried to use two filled circle symbols for making the outline effect, one below and the other one above? Or to use png image as a symbol? -Jukka Rahkonen- Lähettäjä: MapServer-users mailto:mapserver-users-boun...@lists.osgeo.org)> Puolesta Kyle Qian Lähetetty: lauantai 26. helmikuuta 2022 1.58 Vastaanottaja: Jason Snyder mailto:mapserver-users@lists.osgeo.org)> Aihe: Re: [mapserver-users] How to limit the width of the outline when the symbol size changes with the map scale? The map file I used is: CLASS NAME "Populated Places" STYLE SYMBOL "PT-1" COLOR "#00A2E8" OPACITY 100 MINSIZE 10 MAXSIZE 30 SIZE 16.5 OFFSET 0 0 OUTLINECOLOR "#FF" OUTLINEWIDTH 5 END END SYMBOLSCALEDENOM 68247.34668319309 SYMBOL NAME "PT-1" TYPE ellipse FILLED true POINTS 5 5 END END Kyle Qian mailto:kyleq...@gmail.com)> 于2022年2月26日周六 07:56写道: Hi, when I set up a map for points, I use SYMBOLSCALEDENOM to change the size of points and MIN/MAXSIZE to limit it, but there seems to be no way to control the width of the outline of points. The outline seems to keep getting bigger as the map zooms in. The image below is the result map as the map zooms in: https://pasteboard.co/JC19o7caYHHk.png (https://pasteboard.co/JC19o7caYHHk.png) Is there any way to solve this problem? In addition, it seems that there is no way to set the transparency of the outline separately. Is it necessary to use a separate STYLE to implement it with GEOMTRANSFORM? Thanks. ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Issue - Style constantly changes using Mapserver 7.6
You can also play with the various PROCESSING directives for raster layers to see if that helps: https://mapserver.org/input/raster.html#special-processing-directives (RESAMPLE, LOAD_FULL_RES_IMAGE, ...) -jeff On 2022-02-25 4:34 p.m., Jeff McKenna wrote: Maybe my test does show it a little (the brown "rain-snow" area to the left of my mouse, on top of the "rain" green area), as the resampling happens as you zoom-in. -jeff On 2022-02-25 4:19 p.m., Jeff McKenna wrote: Hi Felix, I have tested your case here locally on Windows with MS4W (this will be MS4W 5.0-beta3, that contains GDAL 3.4.1, MapServer 8.0dev, PROJ 8.2.1 etc). I have used one of those GRIB2 files ( https://dd.weather.gc.ca/model_hrdps/continental/grib2/00/001/CMC_hrdps_continental_PTYPE_SFC_0_ps2.5km_2022022500_P001-00.grib2 ) and created a WMS service through MS4W, and then used QGIS 3.24 to add the WMS service, and zoomed-in 3 times : see the animated gif at https://pasteboard.co/N9LZcB9Nfgpc.gif I don't see your issue. Could you pick one GRIB2 file (the one that is shown in the extents of your image) and change your mapfile to use that single data file (no patterns) and reproduce your issue? If yes, let us know here the exact filename that is shown in your image (and the exact extents to use). Have a nice weekend, -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] How to limit the width of the outline when the symbol size changes with the map scale?
Hi, Have you tried to use two filled circle symbols for making the outline effect, one below and the other one above? Or to use png image as a symbol? -Jukka Rahkonen- Lähettäjä: MapServer-users Puolesta Kyle Qian Lähetetty: lauantai 26. helmikuuta 2022 1.58 Vastaanottaja: Jason Snyder Aihe: Re: [mapserver-users] How to limit the width of the outline when the symbol size changes with the map scale? The map file I used is: CLASS NAME "Populated Places" STYLE SYMBOL "PT-1" COLOR "#00A2E8" OPACITY 100 MINSIZE 10 MAXSIZE 30 SIZE 16.5 OFFSET 0 0 OUTLINECOLOR "#FF" OUTLINEWIDTH 5 END END SYMBOLSCALEDENOM 68247.34668319309 SYMBOL NAME "PT-1" TYPE ellipse FILLED true POINTS 5 5 END END Kyle Qian mailto:kyleq...@gmail.com>> 于2022年2月26日周六 07:56写道: Hi, when I set up a map for points, I use SYMBOLSCALEDENOM to change the size of points and MIN/MAXSIZE to limit it, but there seems to be no way to control the width of the outline of points. The outline seems to keep getting bigger as the map zooms in. The image below is the result map as the map zooms in: https://pasteboard.co/JC19o7caYHHk.png Is there any way to solve this problem? In addition, it seems that there is no way to set the transparency of the outline separately. Is it necessary to use a separate STYLE to implement it with GEOMTRANSFORM? Thanks. ___ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users