[GRASS5] rst updates
Markus Neteler
neteler at itc.it
Tue Dec 14 03:56:28 EST 2004
On Mon, Dec 13, 2004 at 11:31:12PM -0500, Helena wrote:
>
> I have added several updates for rst, including crossvalidation option
> It is not finished yet, but almost everything runs OK, except larger (500K
> +) vector
> point files with z stored as attribute (if you store the variable that you
> want to
> interpolate as z coordinate - layer=0 it runs fine). Crossvalidation needs
> some speed-up too
> and I plan to add a less accurate but faster and probably sufficient
> approximation in near future.
> I would like to remove the confusing dmax option (it adds points on
> contours if the given
> points are farther appart than dmax) - please let me know if anybody needs
> it (I will
> then keep it and try to better explain it).
>
> Please let me know if something that I did not mention does not work,
Helena,
to make it compile, I have applied the following change in CVS:
RCS file: /grassrepository/grass51/lib/rst/interp_float/interpf.h,v
retrieving revision 1.5
diff -u -r1.5 interpf.h
--- interpf.h 14 Dec 2004 04:06:07 -0000 1.5
+++ interpf.h 14 Dec 2004 08:54:17 -0000
@@ -16,13 +16,13 @@
double smooth;
};
- struct line_pnts *Pnts;
- struct line_cats *Cats2;
- dbDriver *driver2;
- dbString sql2;
- struct Map_info Map2;
- struct field_info *ff;
- int count;
+extern struct line_pnts *Pnts;
+extern struct line_cats *Cats2;
+extern dbDriver *driver2;
+extern dbString sql2;
+extern struct Map_info Map2;
+extern struct field_info *ff;
+extern int count;
Not sure if it's right but now it compiles.
My suggestion is to use the following CFLAGS to catch such
problems:
export CFLAGS='-g -Wall -Werror-implicit-function-declaration -fno-common'
configure ...
make
Markus
More information about the grass-dev
mailing list