From Shapely and GeoPandas#
The methods on this page are inherited by Vector. With the
vct interface, call them directly on the
GeoDataFrame.
Geometric attributes and methods#
This first category of attributes and methods return a geometric output converted to a Vector by default.
Attributes:
Return a |
|
Return a |
|
Return a |
|
Return a |
|
Return a |
Methods:
Return a |
|
Return a |
|
Repairs invalid geometries. |
|
|
Return a |
|
Return a |
|
Return a |
|
Return a geometry containing the union of all geometries in the |
|
Return a |
Return a geometry containing the intersection of all geometries in the |
|
|
Return a |
|
Return a |
|
Return a |
|
Return a |
|
Shift a vector by a coordinate offset. |
|
Return a |
|
Return a |
|
Return a |
|
Return a |
|
Return a |
|
Return a |
Return a |
|
Return a |
|
Return a |
|
|
Return a |
|
Return a |
Return a |
|
|
Return a |
|
Create polygons formed from the linework of a Vector. |
|
Return a |
Force the dimensionality of a geometry to 2D. |
|
|
Force the dimensionality of a geometry to 3D. |
|
Return (Multi)LineStrings formed by combining the lines in a MultiLineString. |
|
Return the shortest two-point line between two geometries. |
|
Return a point at the specified distance along each geometry. |
|
Return the shared paths between two geometries. |
|
Dissolve geometries within groupby into single observation. |
|
Explode multi-part geometries into multiple component geometries. |
|
Spatial join of two Vectors. |
|
Spatial join of two Vectors based on the distance between their geometries. |
|
Perform spatial overlay between Vectors. |
|
Snap the vertices and segments of the geometry to vertices of the reference. |
|
Transform geometries to a new coordinate reference system. |
|
Set the Coordinate Reference System (CRS) of the |
|
Return the n-th geometry from a collection of geometries. |
|
Set the Vector geometry using either an existing column or the specified input. |
|
Rename the Vector geometry column to the specified name. |
|
Return a |
|
|
Coordinate based indexer to select by intersection with bounding box. |
Non-geometric per-feature attributes and methods#
This second category returns a non-geometric pandas.Series with one result per feature, as in GeoPandas.
Assign that Series to a column of Vector.gdf to store it with the geometries.
Attributes:
Return a |
|
Return a |
|
Return a |
|
Returns a |
|
Returns or appends to |
|
Return a |
|
Returns a |
|
Return a |
|
Return a |
|
Return a |
|
Return a |
|
Return a |
Methods:
|
Return a |
|
Return a |
|
Return a |
|
Return a |
|
Return a |
|
Return True for all aligned geometries that overlap other, else False. |
|
Return a |
|
Return a |
|
Return a |
|
Return a |
|
Return a |
Return a |
|
Return a |
|
Return a |
|
Return a |
|
Return a |
|
Return a |
|
Return a Series of the radii of the minimum bounding circles that enclose each geometry. |
|
|
Return a |
|
Return a |
|
Return a |
|
Return a |
|
Calculate the distance along a Hilbert curve. |
|
Return the DE-9IM intersection matrices for the geometries. |
|
Return True if the DE-9IM string code for the relationship between the geometries satisfies the pattern, else False. |
|
Return the distance along each geometry nearest to other. |
I/O, conversions and others#
Important
The behaviour of methods below is not modified in Vector, as they deal with outputs of different types.
To ensure those are up-to-date with GeoPandas, alternatively call those from Vector.gdf.
|
Alternate constructor to create a |
|
Alternate constructor to create Vector from an iterable of features or a feature collection. |
|
Alternate constructor to create a |
|
Construct Vector from dict of array-like or dicts by overriding DataFrame.from_dict method with geometry and crs. |
|
Construct a Vector from an Arrow table object based on GeoArrow extension types. |
|
Write the |
|
Write a Vector to the Feather format. |
|
Write a Vector to the Parquet format. |
|
Encode a Vector to GeoArrow format. |
|
Encode all geometry columns in the Vector to WKT. |
|
Encode all geometry columns in the Vector to WKB. |
|
Return a GeoJSON representation of the |
|
Upload Vector into PostGIS database. |
|
Return a python feature collection representation of the Vector as a dictionary with a list of features based on the |
|
Write object to a comma-separated values (csv) file. |
Other attributes and methods#
Check the existence of the spatial index without generating it. |
|
Generate the spatial index. |
|
Total bounds of the vector. |
See also
The methods above are described in GeoPandas GeoSeries’s API and Shapely object’s documentation.