Re: starspan with grass support compilation failure

2 messages Options
Embed this post
Permalink
Nikos Alexandris

Re: starspan with grass support compilation failure

Reply Threaded More More options
Print post
Permalink
On Tue, 2009-09-29 at 10:09 +0200, Xavier Delaunay wrote:
> Dear Nikos,
>
> I had the same compilation error when compiling Starspan, although I am
> not using GRASS. I googled the error message and I found your post.

> I also find clues here:
> https://safe.nrao.edu/wiki/bin/view/GB/Knowledge/Gcc3Compatibility?sortcol=table;up=#3_3_STL_iterators_are_not_pointe

> And there:
> http://www.cplusplus.com/reference/algorithm/

> So my solution has been to add the following line at the beginning of
> the source file src/stats/Stats.cc
> #include <algorithm>
>
> This works in my case.
> Hope this helps.

> I am not using the GRASS mailing list, so you can post this solution if
> it works in your case.

> Best regards,


[cc-ing to grass-user ML]

Many many thanks Xavier :-)

Indeed, it works. I could never find this since I am an (almost
complete) ignorant wrt to C. Hope this helps others as well.

Kindest regards, Nikos

_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Jose Gómez-Dans

Re: starspan with grass support compilation failure

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hi,


2009/9/29 Nikos Alexandris <[hidden email]>
On Tue, 2009-09-29 at 10:09 +0200, Xavier Delaunay wrote:
> I had the same compilation error when compiling Starspan, although I am
> not using GRASS. I googled the error message and I found your post.

If you are willing to use GDAL&Python, you can pretty much do whatever you can do in starspan  using the code & stuff on this page: <http://sites.google.com/site/spatialpython/zonal-statistics>. It doesn't necessarily output the results to a shapefile, but you can output stuff to a CSV and then merge it with OGR's CSV driver. Performance is "pretty good" if your images fit well in memory (I keep meaning to do a block version of it, but since I'm spoilt for RAM, I never actually get round doing it! :D)

Cheers,

Jose

--

RSU ■ Dept. of Geography ■ University College ■ Gower St, London WC1E 6BT UK

EMM ■ Dept. of Geography ■ King's College ■ Strand, London WC2R 2LS UK


_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user