[GRASS-dev] [GRASS GIS] #2684: i.segment do not recycle IDnumbers (categories)

#2684: i.segment do not recycle IDnumbers (categories)
---------------------------+-------------------------
Reporter: franziskabeau | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.1
Component: Default | Version: 7.0.0
Keywords: | CPU: x86-64
Platform: MSWindows 7 |
---------------------------+-------------------------
Hello,
I have the problem, that I can't export segmentationresults into geotiff.
The following ERROR occurs:

ERROR 6: SetColorTable() only supported for Byte or UInt16
bands in TIFF format.
Warning 1: Lost metadata writing to GeoTIFF ... too large to
fit in tag.
Using GDAL data type <Int32>
Exporting raster data to GTiff format...
WARNING: Too many values, color table cut to 65535 entries

The problem is, that I only had created like 28.502 segments with
i.segment. When I assign new IDs with r.clump I can export the segmentated
raster picture, but it doesn't work stabil. It seems like during the
i.segment algorithm the IDs of the segments are mulitplied by themselves
or something like this.

If you have questions be free to contact me. I really want to use the
i.segment algorithm an export my results. Thank you.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2684&gt;
GRASS GIS <http://grass.osgeo.org>

#2684: i.segment do not recycle IDnumbers (categories)
----------------------------+-------------------------
  Reporter: franziskabeau | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.1
Component: Default | Version: 7.0.0
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 7
----------------------------+-------------------------

Comment (by mlennert):

Replying to [ticket:2684 franziskabeau]:
> Hello,
> I have the problem, that I can't export segmentationresults into
geotiff.
> The following ERROR occurs:
>
> ERROR 6: SetColorTable() only supported for Byte or UInt16
> bands in TIFF format.
> Warning 1: Lost metadata writing to GeoTIFF ... too large to
> fit in tag.
> Using GDAL data type <Int32>
> Exporting raster data to GTiff format...
> WARNING: Too many values, color table cut to 65535 entries
>

The error is only related to the color table, not the actual data. Are you
sure the export didn't work ? Try to run gdalinfo on the resulting tif
file or reimporting it into GRASS GIS or another program.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2684#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#2684: i.segment do not recycle IDnumbers (categories)
----------------------------+-------------------------
  Reporter: franziskabeau | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.1
Component: Default | Version: 7.0.0
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 7
----------------------------+-------------------------
Changes (by franziskabeau):

* Attachment "disappearingGeotiff.PNG" added.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2684&gt;
GRASS GIS <http://grass.osgeo.org>

#2684: i.segment do not recycle IDnumbers (categories)
----------------------------+-------------------------
  Reporter: franziskabeau | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.1
Component: Default | Version: 7.0.0
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 7
----------------------------+-------------------------
Changes (by franziskabeau):

* Attachment "disappearingGeotiff.2.PNG" added.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2684&gt;
GRASS GIS <http://grass.osgeo.org>

#2684: i.segment do not recycle IDnumbers (categories)
----------------------------+-------------------------
  Reporter: franziskabeau | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.1
Component: Default | Version: 7.0.0
Resolution: | Keywords:
       CPU: x86-64 | Platform: MSWindows 7
----------------------------+-------------------------

Comment (by franziskabeau):

Thank you for promptly answering. I really often tried over a couple of
days to export and import the generated data from GRASS-GIS to QGIS, but
it doesn´t work. I tried all the suggestions from the rasterexport-help-
box. But the ERROR information, that the color table cuts (see above)
includes, that it doesn't generate an geotiff at all. If I use the
function r.clump bevor exporting, it generates an geotiff. But this
geotiff is in a way not stabil, it desappeares as seen in the annex.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2684#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>