Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-10-05 Thread Markus Metz
On Mon, Feb 24, 2014 at 9:50 PM, Markus Metz markus.metz.gisw...@gmail.com wrote: On Mon, Feb 24, 2014 at 8:15 PM, Vaclav Petras wenzesl...@gmail.com wrote: On Sat, Feb 22, 2014 at 8:11 AM, Markus Metz markus.metz.gisw...@gmail.com wrote: On Fri, Feb 21, 2014 at 5:45 PM, Markus Metz

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-24 Thread Vaclav Petras
On Sat, Feb 22, 2014 at 8:11 AM, Markus Metz markus.metz.gisw...@gmail.comwrote: On Fri, Feb 21, 2014 at 5:45 PM, Markus Metz markus.metz.gisw...@gmail.com wrote: On Fri, Feb 21, 2014 at 5:39 PM, Vaclav Petras wenzesl...@gmail.com wrote: Unfortunately, I have data where GDAL does not

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-22 Thread Markus Metz
On Fri, Feb 21, 2014 at 5:45 PM, Markus Metz markus.metz.gisw...@gmail.com wrote: On Fri, Feb 21, 2014 at 5:39 PM, Vaclav Petras wenzesl...@gmail.com wrote: Unfortunately, I have data where GDAL does not identify the columns. Does GDAL find a raster attribute table? One is the only string

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-21 Thread Moritz Lennert
On 20/02/14 22:14, Markus Metz wrote: I would not replace a working gdal version with a probably not working gdal version. Your gdalinfo reported a raster attribute table, not mine. You could double-check again if your gdalinfo still finds a raster attribute table, then import with r.in.gdal.

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-21 Thread Markus Metz
On Fri, Feb 21, 2014 at 9:35 AM, Moritz Lennert mlenn...@club.worldonline.be wrote: On 20/02/14 22:14, Markus Metz wrote: I would not replace a working gdal version with a probably not working gdal version. Your gdalinfo reported a raster attribute table, not mine. You could double-check

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-21 Thread Moritz Lennert
On 21/02/14 11:30, Markus Metz wrote: On Fri, Feb 21, 2014 at 9:35 AM, Moritz Lennert mlenn...@club.worldonline.be wrote: On 20/02/14 22:14, Markus Metz wrote: I would not replace a working gdal version with a probably not working gdal version. Your gdalinfo reported a raster attribute table,

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-21 Thread Markus Metz
On Fri, Feb 21, 2014 at 2:00 PM, Moritz Lennert mlenn...@club.worldonline.be wrote: On 21/02/14 11:30, Markus Metz wrote: On Fri, Feb 21, 2014 at 9:35 AM, Moritz Lennert mlenn...@club.worldonline.be wrote: On 20/02/14 22:14, Markus Metz wrote: I would not replace a working gdal version

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-21 Thread Moritz Lennert
On 21/02/14 17:12, Markus Metz wrote: On Fri, Feb 21, 2014 at 2:00 PM, Moritz Lennert mlenn...@club.worldonline.be wrote: On 21/02/14 11:30, Markus Metz wrote: On Fri, Feb 21, 2014 at 9:35 AM, Moritz Lennert mlenn...@club.worldonline.be wrote: On 20/02/14 22:14, Markus Metz wrote: I

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-21 Thread Vaclav Petras
Unfortunately, I have data where GDAL does not identify the columns. One is the only string there, and the other three are the red, green, blue (in the range 0-1). For me it is clear what column I would like to transform to label and to color rules but I'm not sure if GDAL has even a chance to

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-21 Thread Markus Metz
On Fri, Feb 21, 2014 at 5:39 PM, Vaclav Petras wenzesl...@gmail.com wrote: Unfortunately, I have data where GDAL does not identify the columns. Does GDAL find a raster attribute table? One is the only string there, and the other three are the red, green, blue (in the range 0-1). ... which

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-20 Thread manuel.martin
On 02/18/2014 09:31 PM, Markus Metz wrote: On Tue, Feb 18, 2014 at 2:09 PM, manuel.martin manuel.mar...@orleans.inra.fr wrote: On 02/18/2014 01:56 PM, Markus Metz wrote: On Tue, Feb 18, 2014 at 1:14 PM, manuel.martin manuel.mar...@orleans.inra.fr wrote: On 02/18/2014 12:47 PM, Markus Metz

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-20 Thread Markus Metz
On Thu, Feb 20, 2014 at 9:32 AM, manuel.martin manuel.mar...@orleans.inra.fr wrote: On 02/18/2014 09:31 PM, Markus Metz wrote: On Tue, Feb 18, 2014 at 2:09 PM, manuel.martin manuel.mar...@orleans.inra.fr wrote: On 02/18/2014 01:56 PM, Markus Metz wrote: On Tue, Feb 18, 2014 at 1:14 PM,

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-18 Thread manuel.martin
Hi, I just compiled grass r59073 and gave a try. I could not get the attributes imported along with the raster, but maybe am I missing something from the new revision of r.in.gdal (although from the code it looks that the import of values from the attribute table should be automatic?). Markus,

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-18 Thread Markus Metz
On Tue, Feb 18, 2014 at 11:43 AM, manuel.martin manuel.mar...@orleans.inra.fr wrote: Hi, I just compiled grass r59073 and gave a try. I could not get the attributes imported along with the raster, but maybe am I missing something from the new revision of r.in.gdal (although from the code it

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-18 Thread manuel.martin
On 02/18/2014 12:47 PM, Markus Metz wrote: On Tue, Feb 18, 2014 at 11:43 AM, manuel.martin manuel.mar...@orleans.inra.fr wrote: Hi, I just compiled grass r59073 and gave a try. I could not get the attributes imported along with the raster, but maybe am I missing something from the new revision

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-18 Thread Markus Metz
On Tue, Feb 18, 2014 at 1:14 PM, manuel.martin manuel.mar...@orleans.inra.fr wrote: On 02/18/2014 12:47 PM, Markus Metz wrote: On Tue, Feb 18, 2014 at 11:43 AM, manuel.martin manuel.mar...@orleans.inra.fr wrote: Hi, I just compiled grass r59073 and gave a try. I could not get the attributes

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-18 Thread manuel.martin
On 02/18/2014 01:56 PM, Markus Metz wrote: On Tue, Feb 18, 2014 at 1:14 PM, manuel.martin manuel.mar...@orleans.inra.fr wrote: On 02/18/2014 12:47 PM, Markus Metz wrote: On Tue, Feb 18, 2014 at 11:43 AM, manuel.martin manuel.mar...@orleans.inra.fr wrote: Hi, I just compiled grass r59073 and

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-18 Thread Markus Metz
On Tue, Feb 18, 2014 at 2:09 PM, manuel.martin manuel.mar...@orleans.inra.fr wrote: On 02/18/2014 01:56 PM, Markus Metz wrote: On Tue, Feb 18, 2014 at 1:14 PM, manuel.martin manuel.mar...@orleans.inra.fr wrote: On 02/18/2014 12:47 PM, Markus Metz wrote: On Tue, Feb 18, 2014 at 11:43 AM,

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-17 Thread Markus Metz
On Fri, Feb 14, 2014 at 5:41 PM, manuel.martin manuel.mar...@orleans.inra.fr wrote: On 02/14/2014 05:08 PM, Markus Metz wrote: On Wed, Feb 12, 2014 at 5:05 PM, manuel.martin manuel.mar...@orleans.inra.fr wrote: Hi all, I tried to import an ArcGIS binary raster (corine land cover for the

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-14 Thread Moritz Lennert
On 13/02/14 18:48, manuel.martin wrote: So I looked closer at the data and it is ESRI's binary ArcInfo Grid format with vat.adf files in the layer directory. These tables may be accessed outside of ArcGIS using for instance gdalinfo, and the R raster library seem to do it as well. However these

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-14 Thread Markus Metz
On Wed, Feb 12, 2014 at 5:05 PM, manuel.martin manuel.mar...@orleans.inra.fr wrote: Hi all, I tried to import an ArcGIS binary raster (corine land cover for the French territory) with three fields on each pixels (VALUE, COUNT and CODE_06) using the r.in.gdal command. The import works just

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-14 Thread manuel.martin
On 02/14/2014 05:08 PM, Markus Metz wrote: On Wed, Feb 12, 2014 at 5:05 PM, manuel.martin manuel.mar...@orleans.inra.fr wrote: Hi all, I tried to import an ArcGIS binary raster (corine land cover for the French territory) with three fields on each pixels (VALUE, COUNT and CODE_06) using the

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-13 Thread manuel.martin
Hi Ben, Thanks for the reply. I tried with the band option but it looks like gdal does not detect the multiple fields as multiple bands : GRASS 7.0.svn (lambert93):~ r.in.gdal --o \ input=/home/manuel/Desktop/sftp/Projets/Projets/Zones-humides/base_sig/dsm_data/clc/clc06_250m \ band=3

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-13 Thread Benjamin Ducke
Hmm, the manual page does not say so explicitely, but maybe band numbering starts with 0? In that case your band 3 would have index number 2. Ben On 13/02/14 10:48, manuel.martin wrote: Hi Ben, Thanks for the reply. I tried with the band option but it looks like gdal does not detect the

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-13 Thread manuel.martin
I had already tried this (with 2) ;-). No luck either. Reading your email I tried with 0 (maybe would gdal detect only two bands over three). It comes out that only band=1 works GRASS 7.0.svn (lambert93):~ r.in.gdal --o

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-13 Thread Benjamin Ducke
Ouch. I am beginning to suspect that the ESRI field concept for raster layers does not translate well to GRASS/GDAL. Sorry for not being able to help. Maybe someone else on this list has experience with this type of data structure? At least now we know that r.in.gdal starts counting bands with 1!

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-13 Thread Nuno Sá
Out of the box: Import it in R and save it as a Tiff - use GRASS to open this tiff. Maybe it works ;P On 13 February 2014 10:50, Benjamin Ducke bendu...@fastmail.fm wrote: Ouch. I am beginning to suspect that the ESRI field concept for raster layers does not translate well to GRASS/GDAL.

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-13 Thread manuel.martin
I think geoTiffs do not handle categorical variables (can anyone confirm?), neither the writeRAST6() function from spgrass6 (tested yesterday), and that's why I looked for a full GRASS option (avoiding using R to go from ArcGIS to GRASS). So it is true that I can import categorical ArcGIS

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-13 Thread Moritz Lennert
On 13/02/14 13:32, manuel.martin wrote: I think geoTiffs do not handle categorical variables (can anyone confirm?), neither the writeRAST6() function from spgrass6 (tested yesterday), and that's why I looked for a full GRASS option (avoiding using R to go from ArcGIS to GRASS). So it is true

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-13 Thread manuel.martin
On 02/13/2014 04:31 PM, Moritz Lennert wrote: On 13/02/14 13:32, manuel.martin wrote: I think geoTiffs do not handle categorical variables (can anyone confirm?), neither the writeRAST6() function from spgrass6 (tested yesterday), and that's why I looked for a full GRASS option (avoiding using R

[GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-12 Thread manuel.martin
Hi all, I tried to import an ArcGIS binary raster (corine land cover for the French territory) with three fields on each pixels (VALUE, COUNT and CODE_06) using the *r.in.gdal* command. The import works just fine, except that in the resulting raster, in GRASS, I only get one field, which

Re: [GRASS-user] r.in.gdal for importing categorical ArcGIS binary rasters

2014-02-12 Thread Benjamin Ducke
Hi Manuel, GRASS does not support multi-band rasters, so you'll have to import each band as a separate raster map. r.in.gdal has the band= option to specify a band number to import. Best, Ben On 12/02/14 17:05, manuel.martin wrote: Hi all, I tried to import an ArcGIS binary raster