[postgis-tickets] [PostGIS] #3435: Unexpected output from ST_AsX3D with PolyhedralSurfaceZ
PostGIS
trac at osgeo.org
Tue Jan 19 07:18:28 PST 2016
#3435: Unexpected output from ST_AsX3D with PolyhedralSurfaceZ
---------------------------+---------------------------
Reporter: tomvantilburg | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.2.2
Component: postgis | Version: 2.2.x
Keywords: |
---------------------------+---------------------------
When extruding polygons as X3D the output with concave polygons (U shaped)
will create a convex faceset on the top and bottom of the 3D structure
whereas a concave faceset is expected.
When tesselated first, and therefore fom polyhedralsurfacez to TIN the
output is allright.
Test with:
{{{
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>
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3435>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list