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