The CSS module is incomplete and misses a few "corners" of the SLD
specification - units of measure is one of them.  So, it's not possible to
use units of measure in GeoServer CSS right now.

I am definitely interested in having them, but there are a couple of issues
to consider first:

   - the most natural notation in CSS for adding unit notation is to suffix
   the units to the value: 1px, 4.5ft, 10m, but in GeoServer CSS we also have
   CQL expressions.  Does "[width_in_meters]m" still make sense? What other
   notation might be better?
   - Also, in SLD units of measure are per-symbolizer, while CSS-like
   notation puts them on the properties.  While probably most real-world use
   cases won't mix feet and meters, it would be nice to support this since the
   syntax sort of suggests it.
   - SLD only supports px, m, and ft. Should CSS add a broader collection
   of units?

This is just a spare-hours project for me and I am working on some
performance stuff now[1].  I might eventually find some time to think about
the issues with UOM and resolve them but it's not likely to be soon.

[1]: More on my current work here:
https://groups.google.com/d/topic/geoscript/UXo_XFiM00I/discussion

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

On Thu, Mar 22, 2012 at 7:01 AM, Chris Haste <cha...@airdata.co.uk> wrote:

> Hello list!****
>
> ** **
>
> I have two questions in relation to the CSS module.****
>
> ** **
>
> Firstly, using units of measurement. Could someone supply an example of
> the syntax for this? I have tried:****
>
>   mark: symbol('circle');****
>
>   mark-size: 10000m;****
>
> also****
>
>   mark-size:10000 m;****
>
> But neither seem to work. The first results in nothing getting drawn and
> the second results in the mark being drawn at 10000 pixels!****
>
> ** **
>
> Secondly, if I want to use an external symbol (e.g. a PNG or SVG file) and
> have this scaled using UoM what size/scale does the image have to be
> created at in order for it to scale correctly?****
>
> ** **
>
> 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.***
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to