[GRASS-dev] v.out.ogr exports more features than available

Benjamin Ducke benducke at fastmail.fm
Tue Dec 13 15:05:31 EST 2011


Sounds like v.out.ogr includes some features in
the output that are marked "dead" but are still in the
dataset. Could you check two things, please:

1) Use another, external application (e.g. ogrinfo
or QGIS) to get an independent count of the number
of points in the output files,

2) and make a copy of the cleaned vector points map
using g.copy vect=, and use v.out.ogr to export
the copy instead of the cleaned original?

Ben


-- 
Benjamin Ducke
{*} Geospatial Consultant
{*} GIS Developer
  
  benducke AT fastmail.fm


On Tue, Dec 13, 2011, at 21:21, Maris Nartiss wrote:
> Working with today's trunk I spotted an oddity - I can export to
> shapefile not existing points.
> Work flow: v.in.ogr shapefile with 11183 points; run v.clean with
> rmdupl tool and reduce feature count to 10954; v.out.ogr exports to
> shapefile 11183 features. WTF?!?
> 
> The best one is the output of v.out.ogr:
> v.out.ogr -e input=clean_points2 at geod_points type=point layer=1
> dsn=/home/maris/clean_points2.shp format=ESRI_Shapefile
> Exporting 10954 features...
> v.out.ogr izpildīts. 11183 features written to <clean_points2>
> (ESRI_Shapefile).
> 
> And here is metadata output for imported and for cleaned vector
> datasets (only Number of points differ):
> Dirty: Number of points:       11183
> Clean2: Number of points:       10954
> 
> Running v.build doesn't change anything.
> 
> Ideas?
> Maris.
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
> 


More information about the grass-dev mailing list