Access Geospatial Data on Vantage - Access Geospatial Data on Vantage - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-02-17
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

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")