[gdal-dev] zonal statistics with gdal

Giuseppe Amatulli giuseppe.amatulli at gmail.com
Wed Jun 20 06:39:27 PDT 2012


Ciao,
keeping on the issues of the Subject:"zonal statistics with gdal", one month
ego i put on the web page
http://www.spatial-ecology.net/doku.php?id=wiki:geo_tools
a python script that calculate zonal statistics between two raster.
Is not so fast as the Anssi's OpenForis but i could coded by my self
with more options.
Fill free to modify and improve.
Best Regards
-- 
Giuseppe Amatulli
Web: www.spatial-ecology.net




On 20 June 2012 08:20, Joaquim Luis <jluis at ualg.pt> wrote:
> Anssi,
>
> OK, may I overreact a bit. It's just that I don't like GPL much, specially
> when it used on codes that rely on non GPLed codes. But this thing of
> licensing issue is delicate (and boring), so you'll excuse me if I don't
> give you one opinion on what you should. The most I can say is that when I
> got a clearer grasp of GPL, I change the license of my code to LGPL.
> On a second read I see that you also depend on the gsl library, so perhaps
> you have to make it GPL. I don't know.
>
> Joaquim
>
>
>> Dear Joaquim,
>>
>> thanks for pointing that out.
>>
>> There´s absolutely no intention to abuse any of the great work of the
>> gdal/ogr developers. Rather the opposite.
>>
>> The license is being discussed as we speak and we're considering
>> various options. What would you suggest? Should it be MIT or would ,
>> for example, Modified BSD License do?
>>
>> Best,
>>
>> Anssi
>>
>>
>>
>> On Wed, Jun 20, 2012 at 2:49 PM, Joaquim Luis<jluis at ualg.pt>  wrote:
>>>
>>> One other thing called my attention. If, as we can read on the wiki page
>>> of
>>> OFGT
>>>
>>> "... Most of the stand-alone programs use GDAL libraries and many of the
>>> scripts rely heavily on GDAL command-line utilities."
>>>
>>> than why the OFGT's licence is GPL?
>>>
>>> I know MIT's license allows it, but it clearly looks an abuse to me.
>>>
>>> Joaquim
>>>
>>>
>>>> Distributing software via dropbox is a rather unusual practice, you
>>>> might consider hosting it elsewhere...
>>>>
>>>> Etienne
>>>>
>>>> On Wed, Jun 20, 2012 at 6:53 AM, chenliang wang<hi181904665 at msn.com>
>>>>  wrote:
>>>>>
>>>>> Hi, Anssi
>>>>>
>>>>> Cool ! Open Foris Geospatial Toolkit is a great geospatial library .
>>>>> Unfortunately, I can't download it from dropbox site because ofInternet
>>>>> censorship  of China. Can u upload it to other site or send it for me?
>>>>> Thanks a lot. I are a Linux and MINGW user .
>>>>>
>>>>> Chen-Liang Wang
>>>>>
>>>>> 于 2012-6-20 17:26, anssi 写道:
>>>>>
>>>>>> If you first rasterize your shapefile to the extent of your raster,
>>>>>> you can compute some basic stats and/or full histogram for your
>>>>>> polygons using Open Foris Geospatial Toolkit :
>>>>>>
>>>>>> http://km.fao.org/OFwiki/index.php/Open_Foris_Toolkit
>>>>>>
>>>>>> Installation instructions are under the "How to get it?" link.
>>>>>>
>>>>>> Hope you're a Linux user :)
>>>>>>
>>>>>> Best,
>>>>>>
>>>>>> Anssi
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Jun 20, 2012 at 6:59 AM, Petteri Packalen
>>>>>> <packalen at cs.joensuu.fi>    wrote:
>>>>>>>
>>>>>>> Derek,
>>>>>>>
>>>>>>> Look at the http://starspan.projects.atlas.ca.gov project.
>>>>>>>
>>>>>>> Petteri
>>>>>>>
>>>>>>>
>>>>>>> On Tue, 19 Jun 2012, jdmorgan wrote:
>>>>>>>
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>> Is there a way to do something along the lines of zonal statistics
>>>>>>>> with
>>>>>>>> gdal.Basically, I have a county shape file and a classified raster
>>>>>>>> dataset.I
>>>>>>>> would like to count the number of raster pixels/county (FIPS).Is
>>>>>>>> this
>>>>>>>> possible with GDAL/OGR?If so can someone point me in the right
>>>>>>>> direction?
>>>>>>>>  If so, awesome as I plan to do some automation with python.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>>
>>>>>>>> Derek
>>>>>>>>
>>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> gdal-dev mailing list
>>>>>>> gdal-dev at lists.osgeo.org
>>>>>>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>>>>>
>>>>>> _______________________________________________
>>>>>> gdal-dev mailing list
>>>>>> gdal-dev at lists.osgeo.org
>>>>>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>>>>>
>>>>>>
>>>>> _______________________________________________
>>>>> gdal-dev mailing list
>>>>> gdal-dev at lists.osgeo.org
>>>>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>>>
>>>> _______________________________________________
>>>> gdal-dev mailing list
>>>> gdal-dev at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>>
>>>
>>> _______________________________________________
>>> gdal-dev mailing list
>>> gdal-dev at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
>>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev



-- 
Giuseppe Amatulli
Web: www.spatial-ecology.net


More information about the gdal-dev mailing list