Opened 5 years ago

Closed 5 years ago

Last modified 5 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
Cc:

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
1.9.2
$ 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:
GEOGCS["GCS_WGS_1984",
    DATUM["WGS_1984",
        SPHEROID["WGS_84",6378137,298.257223563]],
    PRIMEM["Greenwich",0],
    UNIT["Degree",0.017453292519943295]]
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 5 years ago.
ogrinfo dump

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by sgillies

Attachment: features.txt added

ogrinfo dump

comment:1 Changed 5 years ago by sgillies

Version: unspecified1.9.2

comment:2 Changed 5 years ago by sgillies

Description: modified (diff)

comment:3 Changed 5 years ago by Even Rouault

Milestone: 1.9.3
Resolution: fixed
Status: newclosed

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

comment:4 Changed 5 years ago by sgillies

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

Note: See TracTickets for help on using tickets.