[postgis-users] 3d Point-Polygon Intersection

Paul Ramsey pramsey at opengeo.org
Sun Apr 5 07:59:33 PDT 2009


Intersections are calculated in the X/Y plane and Z values for
constructed geometries are interpolated from the Z values of the
inputs.

P

On Sun, Apr 5, 2009 at 1:24 AM, Jim Jim <gamecleaner at hotmail.com> wrote:
> Hello,
>
> I am a little puzzled by the following:
>
> select asEWKT(ST_Intersection(
> ('POLYGON((0 0 0,4 0 0,4 4 0,0 4 0,0 0 0),(1 1 0,2 1 0,2 2 0,1 2 0,1 1
> 0))'),
> ('POINT(0 4 -1000)')
>  ));
>
> Result: "POINT(0 4 -500)"
>
> Since the point is not in the polygon the intersection should be empty.
> Please let me know why this is behaving otherwise. If I am missing
> something, could you please let me know what would be the way to get the
> answer I was expecting?
>
> Thank you!
>
> ________________________________
> Share your photos with Windows Live Photos – Free. Try it Now!
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>



More information about the postgis-users mailing list