arctern-0.2.0
Arctern 0.2.0 Release Notes
The 0.2.0 release focuses on two things
- GeoSeries interfaces. Since this version, Arctern begin to support GeoPandas-like interfaces. In Arctern, we would like to equip these popular interfaces with efficient C++ multi-thread implementations as well as GPU-accelerated implementations.
- Enrich geospatial data pre-processing functionality. Three map matching and one aggregration functions are added.
GeoSeries interfaces
GeoSeries.is_valid | Check if each geometry is of valid geometry format.
GeoSeries.length | Calculate the length of each geometry.
GeoSeries.is_simple | Check whether each geometry is "simple".
GeoSeries.area | Calculate the 2D Cartesian (planar) area of each geometry.
GeoSeries.geometry_type | Get geometry type.
GeoSeries.centroid | Compute the centroid of each geometry.
GeoSeries.convex_hull | For each geometry, compute the smallest convex geometry that encloses all geometries in it.
GeoSeries.npoints | Calculates the points number for each geometry.
GeoSeries.envelope | Compute the double-precision minimum bounding box geometry for each geometry.
GeoSeries.point(x, y[, crs]) | Construct Point geometries according to the coordinates.
GeoSeries.polygon_from_envelope(min_x, ...) | Construct polygon(rectangle) geometries from arr_min_x, arr_min_y, arr_max_x, arr_max_y and special coordinate system.
GeoSeries.geom_from_geojson(json[, crs]) | Construct geometry from the GeoJSON representation string.
GeoSeries.as_geojson() | Transform each to GeoJSON format string.
GeoSeries.to_wkt() | Transform each geometry to WKT formed string.
GeoSeries.to_wkb() | Transform each geometry to WKB formed bytes object.
GeoSeries.buffer(distance) | For each geometry, returns a geometry that represents all points whose distance from this geos is less than or equal to "distance".
GeoSeries.precision_reduce(precision) | For the coordinates of each geometry, reduce the number of significant digits to the given number.
GeoSeries.intersection(other) | Calculate the point set intersection between each geometry and other.
GeoSeries.make_valid() | Create a valid representation of each geometry without losing any of the input vertices.
GeoSeries.simplify_preserve_topology |
GeoSeries.set_crs(crs) | Set the coordinate system for the GeoSeries.
GeoSeries.to_crs(crs) | Transform each geometry to a different coordinate reference system.
GeoSeries.curve_to_line() | Convert curves in each geometry to approximate linear representation, e.g., CIRCULAR STRING to regular LINESTRING, CURVEPOLYGON to POLYGON, and MULTISURFACE to MULTIPOLYGON.
GeoSeries.geom_equals(other) | Check whether each geometry is "spatially equal" to other.
GeoSeries.touches(other) | Check whether each geometry "touches" other.
GeoSeries.overlaps(other) | Check whether each geometry "spatially overlaps" other.
GeoSeries.crosses(other) | Check whether each geometry and other(elementwise) "spatially cross".
GeoSeries.contains(other) | Check whether each geometry contains other (elementwise).
GeoSeries.intersects(other) | Check whether each geometry intersects other (elementwise).
GeoSeries.within(other) | Check whether each geometry is within other (elementwise).
GeoSeries.distance_sphere(other) | Return minimum distance in meters between two lon/lat points.
GeoSeries.distance(other) | Calculates the minimum 2D Cartesian (planar) distance between each geometry and other.
GeoSeries.hausdorff_distance(other) | Returns the Hausdorff distance between each geometry and other.
GeoSeries.union_aggr | combine all the geometries into one
GeoSeries.envelope_aggr() | Compute the double-precision minimum bounding box geometry for the union of all geometries.
Pre-processing functions
arctern.nearest_location_on_road(roads, points) | Compute the location on roads closest to each point in points, The points passed do not need to be part of a continuous path.
arctern.nearest_road(roads, points) | Compute the closest road for each point in points, The points passed do not need to be part of a continuous path.
arctern.near_road(roads, points[, distance]) | Check if there is a road within distance meters of each point.
arctern.within_which(left, right) | For each geometry in left, search geometries that satisfy "within" relationship in right