Bug report #12264

Heatmap generated TIF with bad CRS

Added by Janos Meszaros over 4 years ago. Updated over 2 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
Category:Analysis library
Affected QGIS version:2.8.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:20449

Description

Heatmap generated with plugin placed in the center of used coordinate reference system, instead of actual location. It looks like QGIS can not interpret real coordinates written in TIF file header, instead it uses the coordinates of pixels in image. The used CRS was a cartesian system (epsg: 23700), not geographical.
If image was opened in other GIS software e.g. Global Mapper, it can open it and interprets its projection but it interchanges the axes.

heatmap_01_qgis.png (384 KB) Janos Meszaros, 2015-02-25 02:47 AM

heatmap_01_gm.png (398 KB) Janos Meszaros, 2015-02-25 02:47 AM

heatmap_sample.ZIP (77.1 KB) Janos Meszaros, 2015-02-26 04:09 AM

points.zip (3.54 KB) Luiz Andrade, 2015-03-02 08:59 AM

Associated revisions

Revision f106a2ef
Added by Nyall Dawson over 4 years ago

Fix handling of warped VRT (refs #12264)

Loading of rasters requiring warped VRTs was broken, but the heatmap
plugin is still creating incorrect outputs which needs to be fixed.

Revision ffaa4989
Added by Nyall Dawson over 4 years ago

Fix handling of warped VRT (refs #12264)

Loading of rasters requiring warped VRTs was broken, but the heatmap
plugin is still creating incorrect outputs which needs to be fixed.

History

#1 Updated by Giovanni Manghi over 4 years ago

  • Status changed from Open to Feedback

Hi,
can you share a sample of your input data? Thanks.

#2 Updated by Janos Meszaros over 4 years ago

I attached a zip file containing a Shapefile with drilling points for geological measurements, nothing special except coordinate reference system: please use the HD72/EOV system or 23700 EPSG code to identify proper projection in QGIS.

#3 Updated by Giovanni Manghi over 4 years ago

  • OS version deleted (win7 x64)
  • Affected QGIS version changed from 2.8.0 to 2.8.1
  • Operating System deleted (Windows)
  • Target version changed from Version 2.8 to Version 2.8.2
  • Priority changed from Normal to Severe/Regression
  • Status changed from Feedback to Open

I confirm that there is something wrong in this tool and that ti was working ok in previous qgis releases.

#4 Updated by Pekka Sarkola over 4 years ago

It seems that this more common issue than just Heatmap generated files.

I generate my raster outside QGIS (with gdal_grid): origin and image size is correct. But extent is calculated uncorretly.

Only tested with EPSG:3067, but I presume this is wider problem.

P

#5 Updated by Luiz Andrade over 4 years ago

I´ve made some tests using this data. I found the same problem.

#6 Updated by Giovanni Manghi over 4 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed

seems fixed in qgis master, please reopen if necessary.

#7 Updated by Giovanni Manghi over 2 years ago

  • Category changed from 114 to Analysis library

Also available in: Atom PDF