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

Only one layer in a shapefile? #87

Open
chrisnatali opened this issue Jun 2, 2016 · 1 comment
Open

Only one layer in a shapefile? #87

chrisnatali opened this issue Jun 2, 2016 · 1 comment

Comments

@chrisnatali
Copy link
Contributor

chrisnatali commented Jun 2, 2016

Not sure why io iterates over layers here. There should only be one in a shapefile.

The GDAL interface generically handles sources with multiple layers, but I don't believe shapefiles are one of these.

@chrisnatali
Copy link
Contributor Author

From here:

"Normally the OGR Shapefile driver treats a whole directory of shapefiles as a dataset, and a single shapefile within that directory as a layer. In this case the directory name should be used as the dataset name. However, it is also possible to use one of the files (.shp, .shx or .dbf) in a shapefile set as the dataset name, and then it will be treated as a dataset with one layer."

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

No branches or pull requests

1 participant