|
- 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.
|