Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 3.55 KB

geospacial-lib-non-classic.md

File metadata and controls

68 lines (48 loc) · 3.55 KB
copyright lastupdated subcollection
years
2017, 2020
2023-02-03
AnalyticsEngine

{:new_window: target="_blank"} {:shortdesc: .shortdesc} {:codeblock: .codeblock} {:screen: .screen} {:pre: .pre} {:external: target="_blank" .external}

Working with the spatio-temporal library

{: #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}}.

Key functions

{: #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.

Getting started with the library

{: #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)

Next steps

{: #geospatio-next-steps}

After you have registered STContext in your notebook, you can begin exploring the spatio-temporal library for:

Learn more

{: #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}.