Re: [GRASS-dev] [GRASS GIS] #2523: wxGUI digitiser - GRASS 7.0.0beta4 / persists in 7.1.svn (r64690M)

2015-04-13 Thread GRASS GIS
#2523: wxGUI digitiser - GRASS 7.0.0beta4 / persists in 7.1.svn (r64690M)
-+--
 Reporter:  jeir |   Owner:  grass-dev@…  
 Type:  defect   |  Status:  new  
 Priority:  normal   |   Milestone:  7.1.0
Component:  wxGUI| Version:  svn-trunk
 Keywords:  digitizer, .gxw  |Platform:  MacOSX   
  Cpu:  OSX/Intel|  
-+--

Comment(by jeir):

 I add the following as it relates to the vector digitizer:

 Problem: Unstable vector digitizer Undo

 Location: nc_spm_08_grass7
 Mapset: user1

 User - Copy  roadsmajor from PERMANENT as test_roadsmajor

 User - Activated vector digitizer, added a few vector points - pressed
 Undo button, wxgui Map Display window disappears and this message appears:

 Python quit unexpectedly while using the libgrass_vector.7.1.svn.dylib
 plug-in


 Terminal session window after Map Display diappears:

 Welcome to GRASS GIS 7.1.svn (r64690M)
 GRASS GIS homepage:  http://grass.osgeo.org
 This version running through:Bash Shell (/bin/bash)
 Help is available with the command:  g.manual -i
 See the licence terms with:  g.version -c
 If required, restart the GUI with:   g.gui wxpython
 When ready to quit enter:exit

 Launching wxpython GUI in the background, please wait...
 GRASS 7.1.svn (nc_spm_08_grass7):~  WARNING: No metadata file available

 GRASS_INFO_WARNING(3065,1): Coor file of vector map
 test_roadsmajor@user1 is larger than it should be (2403 bytes excess)
 GRASS_INFO_END(3065,1)


 User - Responded: 1. Exit GRASS 2. Restart GRASS, same location and mapset

 User - Activated vector digitizer - this message appears:

 Digitizer error

 Topology for vector map test_roadsmajor is not
 available. Topology is required by digitizer.
 Do you want to rebuild topology (takes some time) and open the vector map
 for editing?


 User action: Respond Yes

 Digitizer is activated, - added a few vector points, then press Undo
 button on Digitizer palette, Python Map Display window quits as before.

 Terminal session window after Map Display diappears now looks like this:

 Welcome to GRASS GIS 7.1.svn (r64690M)
 GRASS GIS homepage:  http://grass.osgeo.org
 This version running through:Bash Shell (/bin/bash)
 Help is available with the command:  g.manual -i
 See the licence terms with:  g.version -c
 If required, restart the GUI with:   g.gui wxpython
 When ready to quit enter:exit

 Launching wxpython GUI in the background, please wait...
 GRASS 7.1.svn (nc_spm_08_grass7):~  WARNING: No metadata file available

 GRASS_INFO_WARNING(3256,1): Coor file of vector map
 test_roadsmajor@user1 is larger than it should be (9508 bytes excess)
 GRASS_INFO_END(3256,1)


 ---
 With my own data, I have experienced total disappearance from mapset - of
 the active map during digitization session

 Other problems I have encountered, see: Ticket #2523 above

-- 
Ticket URL: https://trac.osgeo.org/grass/ticket/2523#comment:9
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] Error messages when installing addons

2015-04-13 Thread Paulo van Breugel
I updated a number of extensions, all which installed successfully.
However, for four (g.cloud, r.mcda.roughset, r.futures, v.area.stats) I got
some error messages. Not sure they are relevant, but though I might as well
report them. I am running GRASS dev (rev 65027) on Linux (Ubuntu 14.04).

*g.cloud*
g.extension extension=g.cloud
operation=add
WARNING: Extension g.cloud already installed. Re-installing...
Fetching g.cloud from GRASS-Addons SVN repository (be patient)...
Compiling...
Makefile:16: warning: overriding commands for target
`/tmp/tmpIdTTFc/g.cloud/etc/g.cloud'
/usr/local/grass7/grass-7.1.svn/include/Make/ScriptRules.mak
e:19: warning: ignoring old commands for target
`/tmp/tmpIdTTFc/g.cloud/etc/g.cloud'
Installing...
Makefile:16: warning: overriding commands for target
`/tmp/tmpIdTTFc/g.cloud/etc/g.cloud'
/usr/local/grass7/grass-7.1.svn/include/Make/ScriptRules.mak
e:19: warning: ignoring old commands for target
`/tmp/tmpIdTTFc/g.cloud/etc/g.cloud'
Updating addons metadata file...
Installation of g.cloud successfully finished

*r.mcda.roughset*
g.extension extension=r.mcda.roughset
operation=add
WARNING: Extension r.mcda.roughset already installed. Re-installing...
Fetching r.mcda.roughset from GRASS-Addons SVN repository (be patient)...
Compiling...
WARNING: BUG in option name, 'outputMap' is not valid
WARNING: BUG in option name, 'outputTxt' is not valid
Installing...
Updating addons metadata file...
Installation of r.mcda.roughset successfully finished

*r.futures*
g.extension extension=r.futures
operation=add
WARNING: Extension r.futures already installed. Re-installing...
Fetching r.futures from GRASS-Addons SVN repository (be patient)...
Compiling...
main.cpp: In function ‘int main(int, char**)’:
main.cpp:2512:67: warning: suggest parentheses around
assignment used as truth value [-Wparentheses]
 if (pPtr =
strchr(inBuff, ',')) {
   ^
main.cpp: In function ‘void
findAndSortProbsAll(t_Landscape*, t_Params*, int)’:
main.cpp:2663:55: warning: comparison between signed and
unsigned integer expressions [-Wsign-compare]
 pLandscape-asUndevs[id].size())
   ^
main.cpp: In function ‘int readData(t_Landscape*,
t_Params*)’:
main.cpp:639:71: warning: ‘iVal’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
pLandscape-asCells[i].bUndeveloped = iVal;
   ^
main.cpp:689:52: warning: ‘y’ may be used uninitialized
in this function [-Wmaybe-uninitialized]
 G_message(_(x=%d y=%d), x, y);
^
main.cpp: In function ‘int main(int, char**)’:
main.cpp:2426:21: warning: ‘seed_value’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
 srand(seed_value);
 ^
Installing...
Updating addons metadata file...
Installation of r.futures successfully finished

*v.area.stats*
g.extension extension=v.area.stats
operation=add
WARNING: Extension v.area.stats already installed. Re-installing...
Fetching v.area.stats from GRASS-Addons SVN repository (be patient)...
Compiling...
export.c: In function ‘export2csv’:
export.c:97:4: warning: format not a string literal and no
format arguments [-Wformat-security]
printf(buf);
^
Installing...
Updating addons metadata file...
Installation of v.area.stats successfully finished
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] distributed computing: block access in raster lib

2015-04-13 Thread Yann Chemin
Hi,

I am looking into distributed processing of raster data in GRASS,

I found this in i.smap/read_block.c

Would that be a good idea to include something similar into the raster lib API?

#include stdlib.h

#include grass/raster.h
#include grass/imagery.h
#include grass/glocale.h

#include bouman.h
#include region.h

int read_block(DCELL *** img,   /* img[band][row[col] */
   struct Region *region, struct files *files)
{
int band, row, col;

for (band = 0; band  files-nbands; band++) {
for (row = region-ymin; row  region-ymax; row++) {
Rast_get_d_row(files-band_fd[band], files-cellbuf, row);
for (col = region-xmin; col  region-xmax; col++)
img[band][row][col] = files-cellbuf[col];
}
}

return 0;
}

Cheers,
Yann___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev