Hi, for those that got excited about the 3d buildings stuff, well... I have bad news.
Here is a map made with the extrusion trick using real height as the extrusion driver: http://imagebin.org/73613 (thanks to Francesco for providing the data). At first sight it looks stunning, but if you look at it better you'll start seeing odd superimpositions. This is happening because features are being extruded and drawn as they come from the database, so a wall that is supposed to sit on the back of another is drawn up in front instead. Even sorting the features in the database somehow would not actually solve the issue, because walls have to be sorted globally (walls, not features) to get a good result. This of course would require something like the label cache, that works by accumulating stuff and drawing it all at the end. A new kind of symbolizer and specific support could do it, but we're talking about a major change, not a few hours trick like the one we have today. Ah, of course there is one way to hide the issue: draw everything the same color, the problem is now noticeable because the tops of the buldings are painted in a different, lighter and less opaque, color. Another interesting thing that Francesco pointed out is that we actually miss a point to apply the transformation: after reprojection. Originally he tried to extrude buildings in wgs84, the height was in meters but the transformation is purely geometric so that was not noticed... you can imagine the result was extremely high buildings. So there are actually 3 points in which a transformation can make sense: before reprojection, after reprojection, and on screen. I'm thinking that we could actually drive that by adding a vendor param to all symbolizers: <VendorOption name="transformationSeat">source/transformed/screen</VendorOption> ("source" being the default). Doing so would require some significant changes in how geometries are being handled, but it would allow for better flexibility. Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel