Teradata Package for Python Function Reference on VantageCloud Lake | 17.20 - Point - Teradata Package for Python - Look here for syntax, methods and examples for the functions included in the Teradata Package for Python.

Teradata® Package for Python Function Reference on VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Package for Python
Release Number
17.20
Publication Date
November 2022
Content Type
Programming Reference
Publication ID
B700-4500-112K
ft:locale
en-US
ft:lastEdition
2024-02-21
ft:sourceId
FTML
dita:id
TeradataPython_FxRef_Lake_1720
Product Category
Teradata Vantage

 
teradataml.geospatial.geometry_types.Point = class Point(GeometryType)
    teradataml.geospatial.geometry_types.Point(*coordinates)
 
Class Point enables end user to create an object for the single Point
using the coordinates. Allows user to use the same in GeoDataFrame
manipulation and processing.
 
 
Method resolution order:
Point
GeometryType
builtins.object

Methods defined here:
__init__(self, *coordinates)
DESCRIPTION:
    Enables end user to create an object for the single Point
    using the coordinates. Allows user to use the same in GeoDataFrame
    manipulation and processing using any Geospatial function.
 
PARAMETERS:
    *coordinates:
        Optional Argument.
        Specifies the coordinates of a Point. Coordinates must be
        specified in positional fashion.
        If coordinates are not passed, an object for empty point is
        created.
        When coordinates are passed, one must pass either 2 or 3
        values to define a Point in 2-dimentions or 3-dimentions.
        Types: int, float
 
RETURNS:
    Point
 
RAISES:
    TeradataMlException, TypeError, ValueError
 
EXAMPLES:
    >>> from teradataml import Point
 
    # Example 1: Create a Point in 2D, using x and y coordinates.
    >>> p1 = Point(0, 20)
    >>> # Print the coordinates.
    >>> print(p1.coords)
    (0, 20)
    >>> # Print the geometry type.
    >>> p1.geom_type
    'Point'
    >>>
 
    # Example 2: Create a Point in 3D, using x, y and z coordinates.
    >>> p2 = Point(0, 20, 30)
    >>> # Print the coordinates.
    >>> print(p2.coords)
    (0, 20, 30)
    >>>
 
    # Example 3: Create an empty Point.
    >>> pe = Point()
    >>> # Print the coordinates.
    >>> print(pe.coords)
    EMPTY
    >>>

Readonly properties defined here:
coords
Returns the coordinates of the Point Geometry object.

Methods inherited from GeometryType:
__getattr__(self, item)
__str__(self)
Return String Representation for a Geometry object.

Readonly properties inherited from GeometryType:
geom_type
Returns the type of a Geometry.