Re: [Qgis-user] DEM error with OpenDataNRW

2020-11-17 Thread Nicolas Cadieux
Indeed, I believe this would be the Python code for a 2x6 raster. import numpy row = numpy.array([[0,0,-1],[0,1,-3],[0,2,-5],[1,0,-2],[1,1,-4],[1,2,-6]]) print (row) col = numpy.array([[0,0,-1],[1,0,-2],[0,1,-3],[1,1,-4],[0,2,-5],[1,2,-6]]) print(col) new_col = row.reshape(2,3,3).transpose(1,0,2

Re: [Qgis-user] DEM error with OpenDataNRW

2020-11-16 Thread qgis-user
On 11/16/2020 12:09 PM, Prof. Dr. Martin Berchtold wrote: The NRW data sort the other way round (see below). So I probably “just” will have to rearrange Y and X in the NRW data to get it ready … … … Yes, works! Cool.  At the risk of stating the obvious,

Re: [Qgis-user] DEM error with OpenDataNRW

2020-11-16 Thread Prof. Dr. Martin Berchtold
vember 2020 18:54 An: Prof. Dr. Martin Berchtold ; qgis-user@lists.osgeo.org Betreff: Re: [Qgis-user] DEM error with OpenDataNRW Hi, I believe, but Even will confirm, that the data is not organized correctly for the gdal driver. I looked at line 2001 and the file is organized by x value with i

Re: [Qgis-user] DEM error with OpenDataNRW

2020-11-16 Thread Nicolas Cadieux
Hi, I believe, but Even will confirm, that the data is not organized correctly for the gdal driver. I looked at line 2001 and the file is organized by x value with incrementing y values.  The x value is constant and the y value change on every line.  The error is detected on line 2001 when th

Re: [Qgis-user] DEM error with OpenDataNRW

2020-11-16 Thread Even Rouault
On lundi 16 novembre 2020 16:53:16 CET Tobias Wendorff wrote: > Am 16.11.2020 um 16:16 schrieb Even Rouault: > > Please provide a link where to download this DEM1 dataset > > Single tiles: > https://www.opengeodata.nrw.de/produkte/geobasis/hm/dgm1_xyz/dgm1_xyz Improvement to handle such datasets

Re: [Qgis-user] DEM error with OpenDataNRW

2020-11-16 Thread Kai Borgolte
Am 16.11.2020 um 17:26 schrieb Kai Borgolte: > 1. Data is organized columnwise. While > doesn't state it explicitly, > I think GDAL expects data rowwise. My fault, it *does* state "Cells with same Y coordinates must be placed on consecutive lines." -- Ka

Re: [Qgis-user] DEM error with OpenDataNRW

2020-11-16 Thread Tobias Wendorff
Am 16.11.2020 um 17:26 schrieb Kai Borgolte: > 2. X values have a leading "32". To read coordinates with EPSG 25832 this "32" must be deleted. Or just use EPSG:4647 ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.or

Re: [Qgis-user] DEM error with OpenDataNRW

2020-11-16 Thread Kai Borgolte
Am 16.11.2020 um 15:49 schrieb Prof. Dr. Martin Berchtold: > could somebody please explain me why QGIS doesn't process the DEM1 data from > OpenDataNRW (.xyz, 1 meter, Nordrhein-Westfalen) Content of the files is like this: 3249.00 5744000.00 258.95 3249.00 5744001.00 259.09 ... 32490

Re: [Qgis-user] DEM error with OpenDataNRW

2020-11-16 Thread Tobias Wendorff
Am 16.11.2020 um 16:16 schrieb Even Rouault: > Please provide a link where to download this DEM1 dataset Single tiles: https://www.opengeodata.nrw.de/produkte/geobasis/hm/dgm1_xyz/dgm1_xyz Municipals: https://www.opengeodata.nrw.de/produkte/geobasis/hm/dgm1_xyz/dgm1_xyz_paketiert Main folder, i

Re: [Qgis-user] DEM error with OpenDataNRW

2020-11-16 Thread Even Rouault
Martin, > could somebody please explain me why QGIS doesn't process the DEM1 data from > OpenDataNRW (.xyz, 1 meter, Nordrhein-Westfalen) while the DEM25 data from > OpenDataRLP (.xyz, 25m, Rheinland-Pfalz, but congruent structure to NRW) > works out without any problem??? Please provide a link w

[Qgis-user] DEM error with OpenDataNRW

2020-11-16 Thread Prof. Dr. Martin Berchtold
Dear all, could somebody please explain me why QGIS doesn't process the DEM1 data from OpenDataNRW (.xyz, 1 meter, Nordrhein-Westfalen) while the DEM25 data from OpenDataRLP (.xyz, 25m, Rheinland-Pfalz, but congruent structure to NRW) works out without any problem??? Error message: Ungültiger