<div dir="ltr"><br><br>On Tue, Oct 9, 2018 at 2:11 PM Veronica Andreo <<a href="mailto:veroandreo@gmail.com">veroandreo@gmail.com</a>> wrote:<br>><br>> A follow up:<br>><br>> If I convert the gpkg to shapefile and import into GRASS, then all points are imported:<br>><br>> v.import input=central.shp layer=central output=central --overwrite<br>> Check if OGR layer <central> contains polygons...<br>> Creating attribute table for layer <central>...<br>> Importing 30 features (OGR layer <central>)...<br>> -----------------------------------------------------<br>> Building topology for vector map <central@testing>...<br>> Registering primitives...<br>> Input <central.shp> successfully imported without reprojection<br>><br>> v.db.select -c central | wc -l<br>> 30<br>><br><div>> What could be the problem with gpkg and how to test further??</div><div><br></div><div>The problem is that the bounding box included in the gpkg does not cover all points: these missing 2 points are outside the bbox embedded in the gpkg. As a safety measure, v.in.ogr applies a spatial filter using the input layer's bbox to exclude corrupt features (previously observed in some shapefiles). This spatial filter is passed directly to OGR and as a consequence, OGR provides only 28 and not 30 points to v.in.ogr.</div><div><br></div><div>I am not sure what to do about this. Disable this safety check again?</div><div><br></div><div>Markus M</div><div><br></div>><br>> El lun., 8 oct. 2018 a las 21:24, Veronica Andreo (<<a href="mailto:veroandreo@gmail.com">veroandreo@gmail.com</a>>) escribió:<br>>><br>>> Hello devs <br>>><br>>> I found a quite striking issue when importing a simple vector file.  It is a gpkg file with 30 points and only one field as attribute. When I import it into GRASS, either with v.in.ogr or v.import, I only get 28 points imported. No idea why. Meanwhile, ogrinfo -al reports 30 points, same as QGIS<br>>><br>>> v.in.ogr input=central.gpkg layer=central output=central<br>>> Check if OGR layer <central> contains polygons...<br>>> WARNING: Vector map <central> already exists and will be overwritten<br>>> Creating attribute table for layer <central>...<br>>> Importing 28 features (OGR layer <central>)...<br>>> -----------------------------------------------------<br>>> Building topology for vector map <central@testing>...<br>>> Registering primitives...<br>>><br>>> v.db.select -c central | wc -l<br>>> 28<br>>><br>>> I attach the file.<br>>><br>>> Thanks much in advance<br>>> Vero<br>>><br>>> ps: I use trunk r73492<br>><br>> _______________________________________________<br>> grass-dev mailing list<br>> <a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/grass-dev">https://lists.osgeo.org/mailman/listinfo/grass-dev</a></div>