-
Notifications
You must be signed in to change notification settings - Fork 19
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
Make geo_types directly Writable and Readable without having to use Convertions #22
Comments
What is this geozero thing, and could it be used/implemented ? 🤔 |
I've used geozero just a bit, but haven't used the shapefile features. If you haven't already found it, there is some support for reading (but not yet writing) shapefiles https://github.com/georust/geozero/blob/master/geozero-shp/src/shp_reader.rs The reading support leverages your dbase crate. If you have questions, the primary author @pka might be able to help. |
Converting between formats without intermediate representation is the primary goal of geozero. The mentioned driver is a stripped down version of shapefile-rs which supports reading shapefiles and converting to geo_types, but also to GeoJSON, WKT, GEOS, GDAL and others. But the other direction is not supported and not high on the priority list. If there is a idea for collaboration, I'm open for it. |
I wanted to explore the possibility of reading and writing directly to geo_types without going through conversions between shapefile-rs types and geo_types as I think geo_types are often used. Implementing that using geozero, if I understand correctly, would give more flexibility in the output type of the reader |
I'm interested in following the discussion here as well as I've started trying to use this library to add shp reading to https://github.com/worace/geoq. 1 thing that I've run into a lot when working in the geo rust ecosystem is that I was looking at similarly reading shp -> geojson, and while I could potentially rely on the shapefile -> geo_types conversions shipped with this library to go |
geozero is new to me as well; I will need to spend some time reading up on that. But from a quick scan it looks like it does support the dimensions needed at least. Maybe that would be a better fit for the kind of things I'm doing as well. |
This might not be possible as some geotypes are not compatible / has no shapefile equivalent, but should still be looked into
The text was updated successfully, but these errors were encountered: