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

Network analysis graph empty #20160

Closed
qgib opened this issue Jan 5, 2015 · 3 comments
Closed

Network analysis graph empty #20160

qgib opened this issue Jan 5, 2015 · 3 comments
Labels
API API improvement only, no visible user interface changes Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority

Comments

@qgib
Copy link
Contributor

qgib commented Jan 5, 2015

Author Name: Jos Ferraro (Jos Ferraro)
Original Redmine Issue: 11952
Affected QGIS version: 2.6.0
Redmine category:analysis_library


When building a graph using the network analysis library, I get (depending on the shapefile) a empty graph (no nodes or edges), even when there are features on the layer.
I attach two files, that should be identical as seen from the network analysis library, but they produce widely different results. For example, run:

layer = iface.activeLayer()
director = QgsLineVectorLayerDirector( layer, -1, '', '', '', 3 )
properter = QgsDistanceArcProperter()
director.addProperter( properter )
builder = QgsGraphBuilder( layer.crs() )
tiedPoints  = director.makeGraph( builder, [] )
graph = builder.graph()
vn = graph.vertexCount()
print(u"the graph has"+str(vn)+u" points")

on both layers(of the attached files) and one shall see that on e graph has 5 points(as expected) and the other has 0.


@qgib
Copy link
Contributor Author

qgib commented Jun 3, 2015

Author Name: Jürgen Fischer (@jef-n)


  • category_id was configured as 113

@qgib
Copy link
Contributor Author

qgib commented Jun 23, 2016

Author Name: Alexander Bruy (@alexbruy)


Fixed in changeset "904dc216251d183305ba1c5dc6c846be10a879db".


  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Jan 2, 2017

Author Name: Giovanni Manghi (@gioman)


  • category_id was changed from 113 to Analysis library

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority API API improvement only, no visible user interface changes labels May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API API improvement only, no visible user interface changes Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority
Projects
None yet
Development

No branches or pull requests

1 participant