Opened 14 years ago
Closed 14 years ago
#1222 closed defect (fixed)
v.rast.stats returns error: global name 'vector' is not defined
Reported by: | akbgf | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.0.0 |
Component: | Vector | Version: | svn-trunk |
Keywords: | v.rast.stats | Cc: | andres@… |
CPU: | x86-32 | Platform: | Linux |
Description
Command
v.rast.stats -e input=ma3935@CHRIS raster=5703_14r@CHRIS colprefix=ma_14
returns error: global name 'vector' is not defined.
GRASS 7.0 compiled from weekly source grass-7.0.svn_src_sn apshot_2010_11_20,
OpenSUSE-11.1 Linux 2.6.27.54-0.1-pae; Intel Pentium 4 CPU 3.00GHz
./configure --enable-shared --with-postgres --with-gdal=/usr/local/bin/gdal-config --with-postgres-includes=/usr/include/pgsql/ --with-postgres-libs=/usr/lib/postgresql --without-freetype
Raster map: Type of Map: raster; Data Type: CELL; Rows: 744; Columns: 744; Number of Categories: 10599
Vector map: Type of map: vector (level: 1); Number of points: 0; Number of centroids: 1; Number of lines: 0; Number of boundaries: 7; Number of areas: 0; Number of islands: 0; Map is 3D: No; Number of dblinks: 1
The vector area is inside the raster map.
The full command output is in the attached file.
Thank you! Andres Kuusk; Tartu Observatory, Estonia; andres@…
Attachments (1)
Change History (4)
by , 14 years ago
Attachment: | v.rast.stats_err.txt added |
---|
comment:2 by , 14 years ago
I have made some more changes:
- input vector key changed to vector, as in 6.x
- the temporary region is now aligned to the raster instead of just setting the region resolution to the raster, avoiding grid shifts and slightly inaccurate results
- -nan is now converted to NULL and not left as -nan (-nan can sometimes occur)
- the table key column is no longer hardcoded to cat, instead the actual table key column is used
- speed up by using the zonal functionality of r.univar (number of categories times faster)
Markus M
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Version: | unspecified → svn-trunk |
Output of v.rast.stats