You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Add a GeoJSON file by the user interface
Check the table of this layer in the database
The column name will be "geometry"
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
The text was updated successfully, but these errors were encountered:
erikamariano
changed the title
Column name: "geom" vs "geometry"
Column name: "geom" vs. "geometry"
Apr 30, 2024
@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
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
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: