Re: [Geoserver-users] CSS Question

2013-01-04 Thread Chris Haste
A bit belated, only just got back to this, but... Thank you! Yes, that does help and make things clearer. Brgrds, Chris From: David Winslow [mailto:dwins...@opengeo.org] Sent: 06 December 2012 14:55 To: Chris Haste Cc: geoserver-users@lists.sourceforge.net Subject: Re: [Geoserver-users] CSS

[Geoserver-users] CSS Question

2012-12-06 Thread Chris Haste
Hello list! I am using an SQL view which returns multiple geometries in each row. Each row represents a trip and contains Departure and Destination points and a linestring representing the route taken. I'm not sure how to use CSS to define different symbols based on the SQL columns. E.g. use a

Re: [Geoserver-users] CSS Question

2012-12-06 Thread David Winslow
I added some examples to the examples page about this topic. It'll be a little while before it shows up on docs.geoserver.org, but you can see it immediately at: https://github.com/geoserver/geoserver/blob/master/doc/en/user/source/community/css/examples.rst Hope it clears things up for you! --

[Geoserver-users] CSS Question

2012-07-24 Thread Guntu, Ashok (IS) (Contr)
Hi, I am including a css in my description.ftl . I apply certain styles to a td. I notice in my placemark that the styles does not get applied. However, in the preview on the left (in TOC) under the title I see that the styles work correctly. Was wondering if anybody has come across this

Re: [Geoserver-users] CSS Question

2012-04-30 Thread David Winslow
You can use any ECQL expression in your CSS filters. [IEEERemainder(longitude, 10) = 0][IEEERemainder(latitude, 10) = 0] { ... } Keep in mind that even slightly complicated filters can defeat the simplification algorithm in the CSS compiler and make the SLD output very large - so generally

Re: [Geoserver-users] css Question

2012-03-16 Thread Charles Galpin
@lists.sourceforge.net Subject: Re: [Geoserver-users] css Question The CSS module never collapses whitespace inside of quotes, even across linebreaks. Additionally, in the special case of labels any number of property values will be implicitly wrapped up in calls to the concat function

Re: [Geoserver-users] css Question

2012-03-16 Thread Chris Haste
@lists.sourceforge.net Subject: Re: [Geoserver-users] css Question Chris, I'm not sure if you got an answer or not, but this works today. In fact the snippet he shows below should do exactly what you asked for - notice the line break is quoted so it is retained. hth charles On Mar 15, 2012, at 1:16 PM

Re: [Geoserver-users] css Question

2012-03-16 Thread Chris Haste
[mailto:cha...@airdata.co.uk] Sent: 16 March 2012 12:37 To: Charles Galpin Cc: David Winslow; geoserver-users@lists.sourceforge.net Subject: Re: [Geoserver-users] css Question Thank you, Charles. I was being a bit dense. I assumed that the example he gave was simply formatted like that due to wrapping

Re: [Geoserver-users] css Question

2012-03-16 Thread Andrea Aime
On Fri, Mar 16, 2012 at 1:57 PM, Chris Haste cha...@airdata.co.uk wrote: I may have spoken to soon! Yes, that does give me multiple lines for the label, but it appears to cause an issue with the positioning of that text within a shield. I’m using a square symbol in ‘stretch’ mode for the

Re: [Geoserver-users] css Question

2012-03-16 Thread Charles Galpin
Is the text positioned ok when you use SLD? The CSS module just generates SLD so if it works with hand generated SLD, then perhaps it is not in GeoTools but a difference between the SLD. charles On Mar 16, 2012, at 9:23 AM, Andrea Aime wrote: On Fri, Mar 16, 2012 at 1:57 PM, Chris Haste

[Geoserver-users] css Question

2012-03-15 Thread Chris Haste
Hello All, I'm trying to use the CSS styling Module and can't figure out how to use the SLD ![CDATA[]] construct from within the CSS to ensure that my label consists of two lines. How would the following SLD be represented in CSS? Label

Re: [Geoserver-users] css Question

2012-03-15 Thread David Winslow
The CSS module never collapses whitespace inside of quotes, even across linebreaks. Additionally, in the special case of labels any number of property values will be implicitly wrapped up in calls to the concat function, similar to the handling of multiple values in SLD. * { label:

Re: [Geoserver-users] css Question

2012-03-15 Thread Chris Haste
: geoserver-users@lists.sourceforge.net Subject: Re: [Geoserver-users] css Question The CSS module never collapses whitespace inside of quotes, even across linebreaks. Additionally, in the special case of labels any number of property values will be implicitly wrapped up in calls to the concat