[Geoserver-users] Decluttering/SLD/CSS

Hello list and HNY to you all!

This is probably a very basic question so if someone can point me in the right direction it would be greatly appreciated.

I understand how to control labelling based on zoom level, priority and z-order to manage the clarity of the map. I also understand how to display or not display point symbols based on zoom level filters.

BUT I can’t work out how to control drawing symbols with the same degree of control as I have over labels.

I have points on a map that are more important than others but are all in the same layer. In areas where there are a lot of points, and the scale doesn’t support drawing them all clearly, I want to only display just the important ones (and their labels) but as the user zooms in and the screen real-estate increases I want to display more i.e. include the less important points. This is all doable via the scale filters, but causes an undesirable issue in areas where there are a low numbers of points – they only become visible when you are zoomed in. In these areas I would like to be able to display the less important points at the same time as limiting the display of points in the more congested areas to only show the important ones.

Any ideas on how to achieve this?

Thanks

Chris

*** This communication has been sent from World Fuel Services
Corporation or its subsidiaries or its affiliates for the intended recipient
only and may contain proprietary, confidential or privileged information.
If you are not the intended recipient, any review, disclosure, copying,
use, or distribution of the information included in this communication
and any attachments is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to this
communication and delete the communication, including any
attachments, from your computer. Electronic communications sent to or
from World Fuel Services Corporation or its subsidiaries or its affiliates
may be monitored for quality assurance and compliance purposes.***

Hi Chris,

without having done it by myself, I would expect, that priority would give you what you want:

http://docs.geoserver.org/2.1.0/user/styling/sld-reference/labeling.html

Cheers

Stefan

From: Chris Haste [mailto:CHaste@…2992…]
Sent: Friday, January 04, 2013 12:19 PM
To: geoserver-users@lists.sourceforge.net
Subject: [bulk]: [Geoserver-users] Decluttering/SLD/CSS

Hello list and HNY to you all!

This is probably a very basic question so if someone can point me in the right direction it would be greatly appreciated.

I understand how to control labelling based on zoom level, priority and z-order to manage the clarity of the map. I also understand how to display or not display point symbols based on zoom level filters.

BUT I can’t work out how to control drawing symbols with the same degree of control as I have over labels.

I have points on a map that are more important than others but are all in the same layer. In areas where there are a lot of points, and the scale doesn’t support drawing them all clearly, I want to only display just the important ones (and their labels) but as the user zooms in and the screen real-estate increases I want to display more i.e. include the less important points. This is all doable via the scale filters, but causes an undesirable issue in areas where there are a low numbers of points – they only become visible when you are zoomed in. In these areas I would like to be able to display the less important points at the same time as limiting the display of points in the more congested areas to only show the important ones.

Any ideas on how to achieve this?

Thanks

Chris

*** This communication has been sent from World Fuel Services
Corporation or its subsidiaries or its affiliates for the intended recipient
only and may contain proprietary, confidential or privileged information.
If you are not the intended recipient, any review, disclosure, copying,
use, or distribution of the information included in this communication
and any attachments is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to this
communication and delete the communication, including any
attachments, from your computer. Electronic communications sent to or
from World Fuel Services Corporation or its subsidiaries or its affiliates
may be monitored for quality assurance and compliance purposes.***

Thanks Stefan,

But my understanding is that that only applies to labels… it is control over the point symbols that I need/want.

Brgrds,

Chris

From: Stefan Engelhardt (HBT) [mailto:Stefan.Engelhardt@…5184…]
Sent: 04 January 2013 11:53
To: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

Hi Chris,

without having done it by myself, I would expect, that priority would give you what you want:

http://docs.geoserver.org/2.1.0/user/styling/sld-reference/labeling.html

Cheers

Stefan

From: Chris Haste [mailto:CHaste@…2992…]
Sent: Friday, January 04, 2013 12:19 PM
To: geoserver-users@lists.sourceforge.net
Subject: [bulk]: [Geoserver-users] Decluttering/SLD/CSS

Hello list and HNY to you all!

This is probably a very basic question so if someone can point me in the right direction it would be greatly appreciated.

I understand how to control labelling based on zoom level, priority and z-order to manage the clarity of the map. I also understand how to display or not display point symbols based on zoom level filters.

BUT I can’t work out how to control drawing symbols with the same degree of control as I have over labels.

I have points on a map that are more important than others but are all in the same layer. In areas where there are a lot of points, and the scale doesn’t support drawing them all clearly, I want to only display just the important ones (and their labels) but as the user zooms in and the screen real-estate increases I want to display more i.e. include the less important points. This is all doable via the scale filters, but causes an undesirable issue in areas where there are a low numbers of points – they only become visible when you are zoomed in. In these areas I would like to be able to display the less important points at the same time as limiting the display of points in the more congested areas to only show the important ones.

Any ideas on how to achieve this?

Thanks

Chris

*** This communication has been sent from World Fuel Services
Corporation or its subsidiaries or its affiliates for the intended recipient
only and may contain proprietary, confidential or privileged information.
If you are not the intended recipient, any review, disclosure, copying,
use, or distribution of the information included in this communication
and any attachments is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to this
communication and delete the communication, including any
attachments, from your computer. Electronic communications sent to or
from World Fuel Services Corporation or its subsidiaries or its affiliates
may be monitored for quality assurance and compliance purposes.***

Use multiple tags in your SLD. First tags contain least important symbols, while consecutive -tags contain more important symbols. You can use the ogc:Filter to specify the attribute that indicates the importance of the symbol.

Each tag makes a full scan of the table and draws only the features that satisfy the ogc:Filter statement. Thus the most important symbols are drawn last on top of the less important symbols.

Regards,

Edward


From: CHaste@anonymised.com
To: Stefan.Engelhardt@anonymised.com; geoserver-users@lists.sourceforge.net
Date: Fri, 4 Jan 2013 07:04:45 -0500
Subject: Re: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

Thanks Stefan,

But my understanding is that that only applies to labels… it is control over the point symbols that I need/want.

Brgrds,

Chris

From: Stefan Engelhardt (HBT) [mailto:Stefan.Engelhardt@anonymised.com]
Sent: 04 January 2013 11:53
To: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

Hi Chris,

without having done it by myself, I would expect, that priority would give you what you want:

http://docs.geoserver.org/2.1.0/user/styling/sld-reference/labeling.html

Cheers

Stefan

From: Chris Haste [mailto:CHaste@anonymised.com]
Sent: Friday, January 04, 2013 12:19 PM
To: geoserver-users@lists.sourceforge.net
Subject: [bulk]: [Geoserver-users] Decluttering/SLD/CSS

Hello list and HNY to you all!

This is probably a very basic question so if someone can point me in the right direction it would be greatly appreciated.

I understand how to control labelling based on zoom level, priority and z-order to manage the clarity of the map. I also understand how to display or not display point symbols based on zoom level filters.

BUT I can’t work out how to control drawing symbols with the same degree of control as I have over labels.

I have points on a map that are more important than others but are all in the same layer. In areas where there are a lot of points, and the scale doesn’t support drawing them all clearly, I want to only display just the important ones (and their labels) but as the user zooms in and the screen real-estate increases I want to display more i.e. include the less important points. This is all doable via the scale filters, but causes an undesirable issue in areas where there are a low numbers of points – they only become visible when you are zoomed in. In these areas I would like to be able to display the less important points at the same time as limiting the display of points in the more congested areas to only show the important ones.

Any ideas on how to achieve this?

Thanks

Chris

*** This communication has been sent from World Fuel Services
Corporation or its subsidiaries or its affiliates for the intended recipient
only and may contain proprietary, confidential or privileged information.
If you are not the intended recipient, any review, disclosure, copying,
use, or distribution of the information included in this communication
and any attachments is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to this
communication and delete the communication, including any
attachments, from your computer. Electronic communications sent to or
from World Fuel Services Corporation or its subsidiaries or its affiliates
may be monitored for quality assurance and compliance purposes.***

------------------------------------------------------------------------------ Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only – learn more at: http://p.sf.net/sfu/learnmore_122812
_______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users

Chris,

That’s right: the approach I outlined in my previous posting achieves a z-order of the rendering, though it doesn’t address the overlap. A next approach is actually to “abuse” the :

  1. Use a type face that contains the symbols you would like to plot, e.g, “OpenSymbol”, “Symbol”

  2. A tag can actually contain an tag, typically used to render so-called highway shields. You would put a space or dot for a label and add an -tag to hold the symbol would like to plot:

**.** Liberation Sans 10 0.5 0.5 #ff0000 **** **** **** **image/svg+xml** ****


150000
20

If you are using a dot for a label, make sure to have it the same colour as your symbol :wink:

HTH

Edward


From: CHaste@anonymised.com
To: emacgillavry@anonymised.com
Date: Fri, 4 Jan 2013 08:03:22 -0500
Subject: RE: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

Thanks Edward.

If I understand you correctly that will simply achieve a sort of z-order to the rendering – placing the important symbols on top of the less important ones? If that is the case it isn’t really what I am trying to achieve as that would look rather messy. I want to hide the less important symbols if there isn’t room to render them.

From: Edward Mac Gillavry [mailto:emacgillavry@anonymised.com]
Sent: 04 January 2013 12:29
To: Chris Haste; stefan.engelhardt@anonymised.com; geoserver-users@lists.sourceforge.net
Subject: RE: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

Use multiple tags in your SLD. First tags contain least important symbols, while consecutive -tags contain more important symbols. You can use the ogc:Filter to specify the attribute that indicates the importance of the symbol.

Each tag makes a full scan of the table and draws only the features that satisfy the ogc:Filter statement. Thus the most important symbols are drawn last on top of the less important symbols.

Regards,

Edward


From: CHaste@anonymised.com
To: Stefan.Engelhardt@anonymised.com; geoserver-users@lists.sourceforge.net
Date: Fri, 4 Jan 2013 07:04:45 -0500
Subject: Re: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

Thanks Stefan,

But my understanding is that that only applies to labels… it is control over the point symbols that I need/want.

Brgrds,

Chris

From: Stefan Engelhardt (HBT) [mailto:Stefan.Engelhardt@anonymised.com]
Sent: 04 January 2013 11:53
To: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

Hi Chris,

without having done it by myself, I would expect, that priority would give you what you want:

http://docs.geoserver.org/2.1.0/user/styling/sld-reference/labeling.html

Cheers

Stefan

From: Chris Haste [mailto:CHaste@anonymised.com]
Sent: Friday, January 04, 2013 12:19 PM
To: geoserver-users@lists.sourceforge.net
Subject: [bulk]: [Geoserver-users] Decluttering/SLD/CSS

Hello list and HNY to you all!

This is probably a very basic question so if someone can point me in the right direction it would be greatly appreciated.

I understand how to control labelling based on zoom level, priority and z-order to manage the clarity of the map. I also understand how to display or not display point symbols based on zoom level filters.

BUT I can’t work out how to control drawing symbols with the same degree of control as I have over labels.

I have points on a map that are more important than others but are all in the same layer. In areas where there are a lot of points, and the scale doesn’t support drawing them all clearly, I want to only display just the important ones (and their labels) but as the user zooms in and the screen real-estate increases I want to display more i.e. include the less important points. This is all doable via the scale filters, but causes an undesirable issue in areas where there are a low numbers of points – they only become visible when you are zoomed in. In these areas I would like to be able to display the less important points at the same time as limiting the display of points in the more congested areas to only show the important ones.

Any ideas on how to achieve this?

Thanks

Chris

*** This communication has been sent from World Fuel Services
Corporation or its subsidiaries or its affiliates for the intended recipient
only and may contain proprietary, confidential or privileged information.
If you are not the intended recipient, any review, disclosure, copying,
use, or distribution of the information included in this communication
and any attachments is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to this
communication and delete the communication, including any
attachments, from your computer. Electronic communications sent to or
from World Fuel Services Corporation or its subsidiaries or its affiliates
may be monitored for quality assurance and compliance purposes.***

------------------------------------------------------------------------------ Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only – learn more at: http://p.sf.net/sfu/learnmore_122812
_______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users

Ahh, now that is interesting. I did wonder about going down that route.

Would anyone know if that ‘abuse’ is workable using CSS?

From: Edward Mac Gillavry [mailto:emacgillavry@anonymised.com]
Sent: 04 January 2013 13:41
To: Chris Haste; geoserver-users@anonymised.comeforge.net
Subject: RE: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

Chris,

That’s right: the approach I outlined in my previous posting achieves a z-order of the rendering, though it doesn’t address the overlap. A next approach is actually to “abuse” the :

  1. Use a type face that contains the symbols you would like to plot, e.g, “OpenSymbol”, “Symbol”

  2. A tag can actually contain an tag, typically used to render so-called highway shields. You would put a space or dot for a label and add an -tag to hold the symbol would like to plot:

**.** Liberation Sans 10 0.5 0.5 #ff0000 **** **** **** **image/svg+xml** ****


150000
20

If you are using a dot for a label, make sure to have it the same colour as your symbol :wink:

HTH

Edward


From: CHaste@anonymised.com.2992…
To: emacgillavry@anonymised.com
Date: Fri, 4 Jan 2013 08:03:22 -0500
Subject: RE: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

Thanks Edward.

If I understand you correctly that will simply achieve a sort of z-order to the rendering – placing the important symbols on top of the less important ones? If that is the case it isn’t really what I am trying to achieve as that would look rather messy. I want to hide the less important symbols if there isn’t room to render them.

From: Edward Mac Gillavry [mailto:emacgillavry@anonymised.com]
Sent: 04 January 2013 12:29
To: Chris Haste; stefan.engelhardt@anonymised.com; geoserver-users@anonymised.comrceforge.net
Subject: RE: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

Use multiple tags in your SLD. First tags contain least important symbols, while consecutive -tags contain more important symbols. You can use the ogc:Filter to specify the attribute that indicates the importance of the symbol.

Each tag makes a full scan of the table and draws only the features that satisfy the ogc:Filter statement. Thus the most important symbols are drawn last on top of the less important symbols.

Regards,

Edward


From: CHaste@…2992…
To: Stefan.Engelhardt@anonymised.com; geoserver-users@anonymised.comeforge.net
Date: Fri, 4 Jan 2013 07:04:45 -0500
Subject: Re: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

Thanks Stefan,

But my understanding is that that only applies to labels… it is control over the point symbols that I need/want.

Brgrds,

Chris

From: Stefan Engelhardt (HBT) [mailto:Stefan.Engelhardt@anonymised.com]
Sent: 04 January 2013 11:53
To: geoserver-users@anonymised.comge.net
Subject: Re: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

Hi Chris,

without having done it by myself, I would expect, that priority would give you what you want:

http://docs.geoserver.org/2.1.0/user/styling/sld-reference/labeling.html

Cheers

Stefan

From: Chris Haste [mailto:CHaste@anonymised.com]
Sent: Friday, January 04, 2013 12:19 PM
To: geoserver-users@anonymised.comeforge.net
Subject: [bulk]: [Geoserver-users] Decluttering/SLD/CSS

Hello list and HNY to you all!

This is probably a very basic question so if someone can point me in the right direction it would be greatly appreciated.

I understand how to control labelling based on zoom level, priority and z-order to manage the clarity of the map. I also understand how to display or not display point symbols based on zoom level filters.

BUT I can’t work out how to control drawing symbols with the same degree of control as I have over labels.

I have points on a map that are more important than others but are all in the same layer. In areas where there are a lot of points, and the scale doesn’t support drawing them all clearly, I want to only display just the important ones (and their labels) but as the user zooms in and the screen real-estate increases I want to display more i.e. include the less important points. This is all doable via the scale filters, but causes an undesirable issue in areas where there are a low numbers of points – they only become visible when you are zoomed in. In these areas I would like to be able to display the less important points at the same time as limiting the display of points in the more congested areas to only show the important ones.

Any ideas on how to achieve this?

Thanks

Chris

*** This communication has been sent from World Fuel Services
Corporation or its subsidiaries or its affiliates for the intended recipient
only and may contain proprietary, confidential or privileged information.
If you are not the intended recipient, any review, disclosure, copying,
use, or distribution of the information included in this communication
and any attachments is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to this
communication and delete the communication, including any
attachments, from your computer. Electronic communications sent to or
from World Fuel Services Corporation or its subsidiaries or its affiliates
may be monitored for quality assurance and compliance purposes.***

------------------------------------------------------------------------------ Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only – learn more at: http://p.sf.net/sfu/learnmore_122812
_______________________________________________ Geoserver-users mailing list Geoserver-users@anonymised.comsts.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users

It should be usable in CSS, although I’ve not tried it. The CSS equivalent of Edward Mac Gillavry’s example would be:

  • {
    label: “.”;
    font-family: “Liberation Sans”;
    font-size: 10;
    label-anchor: 0.5 0.5;
    font-fill: #ff0000;
    shield: url(/symbols/red.svg);
    shield-mime: “image/svg”;
    -gt-label-priority: 150000;
    -gt-label-padding: 20;
    }

I will note that since the labeling priority is used to sort WITHIN a layer it is a little unusual to make it a constant value; normally you would put a reference to a numeric field for sorting in it.

···

On Fri, Jan 4, 2013 at 9:08 AM, Chris Haste <CHaste@anonymised.com> wrote:

Ahh, now that is interesting. I did wonder about going down that route.

Would anyone know if that ‘abuse’ is workable using CSS?

From: Edward Mac Gillavry [mailto:emacgillavry@anonymised.com]
Sent: 04 January 2013 13:41
To: Chris Haste; geoserver-users@lists.sourceforge.net

Subject: RE: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

Chris,

That’s right: the approach I outlined in my previous posting achieves a z-order of the rendering, though it doesn’t address the overlap. A next approach is actually to “abuse” the :

  1. Use a type face that contains the symbols you would like to plot, e.g, “OpenSymbol”, “Symbol”

  2. A tag can actually contain an tag, typically used to render so-called highway shields. You would put a space or dot for a label and add an -tag to hold the symbol would like to plot:

**.** Liberation Sans 10 0.5 0.5 #ff0000 **** **** **** **image/svg+xml** ****


150000
20

If you are using a dot for a label, make sure to have it the same colour as your symbol :wink:

HTH

Edward


From: CHaste@anonymised.com
To: emacgillavry@anonymised.com
Date: Fri, 4 Jan 2013 08:03:22 -0500
Subject: RE: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

Thanks Edward.

If I understand you correctly that will simply achieve a sort of z-order to the rendering – placing the important symbols on top of the less important ones? If that is the case it isn’t really what I am trying to achieve as that would look rather messy. I want to hide the less important symbols if there isn’t room to render them.

From: Edward Mac Gillavry [mailto:emacgillavry@anonymised.com]
Sent: 04 January 2013 12:29
To: Chris Haste; stefan.engelhardt@anonymised.com184…; geoserver-users@lists.sourceforge.net
Subject: RE: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

Use multiple tags in your SLD. First tags contain least important symbols, while consecutive -tags contain more important symbols. You can use the ogc:Filter to specify the attribute that indicates the importance of the symbol.

Each tag makes a full scan of the table and draws only the features that satisfy the ogc:Filter statement. Thus the most important symbols are drawn last on top of the less important symbols.

Regards,

Edward


From: CHaste@anonymised.com2992…
To: Stefan.Engelhardt@anonymised.com; geoserver-users@lists.sourceforge.net
Date: Fri, 4 Jan 2013 07:04:45 -0500
Subject: Re: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

Thanks Stefan,

But my understanding is that that only applies to labels… it is control over the point symbols that I need/want.

Brgrds,

Chris

From: Stefan Engelhardt (HBT) [mailto:Stefan.Engelhardt@anonymised.com]
Sent: 04 January 2013 11:53
To: geoserver-users@anonymised.comceforge.net
Subject: Re: [Geoserver-users] [bulk]: Decluttering/SLD/CSS

Hi Chris,

without having done it by myself, I would expect, that priority would give you what you want:

http://docs.geoserver.org/2.1.0/user/styling/sld-reference/labeling.html

Cheers

Stefan

From: Chris Haste [mailto:CHaste@anonymised.com]
Sent: Friday, January 04, 2013 12:19 PM
To: geoserver-users@lists.sourceforge.net
Subject: [bulk]: [Geoserver-users] Decluttering/SLD/CSS

Hello list and HNY to you all!

This is probably a very basic question so if someone can point me in the right direction it would be greatly appreciated.

I understand how to control labelling based on zoom level, priority and z-order to manage the clarity of the map. I also understand how to display or not display point symbols based on zoom level filters.

BUT I can’t work out how to control drawing symbols with the same degree of control as I have over labels.

I have points on a map that are more important than others but are all in the same layer. In areas where there are a lot of points, and the scale doesn’t support drawing them all clearly, I want to only display just the important ones (and their labels) but as the user zooms in and the screen real-estate increases I want to display more i.e. include the less important points. This is all doable via the scale filters, but causes an undesirable issue in areas where there are a low numbers of points – they only become visible when you are zoomed in. In these areas I would like to be able to display the less important points at the same time as limiting the display of points in the more congested areas to only show the important ones.

Any ideas on how to achieve this?

Thanks

Chris

*** This communication has been sent from World Fuel Services
Corporation or its subsidiaries or its affiliates for the intended recipient
only and may contain proprietary, confidential or privileged information.
If you are not the intended recipient, any review, disclosure, copying,
use, or distribution of the information included in this communication
and any attachments is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to this
communication and delete the communication, including any
attachments, from your computer. Electronic communications sent to or
from World Fuel Services Corporation or its subsidiaries or its affiliates
may be monitored for quality assurance and compliance purposes.***

------------------------------------------------------------------------------ Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only – learn more at: http://p.sf.net/sfu/learnmore_122812
_______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users


Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only – learn more at:
http://p.sf.net/sfu/learnmore_122812


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

You could also have a look at the PointStacker rendering transformation:

http://suite.opengeo.org/opengeo-docs/cartography/rt/pointstacker.html

It probably won’t do exactly what you want, but it would be fairly simple to either extend it or modify it to provide functionality very similar to the deconfliction capability currently in the labeller. This would be a cleaner and more versatile approach, I think, and would be a nice addition to GeoServer styling.

On Fri, Jan 4, 2013 at 3:53 AM, Stefan Engelhardt (HBT) <Stefan.Engelhardt@anonymised.com> wrote:

Hi Chris,

without having done it by myself, I would expect, that priority would give you what you want:

http://docs.geoserver.org/2.1.0/user/styling/sld-reference/labeling.html

Cheers

Stefan

From: Chris Haste [mailto:CHaste@anonymised.com]
Sent: Friday, January 04, 2013 12:19 PM
To: geoserver-users@lists.sourceforge.net
Subject: [bulk]: [Geoserver-users] Decluttering/SLD/CSS

Hello list and HNY to you all!

This is probably a very basic question so if someone can point me in the right direction it would be greatly appreciated.

I understand how to control labelling based on zoom level, priority and z-order to manage the clarity of the map. I also understand how to display or not display point symbols based on zoom level filters.

BUT I can’t work out how to control drawing symbols with the same degree of control as I have over labels.

I have points on a map that are more important than others but are all in the same layer. In areas where there are a lot of points, and the scale doesn’t support drawing them all clearly, I want to only display just the important ones (and their labels) but as the user zooms in and the screen real-estate increases I want to display more i.e. include the less important points. This is all doable via the scale filters, but causes an undesirable issue in areas where there are a low numbers of points – they only become visible when you are zoomed in. In these areas I would like to be able to display the less important points at the same time as limiting the display of points in the more congested areas to only show the important ones.

Any ideas on how to achieve this?

Martin Davis
OpenGeo - http://opengeo.org
Expert service straight from the developers.