[Geoserver-users] CSS and ColorMaps

Hello everyone,

Is it possible to define a colormap using the CSS module?

Thanks

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.***

No, you can’t do this right now. I’ve actually been working on it a bit recently (raster styling doesn’t work all that naturally in CSS, but it seems like a prerequisite for styling transformations):
https://github.com/dwins/geoscript.scala/commits/raster-styling

If you’re interested in trying it out I’d love some feedback, but I don’t think I can support builds of this experimental branch, so you’d have to build it yourself from sources (feel free to bug me off-list for details.) I don’t have things documented yet but at least the property names for raster styles are all together in the sources: https://github.com/dwins/geoscript.scala/blob/9ff23dccfed0201f3c05cde80456386336323f70/geocss/src/main/scala/org/geoscript/geocss/Translator.scala#L622-L644

A basic raster style would look like:

  • {
    raster-channels: auto;
    raster-color-map:
    color-map-entry(black, 0)
    color-map-entry(red, 100)
    color-map-entry(green, 200);
    }
···

On Mon, Jan 28, 2013 at 12:17 PM, Chris Haste <CHaste@anonymised.com> wrote:

Hello everyone,

Is it possible to define a colormap using the CSS module?

Thanks

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.***


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. ON SALE this month only – learn more at:
http://p.sf.net/sfu/learnnow-d2d


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

Thanks David.

I will try to take a look when I have a few spare moments as I would love to be able to keep all my styling in CSS without mix and matching with SLD, so once I get around to looking at it I’ll happily provide feedback.

Thanks

Chris

From: David Winslow [mailto:dwinslow@anonymised.com]
Sent: 28 January 2013 17:33
To: Chris Haste
Cc: geoserver-users@anonymised.comists.sourceforge.net
Subject: Re: [Geoserver-users] CSS and ColorMaps

No, you can’t do this right now. I’ve actually been working on it a bit recently (raster styling doesn’t work all that naturally in CSS, but it seems like a prerequisite for styling transformations):

https://github.com/dwins/geoscript.scala/commits/raster-styling

If you’re interested in trying it out I’d love some feedback, but I don’t think I can support builds of this experimental branch, so you’d have to build it yourself from sources (feel free to bug me off-list for details.) I don’t have things documented yet but at least the property names for raster styles are all together in the sources: https://github.com/dwins/geoscript.scala/blob/9ff23dccfed0201f3c05cde80456386336323f70/geocss/src/main/scala/org/geoscript/geocss/Translator.scala#L622-L644

A basic raster style would look like:

  • {

raster-channels: auto;

raster-color-map:

color-map-entry(black, 0)

color-map-entry(red, 100)

color-map-entry(green, 200);

}

David Winslow

OpenGeo - http://opengeo.org/

On Mon, Jan 28, 2013 at 12:17 PM, Chris Haste <CHaste@anonymised.com> wrote:

Hello everyone,

Is it possible to define a colormap using the CSS module?

Thanks

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.***


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. ON SALE this month only – learn more at:
http://p.sf.net/sfu/learnnow-d2d


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