Skip to content

Commit

Permalink
fixed self-intersecting polygon issue (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
edisonguo committed Apr 12, 2019
1 parent f70ec67 commit feca068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker/gdalprocess/drill.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func envelopePolygon(hDS C.GDALDatasetH) C.OGRGeometryH {
}

func getDrillFileDescriptor(ds C.GDALDatasetH, g C.OGRGeometryH) DrillFileDescriptor {
gCopy := C.OGR_G_Clone(g)
gCopy := C.OGR_G_Buffer(g, C.double(0.0), C.int(30))

if C.GoString(C.GDALGetProjectionRef(ds)) != "" {
desSRS := C.OSRNewSpatialReference(C.GDALGetProjectionRef(ds))
Expand Down

0 comments on commit feca068

Please sign in to comment.