Skip to content

Commit

Permalink
Fix connect_points_as_line bug (#979)
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs authored Nov 16, 2024
1 parent 979400d commit 142cb07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions leafmap/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -15042,7 +15042,7 @@ def download_nlcd(
download_file(year_url, filepath, quiet=quiet, **kwargs)


def connect_points_as_lines(
def connect_points_as_line(
gdf: "GeoDataFrame",
sort_column: Optional[str] = None,
crs: str = "EPSG:4326",
Expand All @@ -15068,8 +15068,8 @@ def connect_points_as_lines(
based on the single_line parameter, with the specified CRS.

Example:
>>> line_gdf = connect_points_as_lines(gdf, 'timestamp', crs="EPSG:3857", single_line=True)
>>> line_gdf = connect_points_as_lines(gdf, single_line=False) # Uses index and defaults to EPSG:4326
>>> line_gdf = connect_points_as_line(gdf, 'timestamp', crs="EPSG:3857", single_line=True)
>>> line_gdf = connect_points_as_line(gdf, single_line=False) # Uses index and defaults to EPSG:4326
"""
from shapely.geometry import LineString
import geopandas as gpd
Expand Down

0 comments on commit 142cb07

Please sign in to comment.