#843: v.digit broken on new WinGrass release ---------------------------+------------------------------------------------ Reporter: cnielsen | Owner: grass-dev@lists.osgeo.org Type: defect | Status: new Priority: critical | Milestone: 6.4.0 Component: Tcl | Version: svn-releasebranch64 Resolution: | Keywords: wingrass,v.digit Platform: MSWindows XP | Cpu: x86-64 ---------------------------+------------------------------------------------ Comment (by marisn):
Ah. Sorry - slipped under my radar. I clearly see error message, still resulting vector seems to be fine, as displaying, query, v.info and v.report are running fine without errors. Here's output when creating new map "bar" with single point without attribute information: {{{ D2/3: Variable = 0040E0C0 D1/3: Vect_get_thresh(): thresh = 0.000000 D2/3: topo body offset 142 D2/3: topo body offset 142 D1/3: Vector format: 0 (native) D1/3: Vect_set_thresh(): thresh = 0.000000 D1/3: Vect__read_head(): vector = b...@user1 D1/3: Vect_set_thresh(): thresh = 0.000000 D1/3: Level request = 0 D1/3: Vect_open_topo(): name = bar mapset= user1 D1/3: get coor info: C:\Users\Maris\Documents\GIS DataBase/spearfish60/user1/vector/bar/coor D1/3: Info->size = 14, Info->mtime = 1270717167 D2/3: Topo header: file version 5.0 , supported from GRASS version 5.0 D2/3: byte order 0 D2/3: header size 142 D2/3: with_z 0 D2/3: coor size 14 D1/3: Topo head: coor size = 14, coor mtime = 1270717167 D1/3: dig_load_plus() D3/3: dig_init_plus() D1/3: dig_spidx_init() D3/3: dig_cidx_init() D2/3: Topo header: file version 5.0 , supported from GRASS version 5.0 D2/3: byte order 0 D2/3: header size 142 D2/3: with_z 0 D2/3: coor size 14 D3/3: dig_alloc_isle(): D2/3: Vect_cidx_open(): name = bar mapset= user1 D3/3: dig_cidx_init() D3/3: dig_read_cidx() D3/3: dig_cidx_init() D3/3: Cidx header: file version 5.0 , supported from GRASS version 5.0 D2/3: Vect_cidx_save() D2/3: Open cidx: C:\Users\Maris\Documents\GIS DataBase/spearfish60/user1/vector/bar/cidx D3/3: dig_write_cidx_head() D3/3: cidx body offset 13 D3/3: dig_write_cidx_head() D3/3: cidx body offset 13 D1/3: close history file D1/3: V1_close_nat(): name = bar mapset= user1 D1/3: get coor info: C:\Users\Maris\Documents\GIS DataBase/spearfish60/user1/vector/bar/coor D2/3: ftell = 14 D1/3: Info->size = 14, Info->mtime = 1270717167 D1/3: dig__write_head() D1/3: write coor size (14) to head D2/3: coor body offset 14 D1/3: Vect_get_thresh(): thresh = 0.000000 D1/3: Vect_write_dblinks(): map = bar, mapset = user1 D1/3: dbln file: C:\Users\Maris\Documents\GIS DataBase/spearfish60/user1/vector/bar/dbln D1/3: Dblinks written D1/3: Vect_open_old(): name = bar mapset= user1 update = 1 D1/3: Vect_set_thresh(): thresh = 0.000000 D3/3: dig_init_plus() D1/3: dig_spidx_init() D3/3: dig_cidx_init() D1/3: open format file: 'user1/vector/bar/frmt' D1/3: dig__write_head() D1/3: write coor size (0) to head D2/3: coor body offset 14 D3/3: dig_init_plus() D1/3: dig_spidx_init() D3/3: dig_cidx_init() D3/3: Vect_build(): build = 4 Building topology for vector map <bar>... D2/3: dig_cidx_free() D3/3: dig_cidx_init() D3/3: Vect_build_nat() build = 4 D1/3: Vect_Rewind(): name = bar Registering primitives... D3/3: Vect_read_next_line() D3/3: V1_read_next_line_nat() D3/3: Vect__Read_line_nat: offset = 14 0 primitives registered 0 vertices registered Building areas... 0 areas built 0 isles built Attaching islands... Attaching centroids... D2/3: dig_cidx_sort() Number of nodes: 0 Number of primitives: 0 Number of points: 0 Number of lines: 0 Number of boundaries: 0 Number of centroids: 0 Number of areas: 0 Number of isles: 0 D1/3: Vect_close(): name = bar, mapset = user1, format = 0, level = 2 D1/3: get coor info: C:\Users\Maris\Documents\GIS DataBase/spearfish60/user1/vector/bar/coor D2/3: ftell = 14 D1/3: Info->size = 14, Info->mtime = 1270717167 D1/3: Vect_save_topo() D1/3: Open topo: C:\Users\Maris\Documents\GIS DataBase/spearfish60/user1/vector/bar/topo D2/3: G__read_Cell_head D2/3: G__read_Cell_head_array D3/3: region item: proj: 1 D3/3: region item: zone: 13 D3/3: region item: north: 4928010 D3/3: region item: south: 4913700 D3/3: region item: east: 609000 D3/3: region item: west: 589980 D3/3: region item: cols: 634 D3/3: region item: rows: 477 D3/3: region item: e-w resol: 30 D3/3: region item: n-s resol: 30 D3/3: region item: top: 1 D3/3: region item: bottom: 0 D3/3: region item: cols3: 634 D3/3: region item: rows3: 477 D3/3: region item: depths: 1 D3/3: region item: e-w resol3: 30 D3/3: region item: n-s resol3: 30 D3/3: region item: t-b resol: 1 D1/3: Region: N = 4928010.000000 S = 4913700.000000 E = 609000.000000 W = 589980.000000 Jauna tukða karte ir izveidota. D2/3: Vect_open_new(): name = bar D1/3: Vect_set_thresh(): thresh = 0.000000 D1/3: V1_open_new_nat(): name = bar D3/3: byte order 0 D3/3: header size 9 D1/3: V1_open_old_nat(): name = bar mapset = user1 D2/3: Coor header: file version 5.1 , supported from GRASS version 5.1 D2/3: byte order 0 D2/3: header size 14 D2/3: with_z 0 D2/3: coor size 14 D1/3: get coor info: C:\Users\Maris\Documents\GIS DataBase/spearfish60/user1/vector/bar/coor D1/3: Info->size = 14, Info->mtime = 1270717167 D1/3: coor size in head = 14, real coor file size= 14 D1/3: Vect_open_old(): vector opened on level 2 D1/3: Vect_read_dblinks(): map = bar, mapset = user1 D3/3: Searching for FID column in OGR DB D1/3: dbln file: C:\Users\Maris\Documents\GIS DataBase/spearfish60/user1/vector/bar/dbln D1/3: Dblinks read D1/3: Vect_Rewind(): name = bar D3/3: Vect_build_sidx_from_topo() D1/3: dig_spidx_init() D3/3: Spatial index was built D3/3: Vect_hist_command() D3/3: G_recreate_command() D1/3: Map opened D2/3: cat_init() D2/3: symb_line_init() D2/3: symb_node_init() D3/3: Starting Tk_Main. D3/3: v.digit Tcl_AppInit (...) D3/3: Starting toolbox.tcl D3/3: c_tool_centre() D2/3: var_init D2/3: Variable = 0040E0C0 D2/3: cat_max_get() field = 1 D2/3: display_bg() D2/3: display_map() D2/3: set color to symb 2: 255 255 0 D2/3: set color to symb 13: 0 153 0 D2/3: set color to symb 12: 255 0 0 D2/3: get_symb_code(): name = background D2/3: -> code = 1 D2/3: i_set_color(): background : 255 255 255 D2/3: -> color = #ffffff D2/3: i_set_on(): background : 1 D2/3: get_symb_code(): name = highlight D2/3: -> code = 2 D2/3: i_set_color(): highlight : 255 255 0 D2/3: -> color = #ffff00 D2/3: i_set_on(): highlight : 1 D2/3: get_symb_code(): name = point D2/3: -> code = 3 D2/3: i_set_color(): point : 0 0 0 D2/3: -> color = #000000 D2/3: i_set_on(): point : 1 D2/3: get_symb_code(): name = line D2/3: -> code = 4 D2/3: i_set_color(): line : 0 0 0 D2/3: -> color = #000000 D2/3: i_set_on(): line : 1 D2/3: get_symb_code(): name = boundary_0 D2/3: -> code = 5 D2/3: i_set_color(): boundary_0 : 153 153 153 D2/3: -> color = #999999 D2/3: i_set_on(): boundary_0 : 1 D2/3: get_symb_code(): name = boundary_1 D2/3: -> code = 6 D2/3: i_set_color(): boundary_1 : 255 125 0 D2/3: -> color = #ff7d00 D2/3: i_set_on(): boundary_1 : 1 D2/3: get_symb_code(): name = boundary_2 D2/3: -> code = 7 D2/3: i_set_color(): boundary_2 : 0 255 0 D2/3: -> color = #00ff00 D2/3: i_set_on(): boundary_2 : 1 D2/3: get_symb_code(): name = centroid_in D2/3: -> code = 8 D2/3: i_set_color(): centroid_in : 0 0 153 D2/3: -> color = #000099 D2/3: i_set_on(): centroid_in : 1 D2/3: get_symb_code(): name = centroid_out D2/3: -> code = 9 D2/3: i_set_color(): centroid_out : 153 153 0 D2/3: -> color = #999900 D2/3: i_set_on(): centroid_out : 1 D2/3: get_symb_code(): name = centroid_dupl D2/3: -> code = 10 D2/3: i_set_color(): centroid_dupl : 255 0 255 D2/3: -> color = #ff00ff D2/3: i_set_on(): centroid_dupl : 1 D2/3: get_symb_code(): name = node_1 D2/3: -> code = 12 D2/3: i_set_color(): node_1 : 255 0 0 D2/3: -> color = #ff0000 D2/3: i_set_on(): node_1 : 1 D2/3: get_symb_code(): name = node_2 D2/3: -> code = 13 D2/3: i_set_color(): node_2 : 0 153 0 D2/3: Cat modes: $GWidget(cat_mode) configure -values [list "No category" "Manual entry" "Next not used"] D2/3: -> color = #009900 D2/3: i_set_on(): node_2 : 1 D3/3: c_update_tool() D3/3: c_next_tool() D2/3: Tool_next = 2 D2/3: new_line(): type = 1 D2/3: Cat modes: $GWidget(cat_mode) configure -values [list "No category" "Manual entry" "Next not used"] D2/3: Cat mode: $GWidget(cat_mode) setvalue @2 D3/3: new_line(): End D2/3: new_line(): type = 1 D2/3: Cat mode: $GWidget(cat_mode) setvalue @2 D2/3: new_line(): type = 1 D2/3: Cat modes: $GWidget(cat_mode) configure -values [list "No category" "Manual entry" "Next not used"] D2/3: Cat mode: $GWidget(cat_mode) setvalue @2 D3/3: c_update_tool() D3/3: button = 1 x = 216 = 596366.280992 y = 184 = 4922569.834711 D2/3: snap(): x = 596366.280992, y = 4922569.834711 D3/3: Vect_find_node() for 596366.280992 4922569.834711 0.000000 maxdist = 295.661157 D3/3: Vect_select_nodes_by_box() D3/3: Box(N,S,E,W,T,B): 4.922865e+006, 4.922274e+006, 5.966619e+005, 5.960706e+005, 1.#INF00e+000, -1.#INF00e+000 D3/3: dig_select_nodes() D3/3: 0 nodes selected D3/3: 0 nodes in box D2/3: node = 0 x = 596366.280992, y = 4922569.834711 D2/3: write field = 1 cat = 1 D2/3: cat_max_get() field = 1 D2/3: cat_max_set() field = 1 cat = 1 D3/3: Vect_write_line(): name = bar, format = 0, level = 2 D3/3: V2_write_line_nat() D3/3: Register node: type = 1, 596366.280992,4922569.834711 D3/3: dig_find_node() D3/3: node = 0 D3/3: dig_add_node(): n_nodes = 0, alloc_nodes = 0 D3/3: dig_spidx_add_node(): node = 1, x,y,z = 596366.280992, 4922569.834711, 0.000000 D3/3: new node = 1, n_nodes = 1, alloc_nodes = 1000 D3/3: Add new node: 1 D3/3: dig_node_add_line(): node = 1 line = 1 D3/3: dig_node_alloc_line(): add = 1 D3/3: angle = -9.000000 D3/3: dig_node_add_line(): line 1 added position 0 n_lines: 1 angle -9.000000 D3/3: dig_node_add_updated(): node = 1 D3/3: dig_spidx_add_line(): line = 1 D3/3: dig_line_add_updated(): line = 1 D3/3: line added to topo with id = 1 D3/3: dig_cidx_add_cat_sorted(): field = 1 cat = 1 line = 1 type = 1 D3/3: Added new category to index D3/3: updated lines : 1 , updated nodes : 1 D2/3: Updated line: 1 D2/3: Updated node: 1 D2/3: cat_max_get() field = 1 D2/3: set color to symb 1: 255 255 255 D2/3: display_node(): node = 1 color = 1 D2/3: set color to symb 1: 255 255 255 D2/3: display_icon() D2/3: symb_updated_lines_set_from_map(); D2/3: line_symb_refresh() D2/3: line_symb_from_map(): line = 1 D3/3: Vect_read_line() D3/3: V2_read_line_nat(): line = 1 D3/3: Vect__Read_line_nat: offset = 14 D3/3: type = 1, do_cats = 1 dead = 0 D3/3: n_cats = 1 D3/3: n_points = 1 D3/3: off = 43 D2/3: node_update(); D2/3: line_symb_refresh() D2/3: node = 1 nl = 1 D2/3: i = 0 line = 1 D3/3: Vect_read_line() D3/3: V2_read_line_nat(): line = 1 D3/3: Vect__Read_line_nat: offset = 14 D3/3: type = 1, do_cats = 1 dead = 0 D3/3: n_cats = 1 D3/3: n_points = 1 D3/3: off = 43 D2/3: node = 1 nlines = 0 D2/3: display_line(): line = 1 color = 0 D3/3: Vect_read_line() D3/3: V2_read_line_nat(): line = 1 D3/3: Vect__Read_line_nat: offset = 14 D3/3: type = 1, do_cats = 1 dead = 0 D3/3: n_cats = 1 D3/3: n_points = 1 D3/3: off = 43 D2/3: set color to symb 3: 0 0 0 D2/3: display_icon() D3/3: new_line(): End D2/3: new_line(): type = 1 D2/3: Cat modes: $GWidget(cat_mode) configure -values [list "No category" "Manual entry" "Next not used"] D2/3: Cat mode: $GWidget(cat_mode) setvalue @2 D3/3: c_update_tool() D3/3: button = 3 x = 216 = 596366.280992 y = 184 = 4922569.834711 D3/3: new_line(): End D3/3: c_update_tool() D3/3: c_next_tool() D2/3: Tool_next = 1 D2/3: Quit D1/3: end() D3/3: Vect_build(): build = 0 D3/3: Vect_build_nat() build = 0 D2/3: dig_free_plus_areas() D2/3: dig_free_plus_isles() D2/3: dig_free_plus_areas() D2/3: dig_free_plus_isles() D2/3: dig_free_plus_nodes() D2/3: dig_free_plus_lines() D3/3: Vect_build(): build = 4 Building topology for vector map <bar>... D2/3: dig_cidx_free() D3/3: dig_cidx_init() D3/3: Vect_build_nat() build = 4 D1/3: Vect_Rewind(): name = bar Registering primitives... D3/3: Vect_read_next_line() D3/3: V1_read_next_line_nat() D3/3: Vect__Read_line_nat: offset = 14 D3/3: type = 1, do_cats = 1 dead = 0 D3/3: n_cats = 1 D3/3: n_points = 1 D3/3: off = 43 D3/3: Register line: offset = 14 D3/3: Register node: type = 1, 596366.280992,4922569.834711 D3/3: dig_find_node() D3/3: node = 0 D3/3: dig_add_node(): n_nodes = 0, alloc_nodes = 0 D3/3: dig_spidx_add_node(): node = 1, x,y,z = 596366.280992, 4922569.834711, 0.000000 D3/3: new node = 1, n_nodes = 1, alloc_nodes = 1000 D3/3: Add new node: 1 D3/3: dig_node_add_line(): node = 1 line = 1 D3/3: dig_node_alloc_line(): add = 1 D3/3: angle = -9.000000 D3/3: dig_node_add_line(): line 1 added position 0 n_lines: 1 angle -9.000000 D3/3: dig_node_add_updated(): node = 1 D3/3: dig_spidx_add_line(): line = 1 D3/3: dig_line_add_updated(): line = 1 D3/3: dig_cidx_add_cat(): field = 1 cat = 1 line = 1 type = 1 D3/3: Vect_read_next_line() D3/3: V1_read_next_line_nat() D3/3: Vect__Read_line_nat: offset = 43 1 primitives registered 1 vertices registered Building areas... 0 areas built 0 isles built Attaching islands... Attaching centroids... D2/3: dig_cidx_sort() Number of nodes: 1 Number of primitives: 1 Number of points: 1 Number of lines: 0 Number of boundaries: 0 Number of centroids: 0 Number of areas: 0 Number of isles: 0 D1/3: Vect_close(): name = bar, mapset = user1, format = 0, level = 2 D1/3: get coor info: C:\Users\Maris\Documents\GIS DataBase/spearfish60/user1/vector/bar/coor D2/3: ftell = 43 D1/3: Info->size = 43, Info->mtime = 1270717167 D1/3: Vect_save_topo() D1/3: Open topo: C:\Users\Maris\Documents\GIS DataBase/spearfish60/user1/vector/bar/topo D2/3: topo body offset 142 D3/3: dig_Wr_P_node() D2/3: topo body offset 142 D2/3: Vect_cidx_save() D2/3: Open cidx: C:\Users\Maris\Documents\GIS DataBase/spearfish60/user1/vector/bar/cidx D3/3: dig_write_cidx_head() D3/3: cidx 0 head offset: 13 D3/3: cidx 0 offset: 0 D3/3: cidx body offset 41 D3/3: dig_write_cidx_head() D1/3: write coor size (43) to head D2/3: coor body offset 14 D1/3: Vect_get_thresh(): thresh = 0.000000 D1/3: Vect_write_dblinks(): map = bar, mapset = user1 D1/3: dbln file: C:\Users\Maris\Documents\GIS DataBase/spearfish60/user1/vector/bar/dbln D1/3: Dblinks written Region restored to original extent. D3/3: c_next_tool() D2/3: Tool_next = 1 D2/3: Quit D1/3: end() D3/3: Vect_build(): build = 0 D3/3: Vect_build_nat() build = 0 D2/3: dig_free_plus_areas() D2/3: dig_free_plus_isles() D2/3: dig_free_plus_areas() D2/3: dig_free_plus_isles() D2/3: dig_free_plus_nodes() D2/3: dig_free_plus_lines() D3/3: Vect_build(): build = 4 Building topology for vector map <(null)>... D2/3: dig_cidx_free() D3/3: dig_cidx_init() D3/3: Vect_build_nat() build = 4 Registering primitives... D3/3: Vect_read_next_line() Unable to read vector map D1/3: Vect_close(): name = (null), mapset = (null), format = 0, level = 1 D3/3: cidx 0 head offset: 13 D3/3: cidx 0 offset: 41 D3/3: cidx body offset 41 D1/3: close history file D1/3: V1_close_nat(): name = bar mapset= user1 D1/3: get coor info: C:\Users\Maris\Documents\GIS DataBase/spearfish60/user1/vector/bar/coor D2/3: ftell = 43 D1/3: Info->size = 43, Info->mtime = 1270717167 D1/3: dig__write_head() }}} -- Ticket URL: <https://trac.osgeo.org/grass/ticket/843#comment:31> GRASS GIS <http://grass.osgeo.org>
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev