Skip to content

Commit

Permalink
[DOCS] Update Sedona Visualization docs to include note for single ge…
Browse files Browse the repository at this point in the history
…ometry column (#929)
  • Loading branch information
iGN5117 committed Jul 28, 2023
1 parent c57e962 commit 0861db9
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion docs/tutorial/sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -512,11 +512,21 @@ Sedona provides `SedonaPyDeck` and `SedonaKepler` wrappers, both of which expose
!!!Note
Both SedonaPyDeck and SedonaKepler expect the default geometry order to be lon-lat. If your dataframe has geometries in the lat-lon order, please check out [ST_FlipCoordinates](https://sedona.apache.org/latest-snapshot/api/sql/Function/#st_flipcoordinates)

!!!Note
Both SedonaPyDeck and SedonaKepler are designed to work with SedonaDataFrames containing only 1 geometry column. Passing dataframes with multiple geometry columns will cause errors.

### SedonaPyDeck
Spatial query results can be visualized in Jupyter lab/notebook using SedonaPyDeck.

SedonaPyDeck exposes APIs to create interactive map visualizations using [pydeck](https://pydeck.gl/index.html#) based on [deck.gl](https://deck.gl/)

!!!Note
To use SedonaPyDeck, GeoPandas and PyDeck must be installed. We recommend the following installation commands:
```
pip install 'pandas<=1.3.5'
pip install 'geopandas<=0.10.2'
pip install pydeck==0.8.0
```

#### Creating a Choropleth map using SedonaPyDeck

Expand Down Expand Up @@ -609,11 +619,18 @@ More details on the parameters and their default values can be found on the pyde

### SedonaKepler


Spatial query results can be visualized in Jupyter lab/notebook using SedonaKepler.

SedonaKepler exposes APIs to create interactive and customizable map visualizations using [KeplerGl](https://kepler.gl/).

!!!Note
To use SedonaKepler, GeoPandas and KeplerGL must be installed. We recommend the following installation commands:
```
pip install 'pandas<=1.3.5'
pip install 'geopandas<=0.10.2'
pip install keplergl==0.3.2
```

#### Creating a map object using SedonaKepler.create_map

SedonaKepler exposes a create_map API with the following signature:
Expand Down

0 comments on commit 0861db9

Please sign in to comment.