Create Table using CREATE TABLE Command
To create a geospatial table in WherobotsDB, use sedona.sql(...) to run a CREATE TABLE command:
- Python
- Scala
- Java
geometry to represent geospatial data. Data in columns with geometry type will be loaded as GeometryUDT values in WherobotsDB, user can use any ST_ functions provided by WherobotsDB to manipulate the geospatial data.
Create Table using DataFrame
User can also create a table using a DataFrame. The geometry column in the DataFrame will goes into theGEOMETRY column in the created geospatial table.
- Python
- Scala
- Java
ALTER TABLE, DROP TABLE, etc.
Writing Geometry Data
Once your table is created, you can insert data usingINSERT INTO:
- Python
- Scala
- Java
ST_GeomFromText and ST_Point provided by WherobotsDB to construct geometry values and directly inserted them into the Havasu table.
Users can also write a DataFrame containing geometry data to a Havasu table:
- Python
- Scala
- Java
- Python
- Scala
- Java
UPDATE, DELETE, MERGE INTO, etc. Please refer to Apache Iceberg - Spark Writes for details.
Reading Geometry Table
Havasu tables can be queried using SQLSELECT statements:
- Python
- Scala
- Java
- Python
- Scala
- Java
Processing Geometry Data using Spatial SQL
Users can use anyST_ functions provided by WherobotsDB to manipulate geometry data read from Havasu.
- Python
- Scala
- Java

