Behave like a 3857 tile service when google compatible flag found in COG file#1814
Closed
sharkAndshark wants to merge 62 commits intomaplibre:mainfrom
Closed
Behave like a 3857 tile service when google compatible flag found in COG file#1814sharkAndshark wants to merge 62 commits intomaplibre:mainfrom
sharkAndshark wants to merge 62 commits intomaplibre:mainfrom
Conversation
for more information, see https://pre-commit.ci
Collaborator
Author
|
To verify this PR Download and transformUsing a tif file from openlayers offcial demo curl -o tci_original.tif https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/36/Q/WD/2020/7/S2A_36QWD_20200701_0_L2A/TCI.tif
gdalwarp -t_srs EPSG:3857 tci_original.tif tci_3857.tif
gdal_translate -of COG -co TILING_SCHEME=GoogleMapsCompatible tci_3857.tif tci.tif Start martin with this branchmartin tci.tifCreate openlayers projectnpm create ol-app my-app
cd my-appUpdate
|
Collaborator
Author
|
This PR would be split to many to get review easy and save the time of maintainers:
|
This was referenced May 16, 2025
sharkAndshark
added a commit
that referenced
this pull request
May 21, 2025
It's the 2nd PR of #1814 to fix #1820 A func to get the origin coord from COG is added. It's highly inspired by [geotiff.js](https://github.com/geotiffjs/geotiff.js) and the content of [B.6 of geotiff spec](https://docs.ogc.org/is/19-008r4/19-008r4.html#_geotiff_tags_for_coordinate_transformations) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Frank Elsinga <frank@elsinga.de>
Merged
sharkAndshark
added a commit
that referenced
this pull request
May 27, 2025
It's the 3rd PR of #1814 to fix #1820 A func to get the extent from COG is added. It's highly inspired by [geotiff.js](https://github.com/geotiffjs/geotiff.js) and the content of [B.6 of geotiff spec](https://docs.ogc.org/is/19-008r4/19-008r4.html#_geotiff_tags_for_coordinate_transformations) --------- Co-authored-by: Frank Elsinga <frank@elsinga.de> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Merged
sharkAndshark
added a commit
that referenced
this pull request
Jun 12, 2025
It's the 4th PR of #1814 to fix #1820 - Create a new struct `Image` and many func moved from `Source.rs` to `image.rs` - The structure `Meta` got removed and its fields moved to `Source` - Many docs added - Refactor `rgb_to_png` to three: `rgb_to_png` `ensure_pixels_valid` and `encode_rgba_to_png` Before we add more fields and helper methods, a refactor is needed. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Yuri Astrakhan <YuriAstrakhan@gmail.com>
Member
|
I am not sure what the status of this PR is, but the following PR seems like solving the same thing Lets track this there |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Not an actual PR but a concept prove(Currently it's really messy). But if it works, it might be split to many PRs to make review easy.
Trying to fix #1820