On Thu, Aug 23, 2012 at 11:41 AM, obtin <[email protected]> wrote:
> Thank you!
>
> This was a good answer. It was not the one i was looking for, but it made
> me
> think in a new way, and I got my problem solved.
>
> The question I formerly was wondering about, was how to show a sparser view
> of some objects on a specific layer. In my example, I wanted to show only,
> lets say, every 2nd tree on scales smaller than 1:2000 to avoid the objects
> to overlap each other. This would require, I assume, to change the data.
>
>
I see. Yes, doing something like that would be possible by creating a
"counter/sequence"
filter function that creates a sequence of values, and using the remainder
of the
division by 2 to control painting.
However, the above approach has a limit, it would not be encoded towards
the database
so you'd end up loading all the data, even if only a portion of it is
displayed.
In order to actually only load some of the data you'd have to alter your
data, or find
some way to build a SQL statement that does it using native database
functions
to build a flag telling you whether to display the feature or not, and set
up your data
source as a "sql view"
Cheers
Andrea
--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users