Category : shapely

I have a dataframe, which is a spatial data with coordinates and multiple other entries. df.columns=[‘longitude’,’latitude’,….,’data’] If I have the coordinates of a line profile, profile=[(x1,y1),(x2,y2)] and consider the profile have a custom width (5 km), How to extract the data rows in the dataframe which falls inside this profile? (Is there a particular function ..

Read more

I’ve been using Python, Shapely, Numpy and Geopandas to generate a dot density map. The dot density map points have different colors according to ethnicity, so it allows for understanding overall city demographics. I’ve been using some code similar to the function found in this answer to generate points that fall within a polygon. The ..

Read more