[postgis-tickets] [PostGIS] #2855: ST_MinkowskiSum gives polyhedral surface invalid error
PostGIS
trac at osgeo.org
Fri Jul 25 12:08:18 PDT 2014
#2855: ST_MinkowskiSum gives polyhedral surface invalid error
--------------------+-------------------------------------------------------
Reporter: robe | Owner: colivier
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.2.0
Component: sfcgal | Version: 2.1.x
Keywords: |
--------------------+-------------------------------------------------------
I think this is a bug, but just trying out ST_MinkowskiSum to try to
understand outputs so I may not be using it right
{{{
SELECT ST_MinkowskiSum('POLYHEDRALSURFACE Z( ((0 0 0, 0 0 1, 0 1 1, 0 1 0,
0 0 0)),
((0 0 0, 0 1 0, 1 1 0, 1 0 0, 0 0 0)), ((0 0 0, 1 0 0, 1 0 1, 0 0
1, 0 0 0)),
((1 1 0, 1 1 1, 1 0 1, 1 0 0, 1 1 0)),
((0 1 0, 0 1 1, 1 1 1, 1 1 0, 0 1 0)), ((0 0 1, 1 0 1, 1 1 1, 0 1
1, 0 0 1)) )'::geometry,
'POLYGON Z ((0.5 0 0.5,0.5 0 1.5,0.5 1 1.5,0.5 1 0.5,0.5 0
0.5))'::geometry
);
}}}
Gives error:
{{{
NOTICE: During minkowski_sum(A,B):
NOTICE: with A: POLYHEDRALSURFACE(((0/1 0/1 0/1,0/1 0/1 1/1,0/1 1/1
1/1,0/1 1/1 0/1,0/1 0/1 0/1)),((0/1 0/1 0/1,0/1 1/1 0/1,1/1 1/1 0/1,1/1
0/1 0/1,0/1 0/1 0/1)),((0/1 0/1 0/1,1/1 0/1 0/1,1/1 0/1 1/1,0/1 0/1
1/1,0/1 0/1 0/1)),((1/1 1/1 0/1,1/1 1/1 1/1,1/1 0/1 1/1,1/1 0/1 0/1,1/1
1/1 0/1)),((0/1 1/1 0/1,0/1 1/1 1/1,1/1 1/1 1/1,1/1 1/1 0/1,0/1 1/1
0/1)),((0/1 0/1 1/1,1/1 0/1 1/1,1/1 1/1 1/1,0/1 1/1 1/1,0/1 0/1 1/1)))
NOTICE: and B: POLYGON((1/2 0/1 1/2,1/2 0/1 3/2,1/2 1/1 3/2,1/2 1/1
1/2,1/2 0/1 1/2))
ERROR: PolyhedralSurface is invalid : inconsistant orientation of
PolyhedralSurface detected at edge 2 (3-3) of polygon 4 :
POLYHEDRALSURFACE(((0/1 0/1,0/1 0/1,0/1 1/1,0/1 1/1,0/1 0/1)),((0/1
0/1,0/1 1/1,1/1 1/1,1/1 0/1,0/1 0/1)),((0/1 0/1,1/1 0/1,1/1 0/1,0/1 0/
********** Error **********
ERROR: PolyhedralSurface is invalid : inconsistant orientation of
PolyhedralSurface detected at edge 2 (3-3) of polygon 4 :
POLYHEDRALSURFACE(((0/1 0/1,0/1 0/1,0/1 1/1,0/1 1/1,0/1 0/1)),((0/1
0/1,0/1 1/1,1/1 1/1,1/1 0/1,0/1 0/1)),((0/1 0/1,1/1 0/1,1/1 0/1,0/1 0/
SQL state: XX000
}}}
I'm using sfcgal 1.0.4
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2855>
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