mike-000

Results 204 comments of mike-000

It depends on how you intend to style them. If the same style can and will be used for each GeoTIFF (they have the same number of bands with the...

`source.getView()` is a convenience method, it is not mandatory. You can specify your own view or use only the minimum options needed to open a view as in https://codesandbox.io/s/cog-blob-forked-vzwz7r?file=/main.js or...

Something similar to https://openlayers.org/en/latest/examples/layer-spy.html might be easier

The updated `changed()` method in #15410 should have fixed this, try the dev version.

You need to prevent excessive overzooming of the original tiles during reprojection by limiting the `maxZoom` of the reprojected tiles, for example `tif_layer.getSource().setTileGridForProjection('EPSG:3857', createXYZ({maxZoom: 4}))` works in your CodeSandbox. You...

The unwanted interpolation is only seen in Firefox, see #14099. It can be fixed with a polyfill such as ``` /* * Polyfill to make Gecko browser `CanvasRenderingContext2D.drawImage()` behavior when...

> > You could attempt to calculate an appropriate setting based on tif_view.resolutions. > > How could I calculate this? The aim would be to avoid having target (reprojected) tile...

In your case your source has non-square-pixels i.e. the rendered aspect ratio of tiles in the tile grid does not match the 256 : 256 ratio of their data. Reprojection...

Yes, that is to be expected as your non-square pixels are being drawn as square pixels in a canvas stitch context optimised for one dimension only before reprojection. Ideally your...