copyright | lastupdated | subcollection | ||
---|---|---|---|---|
|
2023-02-03 |
AnalyticsEngine |
{:new_window: target="_blank"} {:shortdesc: .shortdesc} {:codeblock: .codeblock} {:screen: .screen} {:pre: .pre} {:external: target="_blank" .external}
{: #geospatial-geotemporal-lib-non-classic}
You can use the spatio-temporal library to expand your data science analysis in Python notebooks to include location analytics by gathering, manipulating and displaying imagery, GPS, satellite photography and historical data.
You can use the spatio-temporal lib for applications that run in a standalone {{site.data.keyword.iae_full_notm}} cluster, which you create for your data analysis processing, or in solutions that use {{site.data.keyword.iae_full_notm}}, for example in the Spark environments available in {{site.data.keyword.DSX_full}}.
{: #geospatial-geotemporal-lib-non-classic-1}
The geospatial library includes functions to read and write data, topological functions, geohashing, indexing, ellipsoidal and routing functions.
Key aspects of the library include:
- All calculated geometries are accurate without the need for projections.
- The geospatial functions, when run in {{site.data.keyword.iae_full_notm}} standalone or in a solution that uses {{site.data.keyword.iae_full_notm}} take advantage of the distributed processing capabilities provided by Spark.
- The library includes native geohashing support for geometries used in simple aggregations and in {{site.data.keyword.cos_full_notm}} indexing, whereby improving storage retrieval considerably.
- The library supports extensions of Spark distributed joins.
- The library supports the SQL/MM extensions to Spark SQL.
{: #geospatial-geotemporal-lib-non-classic-2}
Before you can start using the library in a notebook, you must register STContext
in your notebook to access the st
functions.
To register STContext
:
from pyst import STContext
stc = STContext(spark.sparkContext._gateway)
{: #geospatio-next-steps}
After you have registered STContext
in your notebook, you can begin exploring the spatio-temporal library for:
- Functions to read and write data
- Topological functions
- Geohashing functions
- Geospatial indexing functions
- Ellipsoidal functions
- Routing functions
{: #learn-more-goespatio-lib}
Check out the following Python notebooks to learn how to use the spacio-temporal library functions in Python notebooks. To access these notebooks, you need an {{site.data.keyword.DSX_full}} instance. See Provisioning an {{site.data.keyword.DSX_full}} instance{: external}.
- Use the spatio-temporal library for location analytics{: external}
- Use spatial indexing to query spatial data{: external}
- Spatial Queries in PySpark{: external}