CSC
CSC

Reputation: 1

Is geometryA.intersections(geometryB) the same like geometryB.intersections(geometryA)?

I have two geometries(polygons) and use the intersection function of the geometries to get the intersection geometry with geotools.

The result surprised me - why:

When I do the same with PostGis, I get in both cases a valid geometry: It should be no difference between polygonA.intersection(polygonB) or polygonB.intersection(polygonA). The result should be the same.

I use geotools in Version 31.0. It that a bug or understand the method intersection not correct.

Upvotes: 0

Views: 35

Answers (0)

Related Questions