On Tue, Mar 4, 2014 at 2:06 PM, Tim Jonas <[email protected]>wrote:
> Howdy you all,
>
> after I importet OSM vector data into my PostGIS-DB using osm2pgsql, the
> column "Z_ORDER" was created by default, which is quite useful I think.
> Because I want to draw the data on my map according to their "Z_ORDER", and
> not only according to the draw order of my XML file. For instance, the
> order of the attribute "highway" is not always the same relative to the
> attribute "railway" - in some cases the attribute "highway" has to be drawn
> under "railway" and in others above, to be correct. But how can I make use
> of the "z_order" to achieve this?
>
Simply put, you cannot do that in a general waay, not with the current code
at least, in SLD the z order is controlled by feature type styles, but you
cannot create them dynamically.
If you have a small number of z orders, you can create as many feature
types styles and have the rule filters catch only the features with a
specific Z order though.
Or you could create sql views pulling a specific z order out, and create N
layers.
The most efficient way would be to have the renderer ask the database to
return features sorted by ascending z order value, but we don't have this
ability yet.
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 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries. Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users