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

feat(source): add support for Cloud Optimized GeoTiff #1307

Closed
wants to merge 7 commits into from
Closed

feat(source): add support for Cloud Optimized GeoTiff #1307

wants to merge 7 commits into from

Conversation

gmaillet
Copy link
Collaborator

Description

create a COGSource in example/js/plugins (extend Source)
create a new example
add an option in TIFFParser

Motivation and Context

Support COG (https://www.cogeo.org/)

@gmaillet gmaillet added wip 🚧 Still being worked on feature 🍏 Adds a new feature labels Jan 28, 2020
// custom the networkOptions as a range request for this specific tile
this.networkOptions.headers = {
'content-type': 'multipart/byteranges',
'range': `bytes=${offset}-${offset + byteCounts}`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you can ask 1 byte less :
'range': `bytes=${offset}-${offset + byteCounts-1}

@gchoqueux gchoqueux added this to the 2.xx.x milestone Apr 10, 2020
@gchoqueux gchoqueux marked this pull request as draft June 30, 2020 09:38
@gchoqueux gchoqueux added wip 🚧 Still being worked on and removed wip 🚧 Still being worked on labels Jun 30, 2020
@Desplandis
Copy link
Contributor

Implemented as a plugin in #2250, we will base our future implementation on that one.

@Desplandis Desplandis closed this Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🍏 Adds a new feature wip 🚧 Still being worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants