Sounds like it's finally time for me to wade into GeoTools. I assume this is an "easy" patch?
Steve http://www.clemetparks.com/images/esig/cmp-ms-90x122.pngStephen Mather Geographic Information Systems (GIS) Manager (216) 635-3243 [email protected] <http://www.clemetparks.com/> clevelandmetroparks.com From: [email protected] [mailto:[email protected]] On Behalf Of Andrea Aime Sent: Friday, July 15, 2011 10:37 AM To: [email protected] Cc: [email protected] Subject: Re: [Geoserver-users] Labeling lines-- Contours On Fri, Jul 15, 2011 at 4:05 PM, Stephen V. Mather <[email protected]> wrote: Hi All, This is probably a fussy question, but I want to label my contours with the font of the label facing upright from the downslope side, so the map reader can always tell which way is uphill. If I use the vendor option: <VendorOption name="forceLeftToRight">false</VendorOption> I get the opposite of what I want (i.e my geometries run the wrong way). Short of reversing all my geometries' orientation so that the labels will face the right way, might there be another trick with, e.g. a filter function to get the result I want, or am I asking too much from a filter function? Filter functions + geometry transformations would be the right fit for your case, unfortunately we don't have one to reverse a linestring, but it can be built. See in GeoTools, library/main, the list of existing functions, and in META-INF of the same module, the registration that makes them pluggable: this should give you enough to implement yours if you want to, doing the actual reverse is a matter of calling the "reverse" method on the linestring/multilinestring 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 -------------------------------------------------------
<<image001.png>>
------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
