Skip to content

RegenerateOverviews use have error #88

@pdxrlj

Description

@pdxrlj

I am using RegenerateOverviews when running when this error occurs, the following is my code, has been gdal error message, this is because of what caused?

func ScaleQueryToTile() NextTileJobFunc {
	return func(next TileJobFunc) TileJobFunc {
		return func(info *GeoQueryGdalJobInfo) error {
			fmt.Printf("[3/5] ScaleQueryToTile\n")
			for i := 0; i < info.BandCount; i++ {
				dsQueryBand := info.dsQuery.RasterBand(i + 1)
				dstBand := info.dsTile.RasterBand(i + 1)
				err := dsQueryBand.RegenerateOverviews(4, &dstBand, "average", gdal.DummyProgress, nil)
				if err != nil {
					return err
				}
			}
			return next(info)
		}
	}
}
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x54 pc=0x10248cee8]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions