Kristin Cowalcijk created SEDONA-718:
----------------------------------------
Summary: Auto Detect geometry column in GeoJSON writer
Key: SEDONA-718
URL: https://issues.apache.org/jira/browse/SEDONA-718
Project: Apache Sedona
Issue Type: Bug
Reporter: Kristin Cowalcijk
Fix For: 1.7.1
Currently, the GeoJSON writer will only use the column named "geometry" as the
geometry field of the GeoJSON, users have to use {{.option("geometry.column",
"geom")}} to use other geometry columns. This is very common where a DataFrame
contains only {{geom}} field but not {{geometry}} field.
We want to make the GeoJSON writer a bit smarter by automatically detecting
columns with geometry types when the column named "geometry" does not present,
or does not have geometry type:
# If there's a column named "geometry" with geometry type, Sedona will use
this column
# Otherwise, Sedona will use the first geometry column found in the root schema
--
This message was sent by Atlassian Jira
(v8.20.10#820010)