jbampton commented on code in PR #1603:
URL: https://github.com/apache/sedona/pull/1603#discussion_r1799855768
##########
docs/tutorial/sql.md:
##########
@@ -705,6 +705,98 @@ For Postgis there is no need to add a query to convert
geometry types since it's
.withColumn("geom", f.expr("ST_GeomFromWKB(geom)")))
```
+## Load from geopackage
+
+Since v1.7.0, Sedona supports loading Geopackage file format as a DataFrame.
+
+=== "Scala/Java"
+
+ ```scala
+ val df = sedona.read.format("geopackage").option("tableName",
"tab").load("/path/to/geopackage")
+ ```
+
+=== "Java"
+
+ ```java
+ Dataset<Row> df =
sedona.read().format("geopackage").option("tableName",
"tab").load("/path/to/geopackage")
+ ```
+
+=== "Python"
+
+ ```python
+ df = sedona.read.format("geopackage").option("tableName",
"tab").load("/path/to/geopackage")
+ ```
+
+Geopackage file can contain vector data and raster data. To show the possible
options from the file you can look into
+metadata table by adding parameter showMetadata and set it value as true.
Review Comment:
```suggestion
Geopackage files can contain vector data and raster data. To show the
possible options from a file you can
look into the metadata table by adding parameter showMetadata and set its
value as true.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]