[GRASS-user] improve v.rast.stats speed?

Nikos Alexandris nikos.alexandris at felis.uni-freiburg.de
Thu Feb 19 11:53:16 EST 2009


G. Allegri:

> I've built the 1.2.03 version, downloaded from [1].
> Anyway I suspect the same about GRASS driver inefficiencies in GDAL/OGR
> [1] http://projects.atlas.ca.gov/frs/download.php/667/starspan-1.2.03.tar.gz


Giovanni,
sorry for the sort-of off-topic, but how do you build starspan with
GRASS support? Do you work under Ubuntu? I am trying the following:

#configure
./configure --with-grass=/usr/local/grass-6.5.svn

# compile... fails :-(
make

[...]
g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I./src/csv -I./src/jts
-I./src/raster -I./src/rasterizers -I./src/stats -I./src/traverser
-I./src/util -I./src/vector -g -I/usr/local/include
-I/usr/local/include -I/usr/local/grass-6.5.svn/include  -g -O2 -MT
LineRasterizer.o -MD -MP -MF .deps/LineRasterizer.Tpo -c -o
LineRasterizer.o `test -f 'src/rasterizers/LineRasterizer.cc' || echo
'./'`src/rasterizers/LineRasterizer.cc
mv -f .deps/LineRasterizer.Tpo .deps/LineRasterizer.Po
g++ -DHAVE_CONFIG_H -I. -I./src -I./src -I./src/csv -I./src/jts
-I./src/raster -I./src/rasterizers -I./src/stats -I./src/traverser
-I./src/util -I./src/vector -g -I/usr/local/include
-I/usr/local/include -I/usr/local/grass-6.5.svn/include  -g -O2 -MT
Stats.o -MD -MP -MF .deps/Stats.Tpo -c -o Stats.o `test -f
'src/stats/Stats.cc' || echo './'`src/stats/Stats.cc
src/stats/Stats.cc: In member function ‘void
Stats::compute(std::vector<int, std::allocator<int> >&, int)’:
src/stats/Stats.cc:24: error: cannot convert
‘__gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int>
> >’ to ‘const char*’ for argument ‘1’ to ‘int remove(const char*)’
src/stats/Stats.cc:102: error: ‘sort’ was not declared in this scope
src/stats/Stats.cc: In member function ‘void
Stats::compute(std::vector<double, std::allocator<double> >&, double)’:
src/stats/Stats.cc:143: error: cannot convert
‘__gnu_cxx::__normal_iterator<double*, std::vector<double,
std::allocator<double> > >’ to ‘const char*’ for argument ‘1’ to ‘int
remove(const char*)’
src/stats/Stats.cc:232: error: ‘sort’ was not declared in this scope
make: *** [Stats.o] Error 1



More information about the grass-user mailing list