Ticket #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
Note: See
TracTickets for help on using
tickets.
