Teradata Package for Python Function Reference | 20.00 - MultiPoint - 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 - 20.00

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-10
dita:id
TeradataPython_FxRef_Enterprise_2000
Product Category
Teradata Vantage

 
teradataml.geospatial.geometry_types.MultiPoint = class MultiPoint(GeometryType)
    teradataml.geospatial.geometry_types.MultiPoint(points=None)
 
Class MultiPoint enables end user to create an object holding multiple
Point geometry objects. Allows user to use the same in GeoDataFrame
manipulation and processing.
 
 
Method resolution order:
MultiPoint
GeometryType
builtins.object

Methods defined here:
__init__(self, points=None)
DESCRIPTION:
    Enables end user to create an object holding the multiple Point
    geometry objects. Allows user to use the same in GeoDataFrame
    manipulation and processing using any Geospatial function.
 
PARAMETERS:
    points:
        Optional Argument.
        Specifies the list of points. If no points are passed, an object
        for empty MultiPoint is created.
        Types: List of Point objects
 
RETURNS:
    MultiPoint
 
RAISES:
    TeradataMlException, TypeError, ValueError
 
EXAMPLES:
    >>> from teradataml import Point, MultiPoint
 
    # Example 1: Create a MultiPoint in 2D, using x and y coordinates.
    >>> p1 = Point(0, 0)
    >>> p2 = Point(0, 20)
    >>> p3 = Point(20, 20)
    >>> p4 = Point(20, 0)
    >>> go1 = MultiPoint([p1, p2, p3, p4, p1])
    >>> # Print the coordinates.
    >>> print(go1.coords)
    [(0, 0), (0, 20), (20, 20), (20, 0), (0, 0)]
    >>> # Print the geometry type.
    >>> print(go1.geom_type)
    MultiPoint
    >>>
 
    # Example 2: Create an empty MultiPoint.
    >>> poe = MultiPoint()
    >>> # Print the coordinates.
    >>> print(poe.coords)
    EMPTY
    >>>

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

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