read_shp() after arcmaps feature to line tool

14 views
Skip to first unread message

zac merritt

unread,
Jul 13, 2016, 12:33:58 PM7/13/16
to pygraphviz-discuss

I have been trying to use networkX to read in an ESRI shapefile that is created by using their feature to line toolbox. I can use read_shp() on each shapefile individually, however after combining the three with the FTL tool i get the error


G = nx.read_shp("D:\Code projects\ZacsWizard\ZacWizard\test shapes\realftl\kent.shp") 

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Anaconda2\envs\arc1040\lib\site-packages\networkx\readwrite\nx_shp.py", line 69, in read_shp
    for lyr in shp:
TypeError: 'NoneType' object is not iterable


I know this has to be an error relating to the new shapefile created. Here is a dropbox link with an archive containing a trail map, that read shape works on, and a feature to line map "smallkent.shp" that read shape doesn not work on

Reply all
Reply to author
Forward
0 new messages