-
Notifications
You must be signed in to change notification settings - Fork 17
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
Is there a need to standardize geom
and geometry
across ecosystem
#164
Comments
We have
@evetion I noticed this the other day too, is there a reason to still use Also GADM.jl recently fixed their |
Using |
We should as much as possible standardise table columns, it's worth the long term simplicity |
Understanding that GI.geometrycolumns is being implemented making this less of an issue: e.g.
or just
|
|
Yeah... good demonstratiion that |
Reiterating that standardizing on the geometry column name (either "geometry" or "geom") early could provide long-term benefits. I find myself continually having to check if "geom" or "geometry" |
Where is it still :geom? This is just GDAL? There is not much more we can do here, GeoInterface has both a standard name (:geometry) and a function to get non standard names. Probably an issue at the offending source is more actionable |
Any non-GeoJSON thing loaded by GDAL has I had two proposals on GeoInterface to extend this so we can do |
OK, so is there a scenario where we rename GDAL "geom" columns to "geometry" for consistency, or is this bad practice? I'm using |
So there are two problems. An issue at ArchGDAL is the best place for the second problem. The first is here, but I'm not sure how to fix that.
|
I have the same frustration, and it is an open discussion how to fix it. We went for the all should be compatible route, which now leads to some cumbersome code. I think the fixes are mostly in packages (those should use |
But getting the column with other table syntax will also be something people try... |
As I understand,
So far GDAL.jl and ArchGDAL.jl just followed GDAL's lead here. Besides |
Yes it would make a lot of sense for ArchGDAL to change both |
Ok I made an ArchGDAL issue |
I'm finding
geom
andgeometry
used interchangeably but this creates some conflicts across package. It seems like some guidance might be needed:Documenting some of what I've noticed:
@evetion uses
geom
in GeoDataFrames which then can not be passed directly to @rafaqz Raster.rasterize@asinghvi17 also uses
geom
in GeometryOpsGeoInterface has a
GeometryCollection
but a function call that isgetgeom
Shapefile creates a
geometry
columnThe text was updated successfully, but these errors were encountered: