Ticket #204 (closed enhancement: invalid)
Rasters with multiple projections in a project are not handled gracefully
| Reported by: | morb_au | Owned by: | ersts |
|---|---|---|---|
| Priority: | major: does not work as expected | Milestone: | Version 1.4.0 |
| Component: | Projection Support | Version: | Trunk |
| Keywords: | Cc: | ||
| Platform Version: | Platform: | All | |
| Must Fix for Release: | No | Awaiting user input: | no |
Description
If a map canvas has 2 or more rasters added to it, in different projections, only the first projection is honoured. Subsequent projections are silently disregarded.
In the case of a UTM projection being added first and a Lat/Lon? projection added second, the "zoom to layer extent" of the second layer does seem to work OK but then the layer viewport is selected using UTM coordinates, which is way out of range therefore resulting in no image being generated for the second layer.
Suggested course of action for a fix:
1. Warn the user if a raster layer is about to be selected that is incompatible with the project projection.
2. WMS layers can have their projection selection filtered down to match the project projection.
3. Longer term, introduce the GDAL Warp function to do raster projection conversion on-the-fly.