[QGIS-trac] [Quantum GIS] #3650: shapefiles fails to be imported into GRASS mapset with qgis 1.6/trunk under Windows (but import is fine under qgis 1.5)

Quantum GIS qgis at qgis.org
Sun Mar 20 16:52:59 EDT 2011


#3650: shapefiles fails to be imported into GRASS mapset with qgis 1.6/trunk under
Windows  (but import is fine under qgis 1.5)
------------------------------------------------+---------------------------
   Reporter:  lutra                             |              Owner:  rblazek      
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.7.0
  Component:  GRASS                             |            Version:  1.6.0        
   Keywords:                                    |   Platform_version:               
   Platform:  Windows                           |           Must_fix:  Yes          
Status_info:  0                                 |  
------------------------------------------------+---------------------------
 I found a few shapefiles (I'll attach one as exemple) that are not
 imported into a GRASS mapset under Windows using qgis 1.6/trunk. Using
 qgis 1.5 the process runs smoothly.

 The output window message under QGIS 1.5 says


 {{{
 v.in.ogr -o dsn=C:/Users/gio/Desktop/GRASS/regioes/regioes.shp output=reg

 Datum not recognised by GRASS and no parameters found

 Over-riding projection check

 Layer: regioes

 Importing map 109 features...

 -----------------------------------------------------

 Building topology for vector map ...

 Registering primitives...

 111 primitives registered

 19480 vertices registered

 Building areas...


 109 areas built

 109 isles built

 Attaching islands...


 Attaching centroids...


 Number of nodes: 110

 Number of primitives: 111

 Number of points: 0

 Number of lines: 0

 Number of boundaries: 111

 Number of centroids: 0

 Number of areas: 109

 Number of isles: 109

 Number of incorrect boundaries: 2

 Number of areas without centroid: 109

 -----------------------------------------------------

 Cleaning polygons, result is not guaranteed!


 Building topology for vector map ...

 Number of nodes: 110

 Number of primitives: 111

 Number of points: 0

 Number of lines: 0

 Number of boundaries: 111

 Number of centroids: 0

 Number of areas: -

 Number of isles: -

 -----------------------------------------------------

 Break polygons:

 -----------------------------------------------------

 Remove duplicates:

 -----------------------------------------------------

 Break boundaries:

 -----------------------------------------------------

 Remove duplicates:

 -----------------------------------------------------

 Clean boundaries at nodes:

 -----------------------------------------------------

 Change dangles to lines:

 -----------------------------------------------------

 Remove bridges:

 -----------------------------------------------------

 Building topology for vector map ...

 Building areas...


 110 areas built

 91 isles built

 Attaching islands...


 Number of nodes: 134

 Number of primitives: 211

 Number of points: 0

 Number of lines: 0

 Number of boundaries: 211

 Number of centroids: 0

 Number of areas: 110

 Number of isles: 91

 Number of areas without centroid: 110

 Layer: regioes

 -----------------------------------------------------

 -----------------------------------------------------

 Building topology for vector map ...

 Registering primitives...

 262 primitives registered

 14879 vertices registered

 Building areas...


 110 areas built

 91 isles built

 Attaching islands...


 Attaching centroids...


 Number of nodes: 243

 Number of primitives: 262

 Number of points: 0

 Number of lines: 0

 Number of boundaries: 153

 Number of centroids: 109

 Number of areas: 110

 Number of isles: 91

 Number of areas without centroid: 1

 -----------------------------------------------------

 109 input polygons

 Total area: 3.023812e+011 (110 areas)

 Overlapping area: 0.000000e+000 (0 areas)

 Area without category: 6.103451e+005 (1 areas)
 Successfully finished
 }}}


 The output window message under QGIS 1.6 (standalone) says


 {{{
 v.in.ogr -o dsn=C:/Users/gio/Desktop/GRASS/regioes/regioes.shp output=reg2

 Datum not recognised by GRASS and no parameters found

 Over-riding projection check

 Layer: regioes

 Importing map 109 features...

 -----------------------------------------------------

 Building topology for vector map ...

 Registering primitives...

 111 primitives registered

 19480 vertices registered

 Building areas...


 109 areas built

 109 isles built

 Attaching islands...


 Attaching centroids...


 Number of nodes: 110

 Number of primitives: 111

 Number of points: 0

 Number of lines: 0

 Number of boundaries: 111

 Number of centroids: 0

 Number of areas: 109

 Number of isles: 109

 Number of incorrect boundaries: 2

 Number of areas without centroid: 109

 -----------------------------------------------------

 Cleaning polygons, result is not guaranteed!

 Size of 'coor' file differs from value saved in topology file

 Please rebuild topology for vector map

 Unable to open topology file for vector map
 Finished with error
 }}}


 The output window message under QGIS trunk (osgeo4w) says



 {{{
 v.in.ogr -o dsn=C:/Users/gio/Desktop/GRASS/regioes/regioes.shp output=reg
 snap=-1 min_area=0.0001

 Datum not recognised by GRASS and no parameters found

 Over-riding projection check

 Layer: regioes

 Default driver / database set to:

 driver: dbf

 database: $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/

 Importing map 109 features...

 -----------------------------------------------------

 Building topology for vector map ...

 Registering primitives...

 111 primitives registered

 19480 vertices registered

 Building areas...


 109 areas built

 109 isles built

 Attaching islands...


 Attaching centroids...


 Number of nodes: 110

 Number of primitives: 111

 Number of points: 0

 Number of lines: 0

 Number of boundaries: 111

 Number of centroids: 0

 Number of areas: 109

 Number of isles: 109

 Number of incorrect boundaries: 2

 Number of areas without centroid: 109

 -----------------------------------------------------

 Cleaning polygons, result is not guaranteed!

 Size of 'coor' file differs from value saved in topology file

 Please rebuild topology for vector map

 Unable to open topology file for vector map
 Finished with error

 }}}

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/3650>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list