Access Geospatial Data on Vantage - Access Geospatial Data on Vantage - Teradata Package for Python

Teradata® Package for Python User Guide

Product
Teradata Package for Python
Release Number
17.10
Published
May 2022
Language
English (United States)
Last Update
2022-08-18
dita:mapPath
rsu1641592952675.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
B700-4006
lifecycle
previous
Product Category
Teradata Vantage

teradataml provides GeoDataFrame a couple ways to access a table containing Geospatial data in Vantage and create a GeoDataFrame object from the same.

Create GeoDataFrame object from a table

Load the necessary teradataml modules first.
from teradataml import GeoDataFrame
To access a table containing Geospatial data, user can use GeoDataFrame constructor. For example:
geoDF = GeoDataFrame("sample_shapes")
Or user can create a GeoDataFrame using from_table() API. For example:
geoDF = GeoDataFrame.from_table("sample_shapes")

Create GeoDataFrame object from a query

Load the necessary teradataml modules first.
from teradataml import GeoDataFrame
To create a GeoDataFrame from query user must use from_query() API. For example:
geoDF = GeoDataFrame.from_query("select * from sample_shapes")