Skip to content

Commit

Permalink
fixed point drill issue (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
edisonguo committed Apr 16, 2019
1 parent feca068 commit c2324c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions worker/gdalprocess/drill.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ func envelopePolygon(hDS C.GDALDatasetH) C.OGRGeometryH {

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

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

0 comments on commit c2324c2

Please sign in to comment.