[GRASS-dev] [GRASS GIS] #96: v.surf.bspline intermittent failure - maybe on large datasets

#96: v.surf.bspline intermittent failure - maybe on large datasets
----------------------+-----------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.3.0
Component: default | Version: unspecified
Keywords: |
----------------------+-----------------------------------------------------
v.surf.bspline is a potentially useful tool. But it seems to have bugs
that show up intermittently. On modest size datasets, it works very fast.
However, with many points, it seems to sit and do nothing. It's not clear
whether it is locked up or becomes extremely slow. I'm still not sure if
the column option works correctly.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/96&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#96: v.surf.bspline intermittent failure - maybe on large datasets
-----------------------+----------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: default | Version: unspecified
Resolution: | Keywords:
-----------------------+----------------------------------------------------
Changes (by neteler):

  * milestone: 6.3.0 => 6.4.0

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/96#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#96: v.surf.bspline broken
-----------------------+----------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: Raster | Version: unspecified
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Changes (by cmbarton):

  * platform: => All
  * component: default => Raster
  * cpu: => All
  * summary: v.surf.bspline intermittent failure - maybe on large datasets
              => v.surf.bspline broken

Comment:

This has set broken for many months now. Should we remove it from the main
GRASS distribution until someone is able to work on it? It would be a nice
addition to GRASS interpolation tools, but it doesn't seem like a good
idea to ship a module that doesn't work and is not being fixed.

Michael

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/96#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#96: v.surf.bspline broken
-----------------------+----------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: Raster | Version: unspecified
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Changes (by neteler):

* cc: rantolin (added)

Comment:

I got a bugfix from Roberto which needs to be tested (patch attached).
It includes G_percent() output and two message cosmetics from me.

Test case for North Carolina data set:
{{{
g.region res=500 vect=precip_30ynormals -ap
v.surf.bspline precip_30ynormals colum=annual rast=precip_30ynormals_surf
layer=1 sin=1000 sie=1000
}}}

Markus

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/96#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#96: v.surf.bspline broken
-----------------------+----------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: Raster | Version: unspecified
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by martinl):

Can be the patch applied in SVN for better testing?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/96#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#96: v.surf.bspline broken
-----------------------+----------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.0
Component: Raster | Version: unspecified
Resolution: fixed | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Changes (by cmbarton):

  * status: new => closed
  * resolution: => fixed

Comment:

This is fixed, but needs better documentation now--in progress.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/96#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#96: v.surf.bspline broken
-----------------------+----------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: reopened
  Priority: major | Milestone: 6.4.0
Component: Raster | Version: unspecified
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Changes (by neteler):

  * status: closed => reopened
  * resolution: fixed =>

Comment:

The bug is back... (interpolation of annual rainfall):

{{{
GRASS 6.5.svn (nc_spm_07):~ > g.region res=500 vect=precip_30ynormals -ap
projection: 99 (Lambert Conformal Conic)
zone: 0
datum: nad83
ellipsoid: a=6378137 es=0.006694380022900787
north: 307000
south: 27500
west: 151500
east: 917500
nsres: 500
ewres: 500
rows: 559
cols: 1532
cells: 856388

v.univar precip_30ynormals column=annual type=point
number of features with non NULL attribute: 136
number of missing attributes: 0
number of NULL attributes: 0
minimum: 947.42
maximum: 2329.18
range: 1381.76
mean: 1289.31
mean of absolute values: 1289.31
population standard deviation: 198.572
population variance: 39431
population coefficient of variation: 0.154014
sample standard deviation: 199.306
sample variance: 39723.1
kurtosis: 8.48418
skewness: 2.48352

v.surf.bspline precip_30ynormals rast=precip_30ynormals_surf column=annual
layer=1 sin=1000 sie=1000
No vector map of sparse points to interpolate. Interpolation will be done
with <precip_30ynormals> vector map
[136] records selected from table
  100%
v.surf.bspline complete.

r.univar precip_30ynormals_surf
  100%
total null and non-null cells: 856388
total null cells: 0

Of the non-null cells:
----------------------
n: 856388
minimum: 0
maximum: 0
range: 0
mean: 0
mean of absolute values: 0
standard deviation: 0
variance: 0
variation coefficient: nan %
sum: 0
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/96#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>

#96: v.surf.bspline broken
-----------------------+----------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: reopened
  Priority: major | Milestone: 6.4.0
Component: Raster | Version: unspecified
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by neteler):

I found suspicious code which was introduced in the last fix round.
Commenting that out attributes are taken again. I don't understand the
purpose of the part which I have commented in attached patch
v.surf.bspline_fix_attribs.diff. AFAIK "type" is defined but not set.
There is another "type" in main() - perhaps a different variable was
supposed to be used to test against GV_POINTS?

Markus

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/96#comment:7&gt;
GRASS GIS <http://grass.osgeo.org>

#96: v.surf.bspline broken
-----------------------+----------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: reopened
  Priority: major | Milestone: 6.4.0
Component: Raster | Version: unspecified
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by neteler):

With that patch, the result of the precip vector map interpolation is now:

{{{
r.univar precip_30ynormals_surf
  100%
total null and non-null cells: 54144
total null cells: 0

Of the non-null cells:
----------------------
n: 54144
minimum: 1133.44
maximum: 1858.02
range: 724.578
mean: 1338.21
mean of absolute values: 1338.21
standard deviation: 153.479
variance: 23555.8
variation coefficient: 11.469 %
sum: 72456125.5301044583
}}}

which has a reasonable range. Artefacts are visible but that will require
parameter tuning.

Markus

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/96#comment:8&gt;
GRASS GIS <http://grass.osgeo.org>

#96: v.surf.bspline broken
-----------------------+----------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: reopened
  Priority: major | Milestone: 6.4.0
Component: Raster | Version: unspecified
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by marisn):

Replying to [comment:7 neteler]:
> I found suspicious code which was introduced in the last fix round.
Commenting that out attributes are taken again. I don't understand the
purpose of the part which I have commented in attached patch
v.surf.bspline_fix_attribs.diff. AFAIK "type" is defined but not set.
There is another "type" in main() - perhaps a different variable was
supposed to be used to test against GV_POINTS?
>
> Markus

Original code (almost) makes sense (r21982).

{{{
/*type = Vect_read_line (&In, points, Cats, observ[i].lineID);*/
if ( !(type & GV_POINTS ) ) continue;
}}}

Still I have no idea how to fix this module (I'm lazy) (fix == does it
needs that check or not). Also I looked at P_Read_Vector_Region_Map
(lidarlib/zones.c) and it seemed somehow fishy - it reads vector line and
then uses only first coordinate of that line, still as code lacks any
comments about it's design specifics (and it has them i.e. as it crunches
over all vector lines on every function call instad of using standart V_*
functions) I can only suggest to somebody who understands that code to add
comments and, probably, line type check.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/96#comment:9&gt;
GRASS GIS <http://grass.osgeo.org>

#96: v.surf.bspline column option broken
-----------------------+----------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: reopened
  Priority: major | Milestone: 6.4.0
Component: Raster | Version: unspecified
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Changes (by neteler):

  * summary: v.surf.bspline broken => v.surf.bspline column option broken

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/96#comment:10&gt;
GRASS GIS <http://grass.osgeo.org>

#96: v.surf.bspline column option broken
-----------------------+----------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: reopened
  Priority: major | Milestone: 6.4.0
Component: Raster | Version: unspecified
Resolution: | Keywords: v.surf.bspline
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Changes (by martinl):

  * keywords: => v.surf.bspline

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/96#comment:11&gt;
GRASS GIS <http://grass.osgeo.org>

#96: v.surf.bspline column option broken
-----------------------+----------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: reopened
  Priority: major | Milestone: 6.4.0
Component: Raster | Version: unspecified
Resolution: | Keywords: v.surf.bspline
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by cmbarton):

I was just able to test this with an sqlite attribute database. The column
option is still broken in all versions. If this is non-functional and no
way to fix it, perhaps we should just take it out of the interface and
manual.

Michael

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/96#comment:12&gt;
GRASS GIS <http://grass.osgeo.org>

#96: v.surf.bspline column option broken
-----------------------+----------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: reopened
  Priority: major | Milestone: 6.4.0
Component: Raster | Version: unspecified
Resolution: | Keywords: v.surf.bspline
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by cmbarton):

Forgot to give an example of the command I used--that did not work.

Michael

v.surf.bspline --overwrite input=elev_pts1000_sql@sqlite_test
raster=aaa_splintest@sqlite_test sie=400 sin=400 layer=1 column=elevation

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/96#comment:13&gt;
GRASS GIS <http://grass.osgeo.org>

this is an issue that may be related to the v.surf.bspline #96 bug.
When running v.outlier on 3D vector file with topology built but no DBF table
we get the following error:

v.outlier input=JR2007 output=JR2007_outlierfree outlier=JR2007_outliers thres_o=30
DBMI-DBF driver error:
Table 'Auxiliar_outlier_table' doesn't exist.
Error in db_execute_immediate()

ERROR: Impossible to write in the database

The output files are actually written but when trying to display them we get
GRASS 6.4.0RC5 (nc_spm_08):~/tgrassdata > d.vect JR2007_outlierfree siz=1 co=red
WARNING: Coor files of vector map <JR2007_outlierfree@helena> is larger
          than it should be (94411739 bytes excess)
WARNING: Unable to display areas, topology not available
Segmentation fault
GRASS 6.4.0RC5 (nc_spm_08):~/tgrassdata > d.vect JR2007_outliers siz=1 co=red
WARNING: Coor files of vector map <JR2007_outliers@helena> is larger than
          it should be (839 bytes excess)
WARNING: Unable to display areas, topology not available

Looking at the manual it seems that the table is needed only for QGIS output where
the elevation is stored as category. So I am wondering whether this is a bug
that needs to be fixed or whether the v.* lidar modules require points
with elevation stored in DBF (which is a problem for large datasets) - if that is
the case it should be probably mentioned in the man page.

These modules would be really useful if we could get them to work,

Helena

On Nov 21, 2009, at 11:27 AM, GRASS GIS wrote:

#96: v.surf.bspline column option broken
-----------------------+----------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: reopened
Priority: major | Milestone: 6.4.0
Component: Raster | Version: unspecified
Resolution: | Keywords: v.surf.bspline
Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by cmbarton):

Forgot to give an example of the command I used--that did not work.

Michael

v.surf.bspline --overwrite input=elev_pts1000_sql@sqlite_test
raster=aaa_splintest@sqlite_test sie=400 sin=400 layer=1 column=elevation

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/96#comment:13&gt;
GRASS GIS <http://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Hello Helena,
no. v.outlier issues are not related to v.surf.bspline DBF problems.
v.surf.bspline has some hairy code and thus I was not trying to fix it
- to not broke something by accident.

v.outlier is different. Open a trac request to remove database
dependency for it. Current code allover manipulates with database and
it will require some work to make database manipulation optional.
Also on error it should not leave unfinished vector files on disk.
Also having QGIS as an output option should be renamed to reveal this
options output content as it migh be usefull also for other GUIs not
only QGIS.

Maris.

2009/11/22, helena <hmitaso@unity.ncsu.edu>:

this is an issue that may be related to the v.surf.bspline #96 bug.
When running v.outlier on 3D vector file with topology built but no
DBF table
we get the following error:

v.outlier input=JR2007 output=JR2007_outlierfree
outlier=JR2007_outliers thres_o=30
DBMI-DBF driver error:
Table 'Auxiliar_outlier_table' doesn't exist.
Error in db_execute_immediate()

ERROR: Impossible to write in the database

The output files are actually written but when trying to display them
we get
GRASS 6.4.0RC5 (nc_spm_08):~/tgrassdata > d.vect JR2007_outlierfree
siz=1 co=red
WARNING: Coor files of vector map <JR2007_outlierfree@helena> is larger
          than it should be (94411739 bytes excess)
WARNING: Unable to display areas, topology not available
Segmentation fault
GRASS 6.4.0RC5 (nc_spm_08):~/tgrassdata > d.vect JR2007_outliers siz=1
co=red
WARNING: Coor files of vector map <JR2007_outliers@helena> is larger
than
          it should be (839 bytes excess)
WARNING: Unable to display areas, topology not available

Looking at the manual it seems that the table is needed only for QGIS
output where
the elevation is stored as category. So I am wondering whether this
is a bug
that needs to be fixed or whether the v.* lidar modules require points
with elevation stored in DBF (which is a problem for large datasets) -
if that is
the case it should be probably mentioned in the man page.

These modules would be really useful if we could get them to work,

Helena

On Nov 21, 2009, at 11:27 AM, GRASS GIS wrote:

#96: v.surf.bspline column option broken
-----------------------
+----------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: reopened
Priority: major | Milestone: 6.4.0
Component: Raster | Version: unspecified
Resolution: | Keywords: v.surf.bspline
Platform: All | Cpu: All
-----------------------
+----------------------------------------------------
Comment (by cmbarton):

Forgot to give an example of the command I used--that did not work.

Michael

v.surf.bspline --overwrite input=elev_pts1000_sql@sqlite_test
raster=aaa_splintest@sqlite_test sie=400 sin=400 layer=1
column=elevation

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/96#comment:13&gt;
GRASS GIS <http://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Please try trunk r39785.

According to the comments in the code, the auxiliary table is used to store info about overlapping zones and is dropped at the end. The auxiliary table is always created and used, also when no output vector for display (QGIS output) is given.

Markus M

helena wrote:

this is an issue that may be related to the v.surf.bspline #96 bug.
When running v.outlier on 3D vector file with topology built but no DBF table
we get the following error:

v.outlier input=JR2007 output=JR2007_outlierfree outlier=JR2007_outliers thres_o=30
DBMI-DBF driver error:
Table 'Auxiliar_outlier_table' doesn't exist.
Error in db_execute_immediate()

ERROR: Impossible to write in the database

The output files are actually written but when trying to display them we get
GRASS 6.4.0RC5 (nc_spm_08):~/tgrassdata > d.vect JR2007_outlierfree siz=1 co=red
WARNING: Coor files of vector map <JR2007_outlierfree@helena> is larger
than it should be (94411739 bytes excess)
WARNING: Unable to display areas, topology not available
Segmentation fault
GRASS 6.4.0RC5 (nc_spm_08):~/tgrassdata > d.vect JR2007_outliers siz=1 co=red
WARNING: Coor files of vector map <JR2007_outliers@helena> is larger than
it should be (839 bytes excess)
WARNING: Unable to display areas, topology not available

Looking at the manual it seems that the table is needed only for QGIS output where
the elevation is stored as category. So I am wondering whether this is a bug
that needs to be fixed or whether the v.* lidar modules require points
with elevation stored in DBF (which is a problem for large datasets) - if that is
the case it should be probably mentioned in the man page.

These modules would be really useful if we could get them to work,

Helena

On Nov 21, 2009, at 11:27 AM, GRASS GIS wrote:

#96: v.surf.bspline column option broken
-----------------------+----------------------------------------------------

Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: reopened
Priority: major | Milestone: 6.4.0
Component: Raster | Version: unspecified
Resolution: | Keywords: v.surf.bspline
Platform: All | Cpu: All
-----------------------+----------------------------------------------------

Comment (by cmbarton):

Forgot to give an example of the command I used--that did not work.

Michael

v.surf.bspline --overwrite input=elev_pts1000_sql@sqlite_test
raster=aaa_splintest@sqlite_test sie=400 sin=400 layer=1 column=elevation

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/96#comment:13&gt;
GRASS GIS <http://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Hello Markus,
if You understand taht code - how complex (usefull) would be getting
rid of DB at all? I mean - is it possible to store temporary data into
some faster data structure (file?) and thus eliminate all DB
dependencies for this module?

Maris.

2009/11/23, Markus Metz <markus.metz.giswork@googlemail.com>:

Please try trunk r39785.

According to the comments in the code, the auxiliary table is used to
store info about overlapping zones and is dropped at the end. The
auxiliary table is always created and used, also when no output vector
for display (QGIS output) is given.

Markus M

helena wrote:

this is an issue that may be related to the v.surf.bspline #96 bug.
When running v.outlier on 3D vector file with topology built but no
DBF table
we get the following error:

v.outlier input=JR2007 output=JR2007_outlierfree
outlier=JR2007_outliers thres_o=30
DBMI-DBF driver error:
Table 'Auxiliar_outlier_table' doesn't exist.
Error in db_execute_immediate()

ERROR: Impossible to write in the database

The output files are actually written but when trying to display them
we get
GRASS 6.4.0RC5 (nc_spm_08):~/tgrassdata > d.vect JR2007_outlierfree
siz=1 co=red
WARNING: Coor files of vector map <JR2007_outlierfree@helena> is larger
than it should be (94411739 bytes excess)
WARNING: Unable to display areas, topology not available
Segmentation fault
GRASS 6.4.0RC5 (nc_spm_08):~/tgrassdata > d.vect JR2007_outliers siz=1
co=red
WARNING: Coor files of vector map <JR2007_outliers@helena> is larger than
it should be (839 bytes excess)
WARNING: Unable to display areas, topology not available

Looking at the manual it seems that the table is needed only for QGIS
output where
the elevation is stored as category. So I am wondering whether this is
a bug
that needs to be fixed or whether the v.* lidar modules require points
with elevation stored in DBF (which is a problem for large datasets) -
if that is
the case it should be probably mentioned in the man page.

These modules would be really useful if we could get them to work,

Helena

On Nov 21, 2009, at 11:27 AM, GRASS GIS wrote:

#96: v.surf.bspline column option broken
-----------------------+----------------------------------------------------

Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: reopened
Priority: major | Milestone: 6.4.0
Component: Raster | Version: unspecified
Resolution: | Keywords: v.surf.bspline
Platform: All | Cpu: All
-----------------------+----------------------------------------------------

Comment (by cmbarton):

Forgot to give an example of the command I used--that did not work.

Michael

v.surf.bspline --overwrite input=elev_pts1000_sql@sqlite_test
raster=aaa_splintest@sqlite_test sie=400 sin=400 layer=1
column=elevation

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/96#comment:13&gt;
GRASS GIS <http://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Hi Maris,

sorry, I don't really understand the purpose of that auxiliary table in P_outlier() in outlier.c. It is possible that all code referring to that table can be safely removed, but that needs some more testing. If the table is indeed used and not getting too large, it could be replaced with another faster data structure kept in memory. If the table is getting large, it could be difficult to come up with something file-based that's faster than a database. Anyway, it looks like the LiDAR tools could do with some maintenance.

Markus M

Maris Nartiss wrote:

Hello Markus,
if You understand taht code - how complex (usefull) would be getting
rid of DB at all? I mean - is it possible to store temporary data into
some faster data structure (file?) and thus eliminate all DB
dependencies for this module?

Maris.

2009/11/23, Markus Metz <markus.metz.giswork@googlemail.com>:
  

Please try trunk r39785.

According to the comments in the code, the auxiliary table is used to
store info about overlapping zones and is dropped at the end. The
auxiliary table is always created and used, also when no output vector
for display (QGIS output) is given.

Markus M

helena wrote:
    

this is an issue that may be related to the v.surf.bspline #96 bug.
When running v.outlier on 3D vector file with topology built but no
DBF table
we get the following error:

v.outlier input=JR2007 output=JR2007_outlierfree
outlier=JR2007_outliers thres_o=30
DBMI-DBF driver error:
Table 'Auxiliar_outlier_table' doesn't exist.
Error in db_execute_immediate()

ERROR: Impossible to write in the database

The output files are actually written but when trying to display them
we get
GRASS 6.4.0RC5 (nc_spm_08):~/tgrassdata > d.vect JR2007_outlierfree
siz=1 co=red
WARNING: Coor files of vector map <JR2007_outlierfree@helena> is larger
than it should be (94411739 bytes excess)
WARNING: Unable to display areas, topology not available
Segmentation fault
GRASS 6.4.0RC5 (nc_spm_08):~/tgrassdata > d.vect JR2007_outliers siz=1
co=red
WARNING: Coor files of vector map <JR2007_outliers@helena> is larger than
it should be (839 bytes excess)
WARNING: Unable to display areas, topology not available

Looking at the manual it seems that the table is needed only for QGIS
output where
the elevation is stored as category. So I am wondering whether this is
a bug
that needs to be fixed or whether the v.* lidar modules require points
with elevation stored in DBF (which is a problem for large datasets) -
if that is
the case it should be probably mentioned in the man page.

These modules would be really useful if we could get them to work,

Helena

On Nov 21, 2009, at 11:27 AM, GRASS GIS wrote:

#96: v.surf.bspline column option broken
-----------------------+----------------------------------------------------

Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: reopened
Priority: major | Milestone: 6.4.0
Component: Raster | Version: unspecified
Resolution: | Keywords: v.surf.bspline
Platform: All | Cpu: All
-----------------------+----------------------------------------------------

Comment (by cmbarton):

Forgot to give an example of the command I used--that did not work.

Michael

v.surf.bspline --overwrite input=elev_pts1000_sql@sqlite_test
raster=aaa_splintest@sqlite_test sie=400 sin=400 layer=1
column=elevation

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/96#comment:13&gt;
GRASS GIS <http://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev
        

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

#96: v.surf.bspline column option broken
-----------------------+----------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: reopened
  Priority: major | Milestone: 6.4.0
Component: Raster | Version: unspecified
Resolution: | Keywords: v.surf.bspline
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by cmbarton):

I just tried out the updates in GRASS 7 trunk. The column option still
doesn't work right. v.surf.bspline runs without complaining if you specify
a column, but the output is a flat map that does not use the column values
for interpolation.

Also, the layer selector no longer gives a -1 option in the GUI. So you
cannot use a 3D map either.

Michael

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/96#comment:14&gt;
GRASS GIS <http://grass.osgeo.org>