[postgis-devel] Unexpected output from ST_AsX3D with PolyhedralSurfaceZ

Tom van Tilburg tom.van.tilburg at gmail.com
Mon Jan 18 08:25:24 PST 2016


Im trying to display some extruded buildings as X3D but noticed that the
output with concave buildings (U shaped) creates a convex faceset on the
top and bottom of the building. This doesn't seem right.

When I tesselate first, and therefore go fom polyhedralsurfacez to TIN the
output is allright.
You can try with and without tesselate yourself:

SELECT ST_AsX3D(ST_Tesselate(ST_Extrude(ST_GeometryFromText('Polygon((0 0,
0 10, 30 10, 30 0, 20 0, 20 5, 10 5, 10 0, 0 0))'),0,0,10)))

For completeness:
<X3D>
<Scene>
        <Viewpoint orientation='0.2 0 0 0.8' position='-10 -10 100'/>
        <Background skyColor='1 1 1'/>
        <Shape>
<!--PUT YOUR OUTPUT HERE, TESSELATED VERSION ALREADY INCLUDES SHAPE -->
</Shape>
    </Scene>
</X3D>

Best, Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20160118/eab82952/attachment.html>


More information about the postgis-devel mailing list