We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
GeoJSON can be valid even if it's missing a geometry, but yield_records will throw a key error in that case:
yield_records
def yield_records(features, pk, spatialite): for feature in features: record = {} if "id" in feature: record["id"] = feature["id"] record.update(feature.get("properties") or {}) if spatialite: record["geometry"] = shape(feature["geometry"]).wkt else: record["geometry"] = feature["geometry"] yield record
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
GeoJSON can be valid even if it's missing a geometry, but
yield_records
will throw a key error in that case:The text was updated successfully, but these errors were encountered: