shapefile icon indicating copy to clipboard operation
shapefile copied to clipboard

Support feature count

Open stevage opened this issue 7 years ago • 1 comments

This works really well, thank you! It would be helpful to have a way of knowing the total feature count, in order to provide percentages to the user when processing files.

I don't know much about how Shapefiles work, but ogrinfo can provide this info instantly, so presumably it's stored in metadata and doesn't require manuallly counting.

stevage avatar Jan 04 '18 23:01 stevage

Adding this commit https://github.com/mbostock/shapefile/compare/master...rubillionaire:shapefile:master for anyone else looking interested in this. Small change from the above, using getUint32 instead of getUint16 to get the feature count, as referenced in this documentation

rubillionaire avatar Jun 06 '23 22:06 rubillionaire