Can gdal_poligonize.py be used on float data?

4 messages Options
Embed this post
Permalink
asteel

Can gdal_poligonize.py be used on float data?

Reply Threaded More More options
Print post
Permalink
Hello All,

I made a shapefile from a raster layer using gdal_polygonize.py. My
input values are float, but my first attempt of gdal_poligonize.py has
truncated these to integer values.

Ok, so I read the description of the utility on
http://www.gdal.org/gdal_polygonize.html, which says:

"The utility is based on the GDALPolygonize() function.
 > Note that currently the source pixel band values are read into a
signed 32bit integer buffer (Int32), so floating point or complex bands
will be implicitly truncated before processing..."

Anybody got a version that handles float data?
Also, the link to the source code doesn't work at
http://www.gdal.org/gdal__alg_8h.html#3f522a9035d3512b5d414fb4752671b1

Cheers,

Alan Steel
_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
strk

Re: Can gdal_poligonize.py be used on float data?

Reply Threaded More More options
Print post
Permalink
On Wed, Oct 28, 2009 at 05:10:27PM +0100, Alan Steel wrote:

> Also, the link to the source code doesn't work at
> http://www.gdal.org/gdal__alg_8h.html#3f522a9035d3512b5d414fb4752671b1

Hi Alan,
maybe you're looking for this:
http://trac.osgeo.org/gdal/browser/trunk/gdal/alg/gdal_alg.h

--strk;

 Free GIS & Flash consultant/developer      ()  ASCII Ribbon Campaign
 http://foo.keybit.net/~strk/services.html  /\  Keep it simple!
_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
asteel

Re: Can gdal_poligonize.py be used on float data?

Reply Threaded More More options
Print post
Permalink
Thanks.
Thats the declaration. I'm looking for the definition.
Cheers,

Alan

strk wrote:

>
>> ttp://www.gdal.org/gdal__alg_8h.html#3f522a9035d3512b5d414fb4752671b1
>>    
>
> Hi Alan,
> maybe you're looking for this:
> http://trac.osgeo.org/gdal/browser/trunk/gdal/alg/gdal_alg.h
>
> --strk;
>  
_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
strk

Re: Can gdal_poligonize.py be used on float data?

Reply Threaded More More options
Print post
Permalink
On Fri, Oct 30, 2009 at 11:02:52AM +0100, Alan Steel wrote:
> Thanks.
> Thats the declaration. I'm looking for the definition.

http://trac.osgeo.org/gdal/browser/trunk/gdal/alg/polygonize.cpp
Happy hacking!

--strk;

 Free GIS & Flash consultant/developer      ()  ASCII Ribbon Campaign
 http://foo.keybit.net/~strk/services.html  /\  Keep it simple!
_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev