Hi Antonio, I think you should specify the geometry to use not only on LineSymbolizer and PointSymbolizer, but also on TextSymbolizer(s), to let GeoServer know where to put the label, which geometry to use as a center point.
Thanks. 2013/1/14 Antonio Parrotta <antonioparro...@gmail.com> > Hi, > > I have a layer with a linestring and point columns. I need to style a > linestring with an attribute "prog" and an arrow (following line). In the > same layer I have to render the point as well that is in a separate column > with attribute "label_closer" and the_geom_closer geometry. > > > I followed suggestion from > > http://docs.geoserver.org/stable/en/user/styling/sld-tipstricks/mixed-geometries.html > > > here is the result. > > [image: Inline images 2] > > the label near the arrow is not the "prog" attribute (that is missing) but > the label_closer that should be rendered on point instead. Attached the > full sld. > > thanks > - Antonio > > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 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_122412 > _______________________________________________ > Geoserver-users mailing list > Geoserver-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geoserver-users > > -- == Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information. == Dott. Mauro Bartolomeoli @mauro_bart Senior Software Engineer GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 http://www.geo-solutions.it http://twitter.com/geosolutions_it -------------------------------------------------------
<<image.png>>
------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 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_122412
_______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users