Re: [GRASS-dev] [GRASS GIS] #2434: v.surf.bspline: WARNING: Unable to rename null file / WARNING: Unable to write quant rules:

2015-12-07 Thread GRASS GIS
#2434: v.surf.bspline: WARNING: Unable to rename null file / WARNING: Unable to
write quant rules:
-+-
  Reporter:  baharmon|  Owner:  grass-dev@…
  Type:  defect  | Status:  closed
  Priority:  major   |  Milestone:  7.0.3
 Component:  Raster  |Version:  svn-releasebranch70
Resolution:  fixed   |   Keywords:  v.surf.bspline, raster, quant
 |  rules, null file, cell file
   CPU:  OSX/Intel   |   Platform:  MSWindows 8
-+-
Changes (by annakrat):

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


Comment:

 Thanks Helmut for testing and Glynn for pointing to the solution! I
 backported it.

--
Ticket URL: 
GRASS GIS 

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

Re: [GRASS-dev] [GRASS GIS] #2434: v.surf.bspline: WARNING: Unable to rename null file / WARNING: Unable to write quant rules:

2015-12-06 Thread GRASS GIS
#2434: v.surf.bspline: WARNING: Unable to rename null file / WARNING: Unable to
write quant rules:
-+-
  Reporter:  baharmon|  Owner:  grass-dev@…
  Type:  defect  | Status:  new
  Priority:  major   |  Milestone:  7.0.3
 Component:  Raster  |Version:  svn-releasebranch70
Resolution:  |   Keywords:  v.surf.bspline, raster, quant
 |  rules, null file, cell file
   CPU:  OSX/Intel   |   Platform:  MSWindows 8
-+-

Comment (by hellik):

 Replying to [comment:21 glynn]:
 > Replying to [ticket:2434 baharmon]:
 >
 > My main suspicion is that this is caused by the DBMI driver process
 being spawned after the output raster is opened (so it inherits a handle)
 and still being alive when Rast_close() is called (similar to issue
 #2775).
 >
 > If the driver inherits a handle to the temporary null and cell files,
 renaming them will fail as the files will be "open".
 >
 > If that's what's happening, either the close-on-exec flag needs to be
 set on those files, or DBMI drivers need to close all open files between
 the fork() and the exec(), or the DBMI driver needs to be terminated
 before closing the raster.
 >
 > Also, see the "Open/close db drivers order" thread (ca Oct 22) on the
 grass-dev list for some more discussion of this.

 {{{
 Author: annakrat
 Date: 2015-12-05 06:51:04 -0800 (Sat, 05 Dec 2015)
 New Revision: 67020

 Modified:
grass/trunk/vector/v.surf.bspline/main.c
 Log:
 v.surf.bspline: move opening raster after opening driver, closing is in
 reverse order, attempt to fix #2434
 }}}

 tested with

 {{{
 System Info
 GRASS version: 7.1.svn
 GRASS SVN revision: 67023M
 Build date: 2015-12-06
 Build platform: i686-pc-mingw32
 GDAL: 1.11.3
 PROJ.4: 4.9.2
 GEOS: 3.5.0
 SQLite: 3.7.17
 Python: 2.7.4
 wxPython: 2.8.12.1
 Platform: Windows-7-6.1.7601-SP1 (OSGeo4W)
 }}}


 {{{
 g.region -p region=rural_1m@PERMANENT res=2
 projection: 99 (Lambert Conformal Conic)
 zone:   0
 datum:  nad83
 ellipsoid:  a=6378137 es=0.006694380022900787
 north:  220750
 south:  22
 west:   638300
 east:   639000
 nsres:  2
 ewres:  2
 rows:   375
 cols:   350
 cells:  131250
 (Sun Dec 06 15:33:21 2015) Command finished (0 sec)

 (Sun Dec 06 15:33:38 2015)
 v.surf.bspline --verbose input=elev_lid792_bepts@PERMANENT
 raster_output=elev_lid792_rast ew_step=5 ns_step=5 method=bicubic
 lambda_i=0.1 memory=900
 Input is 3D: using z-coordinates for approximation
 Cells for raster map  will be interpolated
 Initializing output...
 Adjusted EW splines 121
 Adjusted NS splines 131
 Processing subregion 1 of 4...
 16805 points found in this subregion
 Processing subregion 2 of 4...
 13741 points found in this subregion
 Processing subregion 3 of 4...
 13512 points found in this subregion
 Processing subregion 4 of 4...
 11564 points found in this subregion
 Writing output...
 v.surf.bspline complete.
 (Sun Dec 06 15:33:54 2015) Command finished (15 sec)
 }}}

 so it seems to work now.

--
Ticket URL: 
GRASS GIS 

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

Re: [GRASS-dev] [GRASS GIS] #2434: v.surf.bspline: WARNING: Unable to rename null file / WARNING: Unable to write quant rules:

2015-12-04 Thread GRASS GIS
#2434: v.surf.bspline: WARNING: Unable to rename null file / WARNING: Unable to
write quant rules:
-+-
  Reporter:  baharmon|  Owner:  grass-dev@…
  Type:  defect  | Status:  new
  Priority:  major   |  Milestone:  7.0.3
 Component:  Raster  |Version:  svn-releasebranch70
Resolution:  |   Keywords:  v.surf.bspline, raster, quant
 |  rules, null file, cell file
   CPU:  OSX/Intel   |   Platform:  MSWindows 8
-+-

Comment (by glynn):

 Replying to [ticket:2434 baharmon]:

 My main suspicion is that this is caused by the DBMI driver process being
 spawned after the output raster is opened (so it inherits a handle) and
 still being alive when Rast_close() is called (similar to issue #2775).

 If the driver inherits a handle to the temporary null and cell files,
 renaming them will fail as the files will be "open".

 If that's what's happening, either the close-on-exec flag needs to be set
 on those files, or DBMI drivers need to close all open files between the
 fork() and the exec(), or the DBMI driver needs to be terminated before
 closing the raster.

 Also, see the "Open/close db drivers order" thread (ca Oct 22) on the
 grass-dev list for some more discussion of this.

--
Ticket URL: 
GRASS GIS 

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

Re: [GRASS-dev] [GRASS GIS] #2434: v.surf.bspline: WARNING: Unable to rename null file / WARNING: Unable to write quant rules:

2015-12-01 Thread GRASS GIS
#2434: v.surf.bspline: WARNING: Unable to rename null file / WARNING: Unable to
write quant rules:
-+-
  Reporter:  baharmon|  Owner:  grass-dev@…
  Type:  defect  | Status:  new
  Priority:  major   |  Milestone:  7.0.3
 Component:  Raster  |Version:  svn-releasebranch70
Resolution:  |   Keywords:  v.surf.bspline, raster, quant
 |  rules, null file, cell file
   CPU:  OSX/Intel   |   Platform:  MSWindows 8
-+-

Comment (by annakrat):

 Replying to [comment:18 neteler]:
 > See also #2712
 >
 > Perhaps a backport of r65775 is needed?

 It still doesn't work in trunk.

--
Ticket URL: 
GRASS GIS 

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

Re: [GRASS-dev] [GRASS GIS] #2434: v.surf.bspline: WARNING: Unable to rename null file / WARNING: Unable to write quant rules:

2015-12-01 Thread GRASS GIS
#2434: v.surf.bspline: WARNING: Unable to rename null file / WARNING: Unable to
write quant rules:
-+-
  Reporter:  baharmon|  Owner:  grass-dev@…
  Type:  defect  | Status:  new
  Priority:  major   |  Milestone:  7.0.3
 Component:  Raster  |Version:  svn-releasebranch70
Resolution:  |   Keywords:  v.surf.bspline, raster, quant
 |  rules, null file, cell file
   CPU:  OSX/Intel   |   Platform:  MSWindows 8
-+-

Comment (by hellik):

 Replying to [comment:19 annakrat]:
 > Replying to [comment:18 neteler]:
 > > See also #2712
 > >
 > > Perhaps a backport of r65775 is needed?
 >
 > It still doesn't work in trunk.

 tested in

 {{{
 GRASS version: 7.0.2
 GRASS SVN Revision: 66861
 Build Date: 2015-11-19
 Build Platform: i686-pc-mingw32
 Platform: Windows-7-6.1.7601-SP1 (OSGeo4W)
 }}}

 {{{
 Writing output...
 WARNING: Unable to rename null file
 'C:\grassdata/nc_spm_08_grass7/splinetest/.tmp/unknown/8924.1' to
 'C:\grassdata/nc_spm_08_grass7/splinetest/cell_misc/mytestrast/null':
 Permission denied
 WARNING: Unable to rename cell file
 'C:\grassdata/nc_spm_08_grass7/splinetest/.tmp/unknown/8924.0' to
 'C:\grassdata/nc_spm_08_grass7/splinetest/fcell/mytestrast': Permission
 denied
 WARNING: Unable to write quant rules: raster map  is integer
 v.surf.bspline complete.
 }}}

--
Ticket URL: 
GRASS GIS 

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

Re: [GRASS-dev] [GRASS GIS] #2434: v.surf.bspline: WARNING: Unable to rename null file / WARNING: Unable to write quant rules:

2015-12-01 Thread GRASS GIS
#2434: v.surf.bspline: WARNING: Unable to rename null file / WARNING: Unable to
write quant rules:
-+-
  Reporter:  baharmon|  Owner:  grass-dev@…
  Type:  defect  | Status:  new
  Priority:  major   |  Milestone:  7.0.3
 Component:  Raster  |Version:  svn-releasebranch70
Resolution:  |   Keywords:  v.surf.bspline, raster, quant
 |  rules, null file, cell file
   CPU:  OSX/Intel   |   Platform:  MSWindows 8
-+-

Comment (by neteler):

 See also #2712

 Perhaps a backport of r65775 is needed?

--
Ticket URL: 
GRASS GIS 

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

Re: [GRASS-dev] [GRASS GIS] #2434: v.surf.bspline: WARNING: Unable to rename null file / WARNING: Unable to write quant rules:

2015-07-26 Thread GRASS GIS
#2434: v.surf.bspline: WARNING: Unable to rename null file / WARNING: Unable to
write quant rules:
-+-
  Reporter:  baharmon|  Owner:  grass-dev@…
  Type:  defect  | Status:  new
  Priority:  major   |  Milestone:  7.0.1
 Component:  Raster  |Version:  svn-releasebranch70
Resolution:  |   Keywords:  v.surf.bspline, raster, quant
 |  rules, null file, cell file
   CPU:  OSX/Intel   |   Platform:  MSWindows 8
-+-
Changes (by hellik):

 * keywords:  v.surf.bspline = v.surf.bspline, raster, quant rules, null
 file, cell file


--
Ticket URL: https://trac.osgeo.org/grass/ticket/2434#comment:15
GRASS GIS http://grass.osgeo.org

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

Re: [GRASS-dev] [GRASS GIS] #2434: v.surf.bspline: WARNING: Unable to rename null file / WARNING: Unable to write quant rules:

2015-07-26 Thread GRASS GIS
#2434: v.surf.bspline: WARNING: Unable to rename null file / WARNING: Unable to
write quant rules:
+-
  Reporter:  baharmon   |  Owner:  grass-dev@…
  Type:  defect | Status:  new
  Priority:  major  |  Milestone:  7.0.1
 Component:  Raster |Version:  svn-releasebranch70
Resolution: |   Keywords:  v.surf.bspline
   CPU:  OSX/Intel  |   Platform:  MSWindows 8
+-

Comment (by hellik):

 Replying to [comment:11 annakrat]:
  How to reproduce (taken from #2597):
 
  {{{
  g.region rast=elevation res=100
  v.random out=points n=1000 -z zmax=100
  v.surf.bspline in=points raster_o=surf ns=100 ew=100
  }}}

 tested here with

 {{{
 System Info
 GRASS Version: 7.1.svn
 GRASS SVN revision: 65777
 Build date: 2015-07-25
 Build platform: i686-pc-mingw32
 GDAL: 1.11.2
 PROJ.4: 4.8.0
 GEOS: 3.4.2
 SQLite: 3.7.17
 Python: 2.7.4
 wxPython: 2.8.12.1
 Platform: Windows-Vista-6.0.6002-SP2 (OSGeo4W)
 }}}

 and the example from the manual

 {{{
 g.region -p region=rural_1m@PERMANENT res=2
 }}}

 {{{
 v.surf.bspline --verbose input=elev_lid792_bepts@PERMANENT
 raster_output=elev_lid792_rast ew_step=5 ns_step=5 method=bicubic
 lambda_i=0.1 memory=900
 Input is 3D: using z-coordinates for approximation
 Zellen für die Rasterkarte elev_lid792_rast werden interpoliert.
 Initialisiere die Ausgabe...
 Adjusted EW splines 121
 Adjusted NS splines 131
 Processing subregion 1 of 4...
 16805 points found in this subregion
 Processing subregion 2 of 4...
 13741 points found in this subregion
 Processing subregion 3 of 4...
 13512 points found in this subregion
 Processing subregion 4 of 4...
 11564 points found in this subregion
 Schreibe Ausgabe...
 WARNING: Unable to rename null file
 'J:\gisdata\nc_spm_08_grass7\user1\.tmp/unknown\5848.1' to
 'J:\gisdata\nc_spm_08_grass7\user1\cell_misc\elev_lid792_rast\null':
 Permission denied
 WARNING: Unable to rename cell file
 'J:\gisdata\nc_spm_08_grass7\user1\.tmp/unknown\5848.0' to
 'J:\gisdata\nc_spm_08_grass7\user1\fcell\elev_lid792_rast': Permission
 denied
 WARNING: Unable to write quant rules: raster map elev_lid792_rast is
 integer
 v.surf.bspline komplett.
 (Sun Jul 26 10:30:40 2015) Befehl ausgeführt (38 Sek)
 }}}

 bug report still valid.

--
Ticket URL: https://trac.osgeo.org/grass/ticket/2434#comment:14
GRASS GIS http://grass.osgeo.org

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

Re: [GRASS-dev] [GRASS GIS] #2434: v.surf.bspline: WARNING: Unable to rename null file / WARNING: Unable to write quant rules: (was: v.surf.bspline)

2015-07-26 Thread GRASS GIS
#2434: v.surf.bspline: WARNING: Unable to rename null file / WARNING: Unable to
write quant rules:
+-
  Reporter:  baharmon   |  Owner:  grass-dev@…
  Type:  defect | Status:  new
  Priority:  major  |  Milestone:  7.0.1
 Component:  Raster |Version:  svn-releasebranch70
Resolution: |   Keywords:  v.surf.bspline
   CPU:  OSX/Intel  |   Platform:  MSWindows 8
+-

--
Ticket URL: https://trac.osgeo.org/grass/ticket/2434#comment:13
GRASS GIS http://grass.osgeo.org

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