Loading...

verticapy.sql.geo.describe_index#

verticapy.sql.geo.describe_index(name: str | None = None, list_polygons: bool = False) TableSample | vDataFrame#

Retrieves information about an index that contains a set of polygons. If you do not pass any parameters, this function returns all defined indexes.

Parameters#

name: str, optional

Index name.

list_polygons: bool, optional

Boolean that specifies whether to list the polygons in the index. If set to True, the function returns a vDataFrame instead of a TableSample.

Returns#

TableSample

geospatial indexes.

Examples#

Describes all indexes:

from verticapy.sql.geo import describe_index

describe_index()
Abc
name
Varchar(4096)
1world_polygons_new
2world_polygons

Describes a specific index:

describe_index("world_polygons")
Abc
type
Varchar(20)
...
123
max_x
Float(22)
123
max_y
Float(22)
1GEOMETRY...180.083.64513

Describes all geometries of a specific index:

describe_index(
    "world_polygons",
    list_polygons = True,
)
123
gid
Integer
100%
...
Abc
state
Varchar(20)
100%
🌎
Geometry(13167)
100%
11...INDEXED
22...INDEXED
33...INDEXED
44...INDEXED
55...INDEXED
66...INDEXED
77...INDEXED
88...INDEXED
99...INDEXED
1010...INDEXED
1111...INDEXED
1212...INDEXED
1313...INDEXED
1414...INDEXED
1515...INDEXED
1616...INDEXED
1717...INDEXED
1818...INDEXED
1919...INDEXED
2020...INDEXED

Note

For geospatial functions, Vertica utilizes indexing to expedite computations, especially considering the potentially extensive size of polygons. This is a unique optimization approach employed by Vertica in these scenarios.

See also

create_index() : Creates the geo index.
intersect() : Spatially intersects a point or points with a set of polygons.
rename_index() : Renames the geo index.