From daf5c14259b56e0f6791b5a2d55caea4c24c39f4 Mon Sep 17 00:00:00 2001 From: "r.dhakal-at-531630878474" Date: Wed, 27 Nov 2024 17:20:23 +0900 Subject: [PATCH] limiting voxel altitude --- operated/shifting_spatial_id.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operated/shifting_spatial_id.go b/operated/shifting_spatial_id.go index 219b242..1446462 100644 --- a/operated/shifting_spatial_id.go +++ b/operated/shifting_spatial_id.go @@ -148,7 +148,7 @@ func GetNspatialIdsAroundVoxcels(spatialIDs []string, hLayers, vLayers int64) ([ // Loop through each X, Y, Z shift index and each SpatialID for xShiftIndex = -hLayers; xShiftIndex < hLayers+1; xShiftIndex += 1 { for yShiftIndex = -hLayers; yShiftIndex < hLayers+1; yShiftIndex += 1 { - for vShiftIndex = -vLayers; vShiftIndex < vLayers+1; vShiftIndex += 1 { + for vShiftIndex = -vLayers; vShiftIndex < vLayers; vShiftIndex += 1 { if xShiftIndex == 0 && yShiftIndex == 0 && vShiftIndex == 0 { continue