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

Conversion from TileXYZ into extendedSpatialID and SpatialID #29

Merged
merged 25 commits into from
Aug 23, 2024

Conversation

mi-24v
Copy link
Member

@mi-24v mi-24v commented Aug 16, 2024

Replacement for #27 and dealing #28 partially

  • TileXYZ->SpatialId conversion via ConvertTileXYZToSpatialIDs (combination of bellow functions)
    • TileXYZ->extendedSpatialId conversion via ConvertTileXYZToExtendedSpatialIDs
    • extendedSpatialId -> SpatialId conversion via ConvertExtendedSpatialIDsToSpatialIDs
  • publish altitude key conversion functions
  • documentation for conversion functions of TileXYZ->SpatialID conversion

Rafael Camelo and others added 10 commits July 11, 2024 14:41
…lIDs

especially altitude conversion between AltitudeKeys and VerticalFIndex
in ConvertQuadkeysAndAltitudekeysToExtendedSpatialIDs
…ConvertTileXYZToExtendedSpatialIDs()`

not to using Quadkey
If horizontal index conversion is needed, use HorizontalZoom alone; because this function does not need horizontal index conversion.
…tialIDs()`

- tests are renamed(missing older commit)
- added `ElementsMatch` for comparing slices without order
via `ConvertExtendedSpatialIDsToSpatialIDs`

`HorizontalZoom` is refactored for using integer output
via `ConvertTileXYZToSpatialIDs`

`ConvertExtendedSpatialIDsToSpatialIDs` is renamed to `ConvertExtendedSpatialIDToSpatialIDs`
about updating `ConvertQuadkeysAndAltitudekeysToExtendedSpatialIDs` to `ConvertTileXYZToExtendedSpatialIDs`
@mi-24v mi-24v added documentation Improvements or additions to documentation enhancement New feature or request labels Aug 20, 2024
@mi-24v mi-24v marked this pull request as ready for review August 20, 2024 05:53
@mi-24v mi-24v self-assigned this Aug 20, 2024
Copy link
Member

@HarutakaMatsumoto HarutakaMatsumoto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed this.
Check it out.

common/consts/consts.go Show resolved Hide resolved
common/object/id_object.go Outdated Show resolved Hide resolved
common/object/id_object.go Outdated Show resolved Hide resolved
common/object/id_object.go Outdated Show resolved Hide resolved
common/object/id_object.go Outdated Show resolved Hide resolved
transform/convert_quadkey_and_Vertical_id.go Outdated Show resolved Hide resolved
transform/convert_quadkey_and_Vertical_id.go Outdated Show resolved Hide resolved
transform/convert_quadkey_and_Vertical_id.go Outdated Show resolved Hide resolved
transform/convert_quadkey_and_Vertical_id.go Outdated Show resolved Hide resolved
transform/convert_quadkey_and_Vertical_id.go Outdated Show resolved Hide resolved
- replaced `fmt.Sprintf` as `strconv.FormatInt`
- removed golang.org/x/exp/maps
- replaced constants as `consts` package
- fixed wrong inline document
    - `ConvertAltitudeKeyToZ`
    - `TileXYZ`
- adjusted fields' integer size int64
- renamed `object.TileXYZ`s' test functions
- restructured conversion functions table
  - removed future plan column to prevent confusing
- added overview of ConvertExtendedSpatialIDToSpatialIDs
- remove local `zOriginValue` (`consts.ZOriginValue` still remains)
- renamed `ConvertAltitudeKeyToZ` to `ConvertAltitudeKeyToMinMaxZ`
- renamed `ConvertZToAltitudekey` to `ConvertZToMinMaxAltitudekey`
- refactored tests using test table
- updated go version at build
- upgraded external library
Copy link
Member

@HarutakaMatsumoto HarutakaMatsumoto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mi-24v
I reviewed the new one.
Check it out.

documentation/convesion.md Outdated Show resolved Hide resolved
documentation/convesion.md Outdated Show resolved Hide resolved
transform/convert_quadkey_and_Vertical_id.go Outdated Show resolved Hide resolved
transform/convert_quadkey_and_Vertical_id.go Outdated Show resolved Hide resolved
transform/convert_quadkey_and_Vertical_id_test.go Outdated Show resolved Hide resolved
transform/convert_quadkey_and_Vertical_id_test.go Outdated Show resolved Hide resolved
- functions is renamed from `convertZToMinAltitudeKey` to `convertZToMinAltitudekey`
- changed tests not to use test tables
@HarutakaMatsumoto HarutakaMatsumoto merged commit 576e3cf into develop Aug 23, 2024
1 check passed
@HarutakaMatsumoto HarutakaMatsumoto deleted the feature_4481 branch August 23, 2024 05:50
@HarutakaMatsumoto
Copy link
Member

@mi-24v
I merged it.
Thank you for your contribution!

@HarutakaMatsumoto HarutakaMatsumoto linked an issue Sep 9, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use TileXYZ instead of QuadkeysAndAltitudekeys
2 participants