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

Release the olGeoTiff.js developed to modify the OpenLayers tileLoadFunction #79

Open
PBrockmann opened this issue Jan 10, 2019 · 7 comments

Comments

@PBrockmann
Copy link

As described in https://eox.at/2018/01/visualizing-geotiff-tiles-with-openlayers/, an olGeoTiff.js has been developped to modify the internal tileloadFunction so that OpenLayers does not request a regular PNG image rendered by the server but downloads the original GeoTIFF data.

Could this olGeoTiff.js be included in the geotiff.js project ?
A small example of use would be great.

@PBrockmann PBrockmann changed the title olGeoTiff tileLoadFunction OpenLayers Release the olGeoTiff.js developped to modify the OpenLayers tileLoadFunction Jan 10, 2019
@PBrockmann PBrockmann changed the title Release the olGeoTiff.js developped to modify the OpenLayers tileLoadFunction Release the olGeoTiff.js developed to modify the OpenLayers tileLoadFunction Jan 10, 2019
@constantinius
Copy link
Member

Hi @PBrockmann, thanks for showing interest in the project.

geotiff.js itself should be agnostic in what context it is used, so I'm a bit hesitant to directly add the olGeoTiff.js source code it to the main repository itself. On the other hand I was planning to create a separate project to combine geotiff.js, OpenLayers and plotty.js, but have not yet come around to do it.

I think it is a good idea to add an examples directory to put stuff like this. I'll set one up, once I have some spare time.

For now, you can inspect the source code of the example directly.

There is also the COG-Explorer, where geotiff.js is used in conjunction with OpenLayers, maybe you can find some hints there.

I'll leave this issue open as a reminder to create the aforementioned examples.

@PBrockmann
Copy link
Author

PBrockmann commented Jan 10, 2019

Ok thank you very much for this promising answer.
+1 to have a olGeoTiff.js project by itself.
I have already tested the code from the blog and coded a prototype to deliver high resolution products in a research lab environment. See http://webportals.ipsl.jussieu.fr/ScientificApps/dev/forge_patrick/eox/map_01.html

2 things are missing for me :

  • be able to go beyond the maximum native zoom level of the GeoTiff layer
  • having a olGeoTiff.js running with last OpenLayers release (ok with 4.6.5, not with 5.3.0)

So I will carefully look at this issue.
Best regards

@PBrockmann
Copy link
Author

PBrockmann commented Jan 10, 2019

COG-Explorer is too much integrated for my purpose. I prefer to design and code a personal app to have multiple synchronous slippy maps exposing different GeoTIFF layers (global at 90m resolution).

@DanielJDufour
Copy link
Contributor

Hi @PBrockmann, I love the idea of a separate repo for an olGeoTIFF.js layer that people can use in their own OL projects. We've talked about maybe moving https://geotiff.io to OL in the future and would definitely be interested in your developments. For what it's worth, here's a use of geotiff.js to display GeoTIFFs in Leaflet that we created: https://github.com/GeoTIFF/georaster-layer-for-leaflet/blob/master/README.md Let me know if you have any questions or if there's anyway I can help your endeavor :-)

@PBrockmann
Copy link
Author

PBrockmann commented Jan 11, 2019

Hi @DanielJDufour, thank you for pointing the https://github.com/GeoTIFF/georaster-layer-for-leaflet repo. In my understanding, with it you can render only single GeoTIFF but not tiled ones (WMTS).
In addition, the ability to have browser side all the values read from geotiff.js and rendered by plotty.js is extremely valuable since you can perform change on range/colours and make calculations on values.
I am not sure to see this elsewhere, in the COG specifications for example.
That is why, I would continue to be focused on the approach developed by EOX with the set of libraries: geotiff.js, plotty.js and olGeoTiff.js for the OpenLayers tileLoadFunction.
Let me know if a similar approach is experimented by the Leaflet community.

@PBrockmann
Copy link
Author

PBrockmann commented Jan 11, 2019

As I am completely neutral on the different web mapping librairies (OpenLayers, Leaflet), I have also submitted a ticket to the Mapbox GL JS project pointing the work made by EOX on geotiff.js and plotty.js (both with a MIT licence)
See: mapbox/mapbox-gl-js#7765

@ludvikbrodl
Copy link

Any news on getting this for openlayers 5.3 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants