Opened 12 years ago
Closed 6 years ago
#1813 closed defect (worksforme)
RST lib quad_divide_data calls exit with 0
Reported by: | marisn | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.0.7 |
Component: | Raster | Version: | svn-trunk |
Keywords: | Cc: | ||
CPU: | Unspecified | Platform: | Unspecified |
Description
RST lib in quad_divide_data() calls exit with argument 0.
First - how a failure can be 0 (success)?
Second - #1598 This looks like one of those places, where G_fatal_error() is more appropriate.
Third - this exit() prevents interpolation when data points are arranged in a stripe (filling a hole between two map sheets). Is it really necessary to EXIT here instead of just printing a warning?
http://trac.osgeo.org/grass/browser/grass/trunk/lib/rst/data/dataquad.c#L214
Attachments (1)
Change History (6)
by , 12 years ago
Attachment: | rst_fail_data.zip added |
---|
comment:1 by , 12 years ago
Attached file contains a 3D shapefile with data stripe and hole in the middle. The goal is to interpolate data from surrounding points to fill the hole.
Unzip file, create a new location based on provided file. Remove imported vector file and import it again this time with -z option (see bug #1822).
Set region and run interpolation:
g.region -a res=20 v.surf.rst -z input=interpolate_this layer=1 elev=filled_hole
comment:2 by , 9 years ago
Milestone: | 7.0.0 → 7.0.5 |
---|
comment:3 by , 8 years ago
Milestone: | 7.0.5 → 7.0.6 |
---|
comment:4 by , 7 years ago
Milestone: | 7.0.6 → 7.0.7 |
---|
Data to display interpolation failure