Opened 12 years ago
Closed 12 years ago
#4357 closed enhancement (fixed)
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 (1)
comment:1 by , 12 years ago
Milestone: | → 1.9.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
r23442 /trunk/gdal/apps/ogr2ogr.cpp: ogr2ogr: add debugging trace to display the number of features successfully written for each layer (#4357)