Do you control the client? I imagine you could have it add a parameter with
its current scale. I don't think that your SQL view has access to the scale
by default (what would happen for such a view when making WFS requests?)
The offset filter function should work fine in CSS (though when I was
looking for an example I noticed none of the testcases exercise that
functionality so... no guarantees.) The syntax would be like this:
* { geometry: [offset(the_geom, 0.03, 0.03)]; }
It is free to reference other properties (except the @scale - that's magic
and only works in selectors) as well, and I find the CQL syntax a bit more
comfortable than OGC XML.
--
David Winslow
OpenGeo - http://opengeo.org/
On Wed, Apr 13, 2011 at 5:21 PM, Charles Galpin <[email protected]> wrote:
> Are there any magic parameters available to sql views like the scale
> denominator in styles? Specifically I want to get access to the zoom level
> in a sql view so I can vary the amount I shift geometries based on it to
> improve the display.
>
> I'm aware there is an "offset" filter function in SLD but I am concerned
> this will perform poorly as it's done in memory, and I am not sure if I can
> use this from the css plugin either. I also want to shift the geometries
> based on the road direction which I think might be a problem with this
> method.
>
> tia
> charles
>
>
>
>
>
> ------------------------------------------------------------------------------
> Benefiting from Server Virtualization: Beyond Initial Workload
> Consolidation -- Increasing the use of server virtualization is a top
> priority.Virtualization can reduce costs, simplify management, and improve
> application availability and disaster protection. Learn more about boosting
> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users