Geoserver WMS Circle SLD style return incomplete Circle with higher zoom levels

المشرف العام

Administrator
طاقم الإدارة
I'm using OpenGeo Suite Boundless v2.6

I created a SLD style for a points layer and create 2 rules:

  • Rule to draw a graphics icon from png file.
  • Rule to draw a circle with radius(size) from db table using (OGC Attribute) value in meters.
I use the following code to load the layer in OL3:

var wmsSource = new ol.source.TileWMS ({ url: 'http://localhost:8080/geoserver/wms', params: {'TILED': true, VERSION:'1.3.0', 'LAYERS': 'myds:antenna', }, serverType: 'geoserver'});new ol.layer.Tile({ id:'Message', title: 'Antennas', visible: true , source:wmsSource });The layer loaded correctly on the map in some lower zoom levels (0-10) if i zoomed in to more levels down (11-17) the circle shape is trimmed by the tiles like the image below:



The strange thing when i set the 2nd rule in the SLD that to get a fixed radius value like (2000) meters - Not from db table -, it draw a complete circle in all zoom levels, but i need to set a different radius for each circle.

I tried many solutions to avoid this error by changing the metatiling factors to be 100x100 instead of 4x4 and change the Gutter to be 100px, it solve the problem but affect the loading speed badly.

So kindly help me solve this problem.



أكثر...
 
أعلى