Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

momepy.get_network_id doesnt seem to work. #514

Closed
FrancisAndorful opened this issue Oct 6, 2023 · 2 comments
Closed

momepy.get_network_id doesnt seem to work. #514

FrancisAndorful opened this issue Oct 6, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@FrancisAndorful
Copy link

Describe the problem

When i use the momepy.get_network_id function, i get errors with the nID. Code: guat_POI['nID'] = momepy.get_network_id(guat_POI, guat_Road, 'nID').
trying to defined a network id so i can calculate the Reached index. Anything im doing wrong or another better way to do it?

Steps to reproduce

'''
import geopandas as gpd
import momepy

Load the datasets

guat_POI = gpd.read_file('/home/francis-andorful/MissingTagModel/StreetMopology/GuatemalaPOIs.geojson').to_crs(epsg=32615)
guat_Road = gpd.read_file('/home/francis-andorful/MissingTagModel/StreetMopology/GuatemalaRoads.geojson').to_crs(epsg=32615)
'''

Versions of your packages

'''
momepy = 0.60
Geopandas = 0.12.2

Your operating system

Ubuntu 20.04

Additional context

No response

@FrancisAndorful FrancisAndorful added the bug Something isn't working label Oct 6, 2023
@martinfleis
Copy link
Member

Can you provide full traceback?

@FrancisAndorful
Copy link
Author

Ah figured the issue now, the unique id column on the street dataset was duplicated. I tried creating a unique_id on the street gdf and that was what i was using but after removing and using the default OBJECTID in the gdf, it works. Apologies for the worry. my bad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants