Skip to content

Poorly named example "geotiff-reprojection" #16311

@christophfriedrich

Description

@christophfriedrich

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:

  1. Go to https://openlayers.org/en/latest/examples/geotiff-reprojection.html
  2. See all the styling-related code and UI
  3. See that terms like proj don'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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions