[Jts-topo-suite-user] Merging detached polygons into a single polygon
Brought to you by:
dr_jts
From: Brian S. R. <ji...@gm...> - 2012-04-26 11:06:54
|
Hi Dr Martin, I have two polygon geometries having following coordinates: Polygon 1: [(0,0) (10,0) (10,10) (0,10) (0,0)] Polygon2: [(15,0) (19,0) (19,10) (15,10) (15,0)] These two are rectangles aligned each other but detached. I need to merge these two to come out with a single polygon. I used Geometrycollection and union method. However, result is a multipolygon of these two (see below). Result: Aggregated Geometry: MULTIPOLYGON (((0 0, 10 0, 10 10, 0 10, 0 0)), ((15 0, 19 0, 19 10, 15 10, 15 0))). Any idea? Best Brian. |