BridgesUNCC / bridges-cxx

C++ client library for Bridges
http://bridgesuncc.github.io
2 stars 5 forks source link

Possible min threshold for osm data points #99

Open jstrahler opened 5 years ago

jstrahler commented 5 years ago

When trying to display osm data, small data sets do not display on bridges

Note: change user and id to whatever yours is failure case command: ./osm 5 jstrahler 209382050691 35.2971 -80.7475 35.3162 -80.7211

success case command: ./osm 6 jstrahler 209382050691 35.1971 -80.8475 35.3162 -80.7211

jstrahler commented 5 years ago

osm.zip

krs-world commented 5 years ago

Jay, this is a binary.. can you provide the source code for this so I can test?

jstrahler commented 5 years ago

osm.cpp.zip

krs-world commented 5 years ago

Ok, for very small graphs (right now set at 2000 nodes), you need to make the following call for OSM data: graph.setLargeVisualization(true);

This forces it to render using webgl. Force directed rendering is not supported for OSM graphs, I believe.

krs-world commented 5 years ago

Oh, I tested it with this additional call and it works fine.

esaule commented 5 years ago

Note that I don't know really why the regular visualization does not work for these grpahs.

Should we include the graph.setvisualization(true) inside the function that build the graph from data?

Erik

-- Dr Erik Saule Associate Professor at University of North Carolina at Charlotte (UNCC) tel: +1 (704) 687-8580 web: http://webpages.uncc.edu/~esaule/ == Perform academic literature search on http://theadvisor.osu.edu/