Thank you so much for your response, but the icons in your example are still 
overlapped with each other when they at the scale 1:9M.
The issue is the overlapped icons could show just one icon but all icons.


Another question about your example which is not related with the issue is it's 
a shp with both PolygonSymbolizer and Point Symbolizer?


PS:how to paste the pictures here?


Thank you so much. 


Regards,
Zhao



-----原始邮件-----
发件人:"tõnis kärdi" <tonis.ka...@gmail.com>
发送时间:2017-11-08 04:28:04 (星期三)
收件人: "赵小杰" <zha...@radi.ac.cn>
抄送: geoserver-users@lists.sourceforge.net
主题: Re: [Geoserver-users] How to avoid the icons of point symbolizers 
overlapping


I had the same issue some time ago and ended up using TextSymbolizers instead 
at smaller scales and PointSymbolizers only at larger scales. You can check for 
an example over at 
https://github.com/e-gov/kem-gsavalik/blob/master/src/workspaces/keskkonnainfo/styles/ka.ristipuu.default.sld#L108.
 That's using external graphics but the idea works with any symbol 'flavour'. A 
preview of that style is available at 
https://gsavalik.envir.ee/geoserver/keskkonnainfo/ows?service=WMS&version=1.1.0&request=GetMap&layers=keskkonnainfo:ristipuud&styles=&bbox=338209,6233220,838446,6733457&width=600&height=300&srs=EPSG:3301&format=application/openlayers


As an alternative you could also have a look at PointStacker maybe?


All the best,
Tõnis




07.11.2017 6:11 PM kirjutas kuupäeval "赵小杰" <zha...@radi.ac.cn>:

The points use a graphic as the point symbolizer, when they are located very 
close together, the icons overlap.
I want them to show without icons overlapped, when there are several points 
around, just one icon with the label shows.
I have tried to make the graphic icon as the background graphic, then the icons 
can be moved along with the label. But the icon is overlapped by the label.
Are there other methods to solve the problem?



--

赵小杰
中国科学院遥感与数字地球研究所
地址:北京市朝阳区大屯路天地科学园区9718信箱13分箱 邮编:100101
Tel:86-010-64806211
Mobile:008615210902283
E-mail:zha...@radi.ac.cn
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to