> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

export const FontColor = ({color, children}) => {
  return <span style={{
    color: color
  }}>{children}</span>;
};

<Note>
  * Sedona uses 1-based indexing for all raster functions except [map algebra function](/reference/wherobots-db/raster-data/raster-functions), which uses 0-based indexing.
  * Sedona by default enforces geographic coordinates to be in longitude/latitude order.
  * By default, all raster cell world coordinates correspond to the real world coordinates of the leftmost top corner of the cell.
</Note>

WherobotsDB supports raster data sources and raster operators in DataFrame and SQL. Raster support is available in all WherobotsDB language bindings including <FontColor color="purple">Scala, Java, Python and R</FontColor>.

<Tabs>
  <Tab title="Python">
    ```python theme={"system"}
    myDataFrame = sedona.sql("YOUR_SQL")
    myDataFrame.createOrReplaceTempView("rasterDf")
    ```
  </Tab>

  <Tab title="Scala">
    ```scala theme={"system"}
    var myDataFrame = sedona.sql("YOUR_SQL")
    myDataFrame.createOrReplaceTempView("rasterDf")
    ```
  </Tab>

  <Tab title="Java">
    ```java theme={"system"}
    Dataset<Row> myDataFrame = sedona.sql("YOUR_SQL")
    myDataFrame.createOrReplaceTempView("rasterDf")
    ```
  </Tab>
</Tabs>

In PySpark (the Python API for Apache Spark), when working with DataFrame operations, particularly in scenarios where you wish to execute SQL queries on a DataFrame, it is necessary to register this DataFrame as a temporary view or table. This step is crucial because PySpark, by default, doesn't recognize a DataFrame in SQL commands unless it is registered as a view.

The `createOrReplaceTempView` method registers the DataFrame as a temporary view with a specified name ("rasterDf"). This temporary view acts like a virtual table on which you can run SQL queries.

You can find example raster data in [Sedona GitHub repo](https://github.com/apache/sedona/blob/0eae42576c2588fe278f75cef3b17fee600eac90/spark/common/src/test/resources/).
