Re: [Geoserver-users] Disperse Markers in geoserver/openlayers
Hi, again I tried altering your example ( http://demo1.geo-solutions.it/playground/styles/displace.sld ) using different marker sizes without luck. What I'am doing wrong :-) -Håvard ?xml version=1.0 encoding=ISO-8859-1? StyledLayerDescriptor version=1.0.0 xsi:schemaLocation=http://www.opengis.net/sld StyledLayerDescriptor.xsd xmlns=http://www.opengis.net/sld; xmlns:ogc=http://www.opengis.net/ogc; xmlns:xlink=http://www.w3.org/1999/xlink; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; NamedLayer NameAttribute-based point/Name UserStyle TitleGeoServer SLD Cook Book: Attribute-based point/Title FeatureTypeStyle Rule NameSmallPop/Name Title1 to 5/Title ogc:Filter ogc:PropertyIsLessThan ogc:PropertyNameincome_200/ogc:PropertyName ogc:Literal5/ogc:Literal /ogc:PropertyIsLessThan /ogc:Filter TextSymbolizer Label![CDATA[ ]]/Label Graphic Mark WellKnownNamecircle/WellKnownName Fill CssParameter name=fill ogc:Literal#00/ogc:Literal /CssParameter /Fill Stroke CssParameter name=stroke ogc:Literal#FF/ogc:Literal /CssParameter CssParameter name=stroke-width ogc:Literal2/ogc:Literal /CssParameter /Stroke /Mark Opacity ogc:Literal1.0/ogc:Literal /Opacity Size ogc:Literal5/ogc:Literal /Size /Graphic LabelPlacement PointPlacement AnchorPoint AnchorPointX0.5/AnchorPointX AnchorPointY0.5/AnchorPointY /AnchorPoint /PointPlacement /LabelPlacement VendorOption name=maxDisplacement16/VendorOption /TextSymbolizer /Rule Rule NameMediumPop/Name Title5 to 10/Title ogc:Filter ogc:And ogc:PropertyIsGreaterThanOrEqualTo ogc:PropertyNameincome_200/ogc:PropertyName ogc:Literal5/ogc:Literal /ogc:PropertyIsGreaterThanOrEqualTo ogc:PropertyIsLessThan ogc:PropertyNameincome_200/ogc:PropertyName ogc:Literal10/ogc:Literal /ogc:PropertyIsLessThan /ogc:And /ogc:Filter TextSymbolizer Label![CDATA[ ]]/Label Graphic Mark WellKnownNamecircle/WellKnownName Fill CssParameter name=fill ogc:Literal#00/ogc:Literal /CssParameter /Fill Stroke CssParameter name=stroke ogc:Literal#FF/ogc:Literal /CssParameter CssParameter name=stroke-width ogc:Literal2/ogc:Literal /CssParameter /Stroke /Mark Opacity ogc:Literal1.0/ogc:Literal /Opacity Size ogc:Literal8/ogc:Literal /Size /Graphic LabelPlacement PointPlacement AnchorPoint AnchorPointX0.5/AnchorPointX AnchorPointY0.5/AnchorPointY /AnchorPoint /PointPlacement /LabelPlacement VendorOption name=maxDisplacement16/VendorOption /TextSymbolizer /Rule Rule NameLargePop/Name TitleGreater than 10/Title ogc:Filter ogc:PropertyIsGreaterThanOrEqualTo ogc:PropertyNameincome_200/ogc:PropertyName ogc:Literal10/ogc:Literal /ogc:PropertyIsGreaterThanOrEqualTo /ogc:Filter TextSymbolizer Label![CDATA[ ]]/Label Graphic Mark WellKnownNamecircle/WellKnownName Fill CssParameter name=fill ogc:Literal#00/ogc:Literal /CssParameter /Fill Stroke CssParameter name=stroke ogc:Literal#FF/ogc:Literal /CssParameter CssParameter name=stroke-width ogc:Literal2/ogc:Literal /CssParameter /Stroke /Mark Opacity ogc:Literal1.0/ogc:Literal /Opacity
Re: [Geoserver-users] Disperse Markers in geoserver/openlayers
Thanks, but how easy would it be to use the two methods together(clustering and declustering) when zooming to different levels(like Spatialkey.com) ? Maybe by using multiple levels? Also, what about on the fly cubic interpolation of point values. It's not very computer intensive(Spatialkey.com use that as well on points). -Håvard 2011/9/22 Andrea Aime andrea.a...@geo-solutions.it: 2011/9/22 Håvard Wahl Kongsgård haavard.kongsga...@gmail.com: Hi, I have a problem with overlapping points(identical XY). Googling I found that Arcgis has a useful tool Disperse Markers which expands clustered(overlapping points) http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?id=1313pid=1306topicname=Disperse_Markers_(Cartography) . Is a similar feature available in geoserver/openlayers for expanding point clusters on the fly? The math behind it must be very simple, so the alternative is to created a new geom in postigs with expanded clusters. There is a little trick you can employ. Text symbolizers in GeoServer can be associated to a graphic, which in the original intention was the road plate, a background graphic that would be moved along with the label Now, if your label is empty space you can use label displacement to actually move away the points in a controlled way. The downside if you want is that if a new position cannot be found, not even by moving it around within the specified distance, the point won't be painted at all. Here is an example map with cities: http://demo1.geo-solutions.it/playground/GeoSolutions/wms?LAYERS=GeoSolutions%3AcitiesSTYLES=starsFORMAT=image%2FpngSERVICE=WMSVERSION=1.1.1REQUEST=GetMapEXCEPTIONS=application%2Fvnd.ogc.se_inimageSRS=EPSG%3A4326BBOX=-0.59257250976506,38.661416015626,24.887332275391,51.617299804688WIDTH=649HEIGHT=330 and here is the same with the trick above: http://demo1.geo-solutions.it/playground/GeoSolutions/wms?LAYERS=GeoSolutions%3AcitiesSTYLES=displaceFORMAT=image%2FpngSERVICE=WMSVERSION=1.1.1REQUEST=GetMapEXCEPTIONS=application%2Fvnd.ogc.se_inimageSRS=EPSG%3A4326BBOX=-0.59257250976506,38.661416015626,24.887332275391,51.617299804688WIDTH=649HEIGHT=330 I guess you'll need to play a bit with it to get it right, but it may work. The full style is here: http://demo1.geo-solutions.it/playground/styles/displace.sld Cheers Andrea -- --- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf --- -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 ___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Disperse Markers in geoserver/openlayers
2011/9/23 Håvard Wahl Kongsgård haavard.kongsga...@gmail.com: Thanks, but how easy would it be to use the two methods together(clustering and declustering) when zooming to different levels(like Spatialkey.com) ? Maybe by using multiple levels? Also, what about on the fly cubic interpolation of point values. It's not very computer intensive(Spatialkey.com use that as well on points). Two good ideas, both would require some programming work to be implemented. I guess both would fit well the rendering transformations approach that we have on trunk: http://geo-solutions.blogspot.com/2011/01/developers-corner-have-your-sld.html http://docs.codehaus.org/display/GEOTOOLS/Rendering+transformations (the second link contains details, but does not seem to work at the moment) Cheers Andrea -- --- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf --- -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 ___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
[Geoserver-users] Disperse Markers in geoserver/openlayers
Hi, I have a problem with overlapping points(identical XY). Googling I found that Arcgis has a useful tool Disperse Markers which expands clustered(overlapping points) http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?id=1313pid=1306topicname=Disperse_Markers_(Cartography) . Is a similar feature available in geoserver/openlayers for expanding point clusters on the fly? The math behind it must be very simple, so the alternative is to created a new geom in postigs with expanded clusters. -- Håvard Wahl Kongsgård -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Disperse Markers in geoserver/openlayers
OpenLayers can do clustering, I'm not sure if it's easy to expand the cluster out into individual points. http://openlayers.org/dev/examples/strategy-cluster.html -- David Winslow OpenGeo - http://opengeo.org/ 2011/9/22 Håvard Wahl Kongsgård haavard.kongsga...@gmail.com Hi, I have a problem with overlapping points(identical XY). Googling I found that Arcgis has a useful tool Disperse Markers which expands clustered(overlapping points) http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?id=1313pid=1306topicname=Disperse_Markers_(Cartography) . Is a similar feature available in geoserver/openlayers for expanding point clusters on the fly? The math behind it must be very simple, so the alternative is to created a new geom in postigs with expanded clusters. -- Håvard Wahl Kongsgård -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
Re: [Geoserver-users] Disperse Markers in geoserver/openlayers
2011/9/22 Håvard Wahl Kongsgård haavard.kongsga...@gmail.com: Hi, I have a problem with overlapping points(identical XY). Googling I found that Arcgis has a useful tool Disperse Markers which expands clustered(overlapping points) http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?id=1313pid=1306topicname=Disperse_Markers_(Cartography) . Is a similar feature available in geoserver/openlayers for expanding point clusters on the fly? The math behind it must be very simple, so the alternative is to created a new geom in postigs with expanded clusters. There is a little trick you can employ. Text symbolizers in GeoServer can be associated to a graphic, which in the original intention was the road plate, a background graphic that would be moved along with the label Now, if your label is empty space you can use label displacement to actually move away the points in a controlled way. The downside if you want is that if a new position cannot be found, not even by moving it around within the specified distance, the point won't be painted at all. Here is an example map with cities: http://demo1.geo-solutions.it/playground/GeoSolutions/wms?LAYERS=GeoSolutions%3AcitiesSTYLES=starsFORMAT=image%2FpngSERVICE=WMSVERSION=1.1.1REQUEST=GetMapEXCEPTIONS=application%2Fvnd.ogc.se_inimageSRS=EPSG%3A4326BBOX=-0.59257250976506,38.661416015626,24.887332275391,51.617299804688WIDTH=649HEIGHT=330 and here is the same with the trick above: http://demo1.geo-solutions.it/playground/GeoSolutions/wms?LAYERS=GeoSolutions%3AcitiesSTYLES=displaceFORMAT=image%2FpngSERVICE=WMSVERSION=1.1.1REQUEST=GetMapEXCEPTIONS=application%2Fvnd.ogc.se_inimageSRS=EPSG%3A4326BBOX=-0.59257250976506,38.661416015626,24.887332275391,51.617299804688WIDTH=649HEIGHT=330 I guess you'll need to play a bit with it to get it right, but it may work. The full style is here: http://demo1.geo-solutions.it/playground/styles/displace.sld Cheers Andrea -- --- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf --- -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users