Ticket #4357 (closed enhancement: fixed)

Opened 18 months ago

Last modified 18 months ago

ogr2ogr: additional debug info

Reported by: peifer Owned by: warmerdam
Priority: normal Milestone: 1.9.0
Component: Utilities Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

I would find it helpful to know via CPL_DEBUG=ON how many features have actually been copied in the below example. This would save me typing an additional ogrinfo.

$ ogr2ogr -t_srs epsg:3035 ~/tmp/out.shp EBM_A.shp -where "TAA = 1"
Shape: DBF Codepage = UTF-8 for EBM_A.shp
Shape: Treating as encoding 'UTF-8'.
...
Shape: 209 features read on layer 'EBM_A'.   <----------

$ ogrinfo -al -so  ~/tmp/out.shp
Shape: DBF Codepage = LDID/87 for /home/peifer/tmp/out.shp
Shape: Treating as encoding 'UTF-8'.
OGR: OGROpen(/home/peifer/tmp/out.shp/0x11d70e0) succeeded as ESRI Shapefile.
INFO: Open of `/home/peifer/tmp/out.shp'
      using driver `ESRI Shapefile' successful.
OGR: GetLayerCount() = 1

Layer name: out
Geometry: Polygon
Feature Count: 202 <----------

Change History

Changed 18 months ago by rouault

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 1.9.0

r23442 /trunk/gdal/apps/ogr2ogr.cpp: ogr2ogr: add debugging trace to display the number of features successfully written for each layer (#4357)

Note: See TracTickets for help on using tickets.