Skip to content

doesn't work on geopandas dataframe #1

@Daniel-Trung-Nguyen

Description

@Daniel-Trung-Nguyen

I am running this example and nothing showed up.
shape file is here:

from geosample import QuadTree
import geopandas as gpd
cea_file = 'BTHD_CEAs_cleaned2.shp'
samples = gpd.read_file(cea_file)
qt = QuadTree(samples.iloc[0:1])
# Split until the quadrants are less than 5,000 meters
qt.split_recursive(max_length=5000)
# Get the actual quadrant length
# qt.qlen
# Get the quadrants as a GeoDataFrame
df = qt.to_frame()
# Get 5 random points using the Generalized Random Tessellation Stratified (GRTS) method
dfs = qt.sample(n=5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions