___
From: Chaitanya kumar CH
To: Etienne
Cc: "gdal-dev@lists.osgeo.org"
Sent: Friday, August 5, 2011 9:46:03 AM
Subject: Re: [gdal-dev] problem rasterizing categorical data from shapefile - 0
values at some intersections
I suggested the -where option because your
sed later, presumably).
> I would prefer to have the most representative value, any hints?
>
> many thanks, Etienne
>
> --
> *From:* Chaitanya kumar CH
> *To:* Etienne
> *Cc:* "gdal-dev@lists.osgeo.org"
> *Sent:* Friday, August 5, 2011 4:
, any hints?
many thanks, Etienne
From: Chaitanya kumar CH
To: Etienne
Cc: "gdal-dev@lists.osgeo.org"
Sent: Friday, August 5, 2011 4:22:10 AM
Subject: Re: [gdal-dev] problem rasterizing categorical data from shapefile - 0
values at some intersec
Etienne,
Rasters of type Byte cannot hold values below 0. So, the nodata value of -1
is not practical. It's better to choose 0 or 255 depending on your data or
choose a different data type.
Your problem arises because the two geometries in the shapefile overlap in
some places and leave some gaps
Hi all,
I am trying to create a raster file with categorical data (land
vegetation/cover positive indices) from a shapefile containing 1 layer of
polygons.
I use the following command:
gdal_rasterize -tr 0.0005 0.0005 -a_nodata -1 -of GTiff -a_srs EPSG:4618 -a
"CLASSE_ID" -ot Byte -init