[GRASS-user] problem with g.in.ogr

Camille Bezzina camille.bezzina at geophom.fr
Thu Apr 12 08:03:50 PDT 2018


Hi Markus,

In the file attached you can find the full output of v.import with verbose.

I launch this one with v.in.ogr and this is the answer.

Thanks.



Le 12/04/2018 à 16:39, Markus Metz a écrit :
>
>
> On Thu, Apr 12, 2018 at 3:04 PM, Camille Bezzina 
> <camille.bezzina at geophom.fr <mailto:camille.bezzina at geophom.fr>> wrote:
> >
> > Hello all,
> >
> > I have a problem with v.in.ogr.
> > I would like to import a shape file (with 57851 polygons) with v.in.ogr.
> >
> > v.import --verbose 
> input=/media/hdd1/phom/eolien/AIP_UNESCO_RONCHAMP/data/qgis/MNE/bati_D90_decoupe.shp 
> layer=bati_D90_decoupe output=bati_D90_decoupe -o
> >
> > Visibly the order is going well, my attribute table contains 57851 
> attributes but when I check my vector with display, some polygons are 
> missing.
>
> Can you post the full output of v.import with --verbose?
>
> Considering that you override the projection check with -o, you can 
> also use v.in.ogr directly and then post the full output of v.in.ogr 
> -o --verbose.
>
> Markus M
>
> >
> > Thanks for your help.
> >
> > --
> > Camille Bezzina
> > Geophom
> > _______________________________________________
> > grass-user mailing list
> > grass-user at lists.osgeo.org <mailto:grass-user at lists.osgeo.org>
> > https://lists.osgeo.org/mailman/listinfo/grass-user
>

-- 
Camille BEZZINA
Chargé d'études géomatiques et photomontages
Geophom
57 rue du Chemin Neuf 44521 OUDON
Standard: +33(0)2 85 52 02 59
Ligne directe: +33(0)9 72 56 81 71
www.geophom.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180412/771793eb/attachment.html>
-------------- next part --------------
(Thu Apr 12 12:45:14 2018)                                                      
v.import --verbose input=/media/hdd1/phom/eolien/AIP_UNESCO_RONCHAMP/data/qgis/MNE/bati_D90_decoupe.shp layer=bati_D90_decoupe output=bati_D90_decoupe -o
Creating temporary location for </media/hdd1/phom/eolien/AIP_UNESCO_RONCHAMP/data/qgis/MNE/bati_D90_decoupe.shp>...
WARNING: Datum <Reseau_Geodesique_Francais_1993> non reconnu par GRASS et aucuns paramètres trouvés
WARNING: Datum <Reseau_Geodesique_Francais_1993> non reconnu par GRASS et aucuns paramètres trouvés
Over-riding projection check
Check if OGR layer <bati_D90_decoupe> contains polygons...
Boundary splitting distance in map units: 201.589
Utilisation du format natif
Utilisation du format natif
Using temporary vector <tmp_14864>
Importing 57851 features (OGR layer <bati_D90_decoupe>)...
-----------------------------------------------------
Enregistrement des primitives ...
58614 primitives registered
471329 vertices registered
La topologie a bien été construite
Nombre de nœuds: 55752
Nombre de primitives: 58614
Nombre de points: 0
Nombre de lignes :0
Nombre de contours: 58614
Nombre de centroïdes: 0
Nombre de surfaces: -
Nombre d'îles: -
-----------------------------------------------------
Cleaning polygons
-----------------------------------------------------
Snapping boundaries (threshold = 1.000e-13)...
Reading features...
Accrochage des sommets passe 1 : sélection des points
Accrochage des sommets passe 2 : assignation des ancrages de sommets
Accrochage des sommets passe 3 : accrochage sur les points assignés
Sommets accrochés : 0
Nouveau sommet : 0
-----------------------------------------------------
Breaking polygons...
Breaking polygons (pass 1: select break points)...
Breaking polygons (pass 2: break at selected points)...
Breaks: 45047
-----------------------------------------------------
Removing duplicates...
Removed duplicates: 2208
-----------------------------------------------------
Breaking boundaries...
Intersections : 10
-----------------------------------------------------
Removing duplicates...
Removed duplicates: 4
-----------------------------------------------------
Cleaning boundaries at nodes...
Modifications : 31992
-----------------------------------------------------
Breaking boundaries...
Intersections : 18
-----------------------------------------------------
Removing duplicates...
Removed duplicates: 1064
-----------------------------------------------------
Cleaning boundaries at nodes...
Modifications : 1104
-----------------------------------------------------
Breaking boundaries...
Intersections : 17
-----------------------------------------------------
Removing duplicates...
Removed duplicates: 17
-----------------------------------------------------
Cleaning boundaries at nodes...
Modifications : 0
-----------------------------------------------------
Merging boundaries...
11418 contours fusionnés
5601 nouveaux contours
-----------------------------------------------------
Removing dangles...
Supprimé lignes : 0
Supprimé dangles: 0
-----------------------------------------------------
Construction des surfaces ...
58043 areas built
47941 isles built
La topologie a bien été construite
Nombre de nœuds: 69634
Nombre de primitives: 121114
Nombre de points: 0
Nombre de lignes :0
Nombre de contours: 121114
Nombre de centroïdes: 0
Nombre de surfaces: 58043
Nombre d'îles: 47941
WARNING: Nombre de contours incorrects: 8776
-----------------------------------------------------
Removing bridges...
Removed lines: 3
Removed bridges: 1
-----------------------------------------------------
Enregistrement des primitives ...
82317 primitives registered
490544 vertices registered
Construction des surfaces ...
46766 areas built
44697 isles built
Attachement des îles ...
La topologie a bien été construite
Nombre de nœuds: 80984
Nombre de primitives: 82317
Nombre de points: 0
Nombre de lignes :0
Nombre de contours: 82317
Nombre de centroïdes: 0
Nombre de surfaces: 46766
Nombre d'îles: 44697
WARNING: Nombre de contours incorrects: 32999
-----------------------------------------------------
Finding centroids for OGR layer <bati_D90_decoupe>...
-----------------------------------------------------
Writing centroids...
WARNING: les entités surfaciques 4 comprennent des objets se recouvrant, étant donné que les polygones se recouvrent dans les couches en entrée. De telles entités sont liées à plus d'un tuple de la table attributaire. Le nombre d'objets de ces entités est stocké comme une catégorie de la couche 2
-----------------------------------------------------
57851 input polygons
Total area: 7.53454E+06 (46766 areas)
Overlapping area: 0.682437 (4 areas)
Area without category: 6551.93 (35 areas)
-----------------------------------------------------
Copie des objets ...
Construction de la topologie pour la carte vectorielle <bati_D90_decoupe at AIP_RONCHAMP_MNE>...
Enregistrement des primitives ...
129048 primitives registered
537275 vertices registered
Construction des surfaces ...
58043 areas built
47942 isles built
Attachement des îles ...
Attachement des centroïdes ...
La topologie a bien été construite
Nombre de nœuds: 63445
Nombre de primitives: 129048
Nombre de points: 0
Nombre de lignes :0
Nombre de contours: 82317
Nombre de centroïdes: 46731
Nombre de surfaces: 58043
Nombre d'îles: 47942
WARNING: Nombre de contours incorrects: 8772
WARNING: Nombre de centroïdes en dehors de surfaces: 2
-----------------------------------------------------
Some input polygons are overlapping each other.
If overlapping is not desired, the data need to be cleaned.
The input could be cleaned by snapping vertices to each other.
Estimated range of snapping threshold: [1e-08, 1]
Try to import again, snapping with at least 1e-08: 'snap=1e-08'
Input </media/hdd1/phom/eolien/AIP_UNESCO_RONCHAMP/data/qgis/MNE/bati_D90_decoupe.shp> successfully imported without reprojection
(Thu Apr 12 12:52:42 2018) La commande s'est terminée (7 min 27 sec)            
(Thu Apr 12 12:52:42 2018)                                                      
v.import --verbose input=/media/hdd1/phom/eolien/AIP_UNESCO_RONCHAMP/data/qgis/MNE/bati_D90_decoupe.shp layer=bati_D90_decoupe output=bati_D90_decoupe -o


More information about the grass-user mailing list