-
Notifications
You must be signed in to change notification settings - Fork 2
add a geometrycolumn option to write #30
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
base: main
Are you sure you want to change the base?
Conversation
we should phase out the `geocolumn` optional argument in favour of the keyword argument, this is backwards compatible and nonbreaking but we should, at some point, raise a depwarn and then make a breaking release that removes that argument.
Uhm, there's |
That's a positional argument, for consistency I'm trying to make everything a kwarg |
Fair enough, but let's deprecate this signature then, and only have a kwarg in the new one. And do you prefer |
Let's standardise these keyword everywhere, we really need to write that common interface docstring in GeoInterface...
Also are you thinking plural or single? |
Plural needs to be supported, @lazarusA's tutorial has a case where you have the centroid of a geom and the geom itself in a dataframe, which both would need to be transformed / reprojected at the same time. But the kwarg can be singular, I don't have any particular bias here or there. The only thing is that it needs to accept |
I prefer geometrycolumns. Note that GDF doesn't accept a Symbol, it has to be a tuple for this argument. It's longer, but with the defaults it shouldn't be used that much. |
I really prefer singlular and accepting a Symbol, as it's the 95% use case. And e.g. Rasters can only accept one column to rasterize at a time so can't use the plural, but no package will only accept multiple columns. |
We should probably change that, it's pretty annoying on the user end IMO. And tough to tell someone they have to pass in a tuple when we can detect and wrap.
Definitely - but I would argue that with the metadata support now it's not as important as it used to be. And if you're creating a table from scratch anyway, then it's not so hard to add an extra character at the end... |
Just to clarify my reason to want I could change it to |
FWIW I ended up (before this) using It does flow more naturally especially for the 99% case of a single geometry column. |
what it says on the tin