Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RegenerateOverviews use have error #88

Open
pdxrlj opened this issue Aug 8, 2023 · 0 comments
Open

RegenerateOverviews use have error #88

pdxrlj opened this issue Aug 8, 2023 · 0 comments

Comments

@pdxrlj
Copy link

pdxrlj commented Aug 8, 2023

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant