[MapServer-users] Looking for Examples of COMPOSITE

Bob Basques bob.basques at ci.stpaul.mn.us
Fri Aug 4 07:52:20 PDT 2023


Lars,

I think this is perfect as an example to get started with!

I still need to figure out (for sure) how to scale the width of the actual blur though.  Even if there isn’t a method for that, I can fake it with a hidden line/width if needed.   I need to represent a scaled line width on top of a variable width blur (as the tolerance), if that makes any sense.  In your example it looks like the blur width is directly proportional to the line width, but I would need to experiment some to be sure. I need the blur to be scalable in map units, which might be the hard part but maybe those values are all honored across all unit values.

The blur(7) looks like the key to scaling the width, correct?   Is there a better doc set on COMPOSITE than here: https://mapserver.org/mapfile/composite.html

Thanks

Bobb



From: MapServer-users <mapserver-users-bounces at lists.osgeo.org> on behalf of Lars Schylberg <lars.schylberg at blixtmail.se>
Date: Friday, August 4, 2023 at 9:22 AM
To: "mapserver-users at lists.osgeo.org" <mapserver-users at lists.osgeo.org>
Subject: Re: [MapServer-users] Looking for Examples of COMPOSITE

Think Before You Click: This email originated outside our organization.



Hi Bob,
I have an example how to use COMPOSITE and blur effects on a line and other objects that I presented at FOSS4G last year in Italy.

https://github.com/LarsSchy/FOSS4G-2022/blob/main/layer_comp2.map.

The example can be run with map2img.

The presentation is here:  https://github.com/LarsSchy/FOSS4G-2022/blob/main/MapServer_Make-beautiful-maps_1.03.pdf

Have fun / Lars Schylberg

Den 2023-08-03 kl. 19:07, skrev Bob Basques:
> Yes this approach would work. I'm really trying to shoot for the > Blur effect though the further away from the line it gets, it fades > away. There will probably be some sort of combination of what you > describe here, with some light dashed lines at the extreme of the > shadow as well as the shadow. > > On 8/3/23, 11:16 AM, "MapServer-users on behalf of Scott" > <mapserver-users-bounces at lists.osgeo.org on behalf of ><mailto:mapserver-users-bounces at lists.osgeo.orgonbehalfof> public at postholer.com<mailto:public at postholer.com>> wrote: > > Think Before You Click: This email originated outside our > organization. > > > Can you use color and outline color at specified width? Such as: > > CLASS NAME 'state' EXPRESSION ("[rttyp]" eq "S") MAXSCALEDENOM > 1500000 STYLE COLOR '#ffffff' WIDTH 8 OUTLINECOLOR '#0e3e09' > OUTLINEWIDTH 2 END END > > You could also add transparency to your outline color. > > > On 8/3/23 08:45, Bob Basques wrote: >> Hello all, >> >> I’m looking for example uses of the COMPOSITE function in >> MapFiles. I’m specifically in need of a way to shadow a line, to >> scale, on both sides as a way of indicating a tolerance to each >> side of the line. >> >> Anyone have an example of a COMPOSITE block for accomplishing this, >> or even something close (one side)? >> >> Thanks >> >> Bobb >> >> Get me in Teams >> <https://teams.microsoft.com/l/chat/0/0?users=bob.basques@ci.stpaul.mn.us><https://teams.microsoft.com/l/chat/0/0?users=bob.basques@ci.stpaul.mn.us> > >> > >> *PW19-S295-C024* >> >> >> _______________________________________________ MapServer-users >> mailing list MapServer-users at lists.osgeo.org<mailto:MapServer-users at lists.osgeo.org> >> https://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ MapServer-users > mailing list MapServer-users at lists.osgeo.org<mailto:MapServer-users at lists.osgeo.org> > https://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ MapServer-users > mailing list MapServer-users at lists.osgeo.org<mailto:MapServer-users at lists.osgeo.org> > https://lists.osgeo.org/mailman/listinfo/mapserver-use
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230804/4c2d018e/attachment-0001.htm>


More information about the MapServer-users mailing list