pysal / spaghetti

SPAtial GrapHs: nETworks, Topology, & Inference
http://pysal.org/spaghetti/
BSD 3-Clause "New" or "Revised" License
260 stars 69 forks source link

Problems creating spaghetti.Network #773

Open samueltoro7 opened 2 days ago

samueltoro7 commented 2 days ago

I have problems creating a Network from a shpfile. Despite I can create ntw with other files, this process is not working. It is strange since the formats of the data are really similar, for not saying the same.

The problem is with the self.contiguityweights function; however I checked the connectivity of the shp using weights.Queen from libpysal and it looks connected.

This is the error I get and a visualization of the file

image

installed spaghetti-1.7.6

Pipe2035.geojsonl.json

jGaboardi commented 1 day ago

Thanks for the report!

  1. Please provide a copy-pasted full traceback (not truncated and not an image).
  2. You stated that you were able to create the network from another file format? Why not simply stick with that other format?
  3. You mentioned you are having trouble with .shp format, but the data you posted here is geojsonl.
  4. What have you done to try to troubleshoot? (e.g. investigating where is actually this is happening in the network)
  5. In the future, please open Issues from the Bug report template and fill in all information there to make it easier to help.