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

Column name: "geom" vs. "geometry" #12193

Open
erikamariano opened this issue Apr 30, 2024 · 1 comment
Open

Column name: "geom" vs. "geometry" #12193

erikamariano opened this issue Apr 30, 2024 · 1 comment
Assignees
Milestone

Comments

@erikamariano
Copy link

Expected Behavior

Check any layer in database, the column name for the geometry type has to be the same for all tables: "geom".
This should happen for all kinds of files: GeoJSON, Shapefile, etc.

Actual Behavior

  • When adding GeoJSON files to Geonode, the geometry column name is "geometry".
  • When adding Shapefiles or Geopackages, the geometry column name is "geom".

Steps to Reproduce the Problem

  1. Add a GeoJSON file by the user interface
  2. Check the table of this layer in the database
  3. The column name will be "geometry"
  4. Compare it to a layer that was created with a Shapefile or Geopackage

Specifications

  • GeoNode version: 4.1.3
  • Installation type (vanilla, geonode-project): Vanilla
  • Installation method (manual, docker): Docker
  • Platform: CentOS and Ubuntu
@erikamariano erikamariano changed the title Column name: "geom" vs "geometry" Column name: "geom" vs. "geometry" Apr 30, 2024
@mattiagiupponi mattiagiupponi self-assigned this May 2, 2024
@mattiagiupponi mattiagiupponi added this to the 4.3.0 milestone May 2, 2024
@mattiagiupponi
Copy link
Contributor

@erikamariano i was checking the code, and for shapefiles, the column name should be converted in geometry since is passed as parameter.
Anyway there are a couple of handlers that not define the colum in the ogr2ogr command so is ogr to decide the column name.
we can make it equal for all the handlers

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

2 participants