Tag Info

Hot answers tagged


As asked by the OP, I put this in answer. The problem wasn't with the method used, as ogr.Geometry.Union() is the appropriate one but with the second polygon which was not closed. It can be done with : tri2.CloseRings() or by repeating the first point : tri2.AddPoint(1,1) If there is many features to dissolve (like the entire layer) it can be done with ...


Problems: 1: the outcome of UnionSpatialPolygons is a spatial polygon 2: converting the result back into a spatial polygon data frame is a real pain -a. you need a very exact data frame to attach to a spatial polygon -b. data you used for UnionSpatialPolygons has more rows than the output and is not formatted in the way that is needed. My (ugly) ...

Only top voted, non community-wiki answers of a minimum length are eligible