[mapserver-users] layer with "truncated" symbols 2

Steve Lime sdlime at gmail.com
Thu Mar 26 12:16:16 PDT 2020


With symbols MapServer typically handles this situation by adjusting the
extent used to select features based on the largest symbol size - so
features just off the edge of the map are still rendered partially. That
said, based on your sample graphic it looks like you're setting the size of
the circles dynamically using attribute binding? If so, MapServer wouldn't
have access to those values ahead of time to adjust the selection extent.
One idea might be to somehow add something in the red circle layer to force
that computation, I'd have to see the layer definition to be sure but you
could try adding a dummy class with a size value that represents the
largest expected size. So:

LAYER
  NAME 'red_circles'
  ...
  CLASS # this class is never drawn
    EXPRESSION 'dummy'
    STYLE SYMBOL 'cicle' SIZE 175 COLOR 0 0 0 END
  END
  CLASS
    # your normal red circle class
  END

Of course this forces the larger selection extent for all tiles but it
could work and if the data isn't particularly big it wouldn't add too much
overhead.

--Steve

On Thu, Mar 26, 2020 at 12:49 PM TC Haddad <tchaddad at gmail.com> wrote:

>
> Can you configure Openlayers to not send tiled WMS requests to Mapserver?
>
> If you still want to send tiled requests, you could try setting up
> MapCache to see if it improves the situation.
>
> On Thu, Mar 26, 2020 at 1:09 AM Leehan <mathias.cunault at inrap.fr> wrote:
>
>> I am not using qgis : It s an Openlayers + Mapserver application ;
>>
>>
>>
>> --
>> Sent from:
>> http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20200326/a634a85c/attachment.htm>


More information about the MapServer-users mailing list