-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
Describe the bug
The "geotiff-reprojection" example includes a lot of functionality that has nothing to do with reprojection, and the reprojection itself is quite boring (4326 to 3857) and only implicit.
To Reproduce
Steps to reproduce the behavior:
- Go to https://openlayers.org/en/latest/examples/geotiff-reprojection.html
- See all the styling-related code and UI
- See that terms like
projdon't even appear in the code
Expected behavior
A rather minimal example (without fancy styling options) that showcases how to deal with a file that has a more exotic projection that requires explicit handling. Maybe showcased on a Map that additionally has a non-standard projection for its View.
Suggestion
The current example could be renamed to "geotiff-dynamic-rgb-stretching" or something, as it is a cool example, but people wouldn't look for it under its current name.
Additional remark
The description says "GeoTIFF source with 20 bytes of raw values per pixel", but in fact it has 4 bands with 16 bits each (as the filename already suggests), so only 4*16/8 = 8 bytes per pixel.