we where not able to make progress on this since last week. We are using
GeoServer version 2.3.1 on Ubuntu.
Is there anyone who successfully had GeoServer output polygons that extruded
successfully in Google earth that can share any insight ?
Maybe I can rephrase the question to try to find out why we receive a point
and a polygon in the KML (as a Multigeometry) output from GeoServer while
the features are 'POLYGON' features in PostGIS - see below. Its seems to us
that that the point 'consumes' the height value form the template (154)
whereas the polygon features that follow all get a default 0. The hope is if
we can get rid of the point in the KML output that the extrusion will
BTW the point does not show up visually in GE ...
From: karsten [mailto:karsten@...]
Sent: Wednesday, September 04, 2013 03:16 PM
Cc: 'Luis F Borrero'
Subject: KML output, extruding height with polygons
we are pretty new to Geoserver and KML output for GE. We have been working
on using kml output of postgis based layers to dynamicayyl cerate kml via
Geoserver and to extrude height values to view features e.g. building in 3D.
So far this sucessfully worked for us with a heigth.ftl template and point
layers , but it doesnt seem to work as well with polygons. These polygons in
this link to a kmz file output by Geoserver
http://www.terragis.net/docs/other/test_height.kmz won't extrude.
If you open and zoom-in enough so the data is presented as kml entities and
right click, you will notice inside the properties that the "altitude" tab
is set to "various heights (min=0 and max=max value)" instead of using the
unique Absolute Height of "max value" ( see screen shot
http://www.terragis.net/docs/other/test_height.png). Hence they stick to the
ground. If you manually change that value to force the later, you will
notice that the polygon renders properly. So the problem is probably with
the writing of the file when created in geoserver.
While researching this we also realized that the kml output does produce a
MultiGeometry and has actually a point (the center point of the polygon and
does correctly add the height value, below 154 to it) , plus the polygons
bit with the polygon feature the z values all default to 0 - see below .
However we are not sure why a point is created at all (as the layer is
polygons only and guess that if we could suppress the point form being
created that the polygons heights would show up correctly ?
Anybody has found a similar problem and/or can venture a solution?
I have also set it up in this page http://dr-i-ve.com/samples-for-geogroup/
as the first file on the upper left ( 3D Buildings 2002) , and I have set
two other files that render properly z values (height) for reference.
Luis and Karsten