Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support feature count #40

Open
stevage opened this issue Jan 4, 2018 · 1 comment
Open

Support feature count #40

stevage opened this issue Jan 4, 2018 · 1 comment

Comments

@stevage
Copy link

stevage commented Jan 4, 2018

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 added a commit to stevage/shapefile that referenced this issue Jan 5, 2018
@rubillionaire
Copy link

Adding this commit 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants