<html>
<head>




</head>
<body><span style="font-size: 10pt;">Hallo<br />
                <br />
                This polyhedral thing is really interesting. I have been thinking about the distance-functions against 3D. The word polyhedral is new to me and I don't know more about it than what Olivier has written in his post.<br />
                <br />
                I have a few questions:<br />
                <br />
                Olivier, in your post in January<br />
                http://postgis.refractions.net/pipermail/postgis-devel/2010-January/008384.html<br />
                you say that :<br />
                <br />
                resulting PolyhedralSurface must be convex (and without hole)<br />
                        <br />
                is that a logical limitation or a limitation in the standard. <br />
                I mean if the resulting geometry has to be convex it will be hard to describe things like the land shape, a mountain a valley etc.<br />
                <br />
                                <br />
                as described in the post above:<br />
                every polygon mean a face (with all points on the same plan...<br />
                <br />
                As I understand it (I like to add that so it hurts a little less when I'm wrong), a plane can be defined<br />
                by 3 points. But what when we have 4 or more points. There are several situations where that is no problem, but<br />
                if all 4 corners have unique coordinates both x, y and z then I suspect we can get floating point problems.<br />
                I guess we will have to find a way to deal with inaccurancy.<br />
                <br />
                From my understanding it can be compared to saying all points have to be exactly on the line. It is ok if it is two points, then it is no problem and it is ok <br />
                if the points have two constant coordinates like 'LINESTRING( 1 1 1, 1 1 3, 1 1 10, 1 1 12)' but if the line represents a slope there might be problems.<br />
                <br />
                This has to be something fundamental when calculating distances against polyhedrals. I don't know the algoritms, <br />
                but from some reading I think the way to do it, for example the distance between a point and a polyhedral is to<br />
                "project the point to the plane"<br />
                check if the point is in the polygon on the plane<br />
                if so, the distance is between the projected point and the original point.<br />
                If not we have to do a distance calculation against the edges of the polygon. Like today, but in 3D.<br />
                <br />
                The point is that the central part of this is the plane. How to handle that if the points are not exactly on the same plane.<br />
                <br />
                <br />
                <br />
                Does this have an obvious solution that I'm missing or is it problems we will have to deal with?<br />
                <br />
                The same problem will occur with a "normal" polygon that is tilted. <br />
                <br />
                I see this as a little similar problem as the inability to get an intersection between a point and a linestring.<br />
                <br />
                How to handle the inaccuracy?<br />
                <br />
                I might be totally lost in this.<br />
                <br />
                Another difference between calculating distance in 2D and 3D I have realized is that two linestring can have their closest parts on the edges of both. Not like 2D where at least one of the geometries must be closest with a vertex.<br />
                That is just an observation.<br />
                <br />
                Thanks<br />
                Nicklas<br />
                </span><br startcont="this" />
        
        

</body>
</html>