Friday, 15 March 2013

geoserver wms layer drawing incomplet in openlayers 3 -



geoserver wms layer drawing incomplet in openlayers 3 -

i have wms layer geoserver next :

wmslayer = new ol.layer.tile({ source: new ol.source.tilewms(({ url: 'http://localhost:8080/geoserver/wms', params: { 'layers': 'poste:layer', 'tiled': true, 'styles': 'stylelayer' } })) }); map.addlayer(wmslayer);

and stylelayer in sld

<rule> <name>rule1</name> <title>red square</title> <abstract>a 6 pixel square reddish fill , no stroke</abstract> <pointsymbolizer> <graphic> <mark> <wellknownname>circle</wellknownname> <fill> <cssparameter name="fill">#ff0000</cssparameter> </fill> </mark> <size> <ogc:propertyname>taille</ogc:propertyname> </size> </graphic> </pointsymbolizer> </rule>

and result : (the probleme dont know why drawing incomplet)

the symbols cutting @ tile boundaries. see http://gis.stackexchange.com/questions/87116/geoserver-cut-off-symbols-close-to-tile-edges similar question.

openlayers geoserver

No comments:

Post a Comment