[Geoserver-users] CSS Question

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 triangle for the Departure and a square for the Destination

I would like to do something like this:

[Departure]{

mark:symbol(triangle);

}

[Destination]{

Mark:symbol(square);

}

But that doesn’t appear to be the way to go :wink:

Any help appreciated!

Chris

*** This communication has been sent from World Fuel Services
Corporation or its subsidiaries or its affiliates for the intended recipient
only and may contain proprietary, confidential or privileged information.
If you are not the intended recipient, any review, disclosure, copying,
use, or distribution of the information included in this communication
and any attachments is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to this
communication and delete the communication, including any
attachments, from your computer. Electronic communications sent to or
from World Fuel Services Corporation or its subsidiaries or its affiliates
may be monitored for quality assurance and compliance purposes.***

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!

···

On Thu, Dec 6, 2012 at 5:14 AM, Chris Haste <CHaste@anonymised.com> wrote:

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 triangle for the Departure and a square for the Destination

I would like to do something like this:

[Departure]{

mark:symbol(triangle);

}

[Destination]{

Mark:symbol(square);

}

But that doesn’t appear to be the way to go :wink:

Any help appreciated!

Chris

*** This communication has been sent from World Fuel Services
Corporation or its subsidiaries or its affiliates for the intended recipient
only and may contain proprietary, confidential or privileged information.
If you are not the intended recipient, any review, disclosure, copying,
use, or distribution of the information included in this communication
and any attachments is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to this
communication and delete the communication, including any
attachments, from your computer. Electronic communications sent to or
from World Fuel Services Corporation or its subsidiaries or its affiliates
may be monitored for quality assurance and compliance purposes.***


LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

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:dwinslow@anonymised.com…]
Sent: 06 December 2012 14:55
To: Chris Haste
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] CSS Question

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!


David Winslow
OpenGeo - http://opengeo.org/

On Thu, Dec 6, 2012 at 5:14 AM, Chris Haste <CHaste@anonymised.com2992…> wrote:

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 triangle for the Departure and a square for the Destination

I would like to do something like this:

[Departure]{

mark:symbol(triangle);

}

[Destination]{

Mark:symbol(square);

}

But that doesn’t appear to be the way to go :wink:

Any help appreciated!

Chris

*** This communication has been sent from World Fuel Services
Corporation or its subsidiaries or its affiliates for the intended recipient
only and may contain proprietary, confidential or privileged information.
If you are not the intended recipient, any review, disclosure, copying,
use, or distribution of the information included in this communication
and any attachments is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to this
communication and delete the communication, including any
attachments, from your computer. Electronic communications sent to or
from World Fuel Services Corporation or its subsidiaries or its affiliates
may be monitored for quality assurance and compliance purposes.***


LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users