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

Teradata® Package for Python User Guide

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Teradata Package for Python
Release Number
20.00
Published
March 2024
Language
English (United States)
Last Update
2024-04-09
dita:mapPath
nvi1706202040305.ditamap
dita:ditavalPath
plt1683835213376.ditaval
dita:id
rkb1531260709148
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")