Skip to content

Commit

Permalink
replace symbol
Browse files Browse the repository at this point in the history
replace GetSpatialIdsWithinRadiusOfLine with GetExtendedSpatialIdsWithinRadiusOfLine
  • Loading branch information
buscandoaverroes committed Apr 15, 2024
1 parent 2d0b289 commit cb950f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion transform/voxel_around_line.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
// 拡張空間IDスライス: []string
// error: エラー

func GetSpatialIdsWithinRadiusOfLine(startPoint *object.Point, endPoint *object.Point, radius float64, hZoom int64, vZoom int64, skipsMeasurement bool) ([]string, error) {
func GetExtendedSpatialIdsWithinRadiusOfLine(startPoint *object.Point, endPoint *object.Point, radius float64, hZoom int64, vZoom int64, skipsMeasurement bool) ([]string, error) {

// 1. Return the Extended Spatial Ids on the line determined by startPoint and endPoint

Expand Down
8 changes: 4 additions & 4 deletions transform/voxel_around_line_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestGetSpatialIdsWithinRadiusOfLine01(t *testing.T) {
if error != nil {
t.Error(error)
}
idsWithinRadiusOfLine, error := GetSpatialIdsWithinRadiusOfLine(startPoint, endPoint, radius, hZoom, vZoom, true)
idsWithinRadiusOfLine, error := GetExtendedSpatialIdsWithinRadiusOfLine(startPoint, endPoint, radius, hZoom, vZoom, true)
if error != nil {
t.Error(error)
}
Expand All @@ -58,7 +58,7 @@ func TestGetSpatialIdsWithinRadiusOfLine01(t *testing.T) {
// - FitClearanceAroundSpatialId: hlayer=1, vlayer=1
// - GetNspatialIdsAroundVoxcels: (count excludes ids on line) 50
// - GetSpatialIdsWithinRadiusOfLine: (count includes ids on line) 9 ids per layer * 6 layers = 54 ids expected
func TestGetSpatialIdsWithinRadiusOfLine02(t *testing.T) {
func TestGetExtendedSpatialIdsWithinRadiusOfLine02(t *testing.T) {

var radius float64 = 0.1
var hZoom int64 = 23
Expand All @@ -77,7 +77,7 @@ func TestGetSpatialIdsWithinRadiusOfLine02(t *testing.T) {
if error != nil {
t.Error(error)
}
idsWithinRadiusOfLine, error := GetSpatialIdsWithinRadiusOfLine(startPoint, endPoint, radius, hZoom, vZoom, true)
idsWithinRadiusOfLine, error := GetExtendedSpatialIdsWithinRadiusOfLine(startPoint, endPoint, radius, hZoom, vZoom, true)
if error != nil {
t.Error(error)
}
Expand Down Expand Up @@ -119,7 +119,7 @@ func TestGetSpatialIdsWithinRadiusOfLine10m_r0_horizontal(t *testing.T) {
t.Error(error)
}
start := time.Now()
idsWithinRadiusOfLine, error := GetSpatialIdsWithinRadiusOfLine(startPoint, endPoint, radius, hZoom, vZoom, false)
idsWithinRadiusOfLine, error := GetExtendedSpatialIdsWithinRadiusOfLine(startPoint, endPoint, radius, hZoom, vZoom, false)
elapsed := time.Since(start)
if error != nil {
t.Error(error)
Expand Down

0 comments on commit cb950f4

Please sign in to comment.