Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#5093 closed defect (fixed)

Feature count too large by 1 with vsitar

Reported by: sgillies Owned by: warmerdam
Priority: normal Milestone: 1.9.3
Component: default Version: 1.9.2
Severity: normal Keywords: vsi tar

Description (last modified by sgillies)

I've put a shapefile with 47 features into a directory within a tar file. Ogrinfo reports 48 features. I'm also testing vsizip but don't see a problem there.

$ gdal-config --version
$ ogrinfo -so /vsitar/docs/data/test_uk.tar/testing/test_uk.shp test_uk
ERROR 4: Unable to open /vsitar/docs/data/test_uk.tar/testing/test_uk.shp or /vsitar/docs/data/test_uk.tar/testing/test_uk.SHP.
Had to open data source read-only.
INFO: Open of `/vsitar/docs/data/test_uk.tar/testing/test_uk.shp'
      using driver `ESRI Shapefile' successful.

Layer name: test_uk
Geometry: 3D Polygon
Feature Count: 48
Extent: (-8.621389, 49.911659) - (1.749444, 60.844444)
Layer SRS WKT:
CAT: Real (16.0)
FIPS_CNTRY: String (80.0)
CNTRY_NAME: String (80.0)
AREA: Real (15.2)
POP_CNTRY: Real (15.2)

I'm attaching the ogrinfo dump to show that it only contains 47 features.

Attachments (1)

features.txt (83.9 KB ) - added by sgillies 11 years ago.
ogrinfo dump

Download all attachments as: .zip

Change History (5)

by sgillies, 11 years ago

Attachment: features.txt added

ogrinfo dump

comment:1 by sgillies, 11 years ago

Version: unspecified1.9.2

comment:2 by sgillies, 11 years ago

Description: modified (diff)

comment:3 by Even Rouault, 11 years ago

Milestone: 1.9.3
Resolution: fixed
Status: newclosed

Fixed in trunk (r26025), branches/1.10 (r26026) and branches/1.9 (r26027)

comment:4 by sgillies, 11 years ago

Whoops, I meant feature count too small by one, but you clearly figured that out ;) Thanks!

Note: See TracTickets for help on using tickets.