Comments (8)
I uncommented a line in the script and was able to launch the UI, but it was blank except for the three lines in blue. No routes are drawn.
My changes to the script: From:
14 if [ "x$CLASS" = "x" ]; then
15 # CLASS=com.graphhopper.ui.MiniGraphUI
16 CLASS=com.graphhopper.reader.OSMReader
17 fi
To:
14 if [ "x$CLASS" = "x" ]; then
15 CLASS=com.graphhopper.ui.MiniGraphUI
16 # CLASS=com.graphhopper.reader.OSMReader
17 fi
Output:
$ ./run.sh reunion.osm
using java 1.7.0_09 from
## using existing osm file reunion.osm
## existing jar found target/graphhopper-0.1-SNAPSHOT-jar-with-dependencies.jar
## using existing graph at reunion-gh
## now running com.graphhopper.ui.MiniGraphUI. java opts=-XX:PermSize=20m -XX:MaxPermSize=20m -Xmx1000m -Xms1000m
2012-12-04 15:39:55,716 [main] INFO com.graphhopper.reader.OSMReader - using GraphStorage|RAMDirectory|1, memory:totalMB:958, usedMB:5
2012-12-04 15:39:55,811 [main] INFO com.graphhopper.reader.OSMReader - graph edges:225015(8), nodes:217577(8), bounds:55.21715518572528,55.83389284090458,-21.38761124881233,0.0
2012-12-04 15:39:55,811 [main] INFO com.graphhopper.ui.MiniGraphUI - locations:217577, debug:false
mainResized:1200 700
path 76843->76843
nothing found 5
mainResized:1208 701
path 76843->76843
nothing found 5
from graphhopper.
the problem is that geofabrik changed their URLs ... I'll fix in a minute
from graphhopper.
be sure you remove the empty unterfranken-gh folder before you pull and retry
from graphhopper.
After installing curl, I was able to run the script for unterfranken. (The wiki should probably specify that curl is required.)
However, I think you should update your wiki to specify that you have to uncomment the following commented line in order to launch the UI (the tests are re-run if you just run the same command):
14 if [ "x$CLASS" = "x" ]; then
15 # CLASS=com.graphhopper.ui.MiniGraphUI
16 CLASS=com.graphhopper.reader.OSMReader
17 fi
Unfortunately, the UI is still completely white aside from the three lines in blue. No routes are drawn.
Thanks for your help!
from graphhopper.
Oh, I moved the wget call to curl to make it working on iOS will think about a better fix.
if the UI stays empty => what do you see in the logs? is a proper graph with some nodes loaded?
try zooming out via mouse wheel as the mini UI still has sometimes problems with the correct bounding box. btw: better use the graphhopper-web project to get better maps and not only roads. the included mini ui is only intented for debugging purposes.
from graphhopper.
btw: if you like tweaking bash scripts I would really like to get a better run.sh and would like to accept pull requests ... some default configs are fetched from the config.properties file (e.g. to disable test run etc)
from graphhopper.
Zooming out did the trick!
I'll check out graphhopper-web.
I'll keep you updated if I find some improvements in run.sh.
Thanks for your help!
from graphhopper.
let me know if you still have trouble with something. should be all fixed now (see my commit message). now one needs to execute the script via "./run.sh unterfranken.osm ui"
from graphhopper.
Related Issues (20)
- Pedestrian street with vehicles allowed not routable by car profile HOT 20
- Setting a EncodedValueFactory fails if the EnumEncodedValue class is not within `com.graphhopper.routing.ev` package
- Could not create weighting for profile: 'truck' HOT 1
- CarAverageSpeedParser should use estimated max speed HOT 1
- Implementing railway route planning based on version 7.0 HOT 2
- 8.0 Set a No-Go Zone HOT 1
- Incorrect handling of turn restrictions sharing the same via-way HOT 18
- Motorcycle profile speed section is ignored HOT 10
- Problem when using speed limit estimation and turn restrictions
- incorrect leg_distance entries if two stops are identical
- foot with turn restrictions leads to NPE for CH preparation
- Refactoring: Introduce a FSM for OSM file parsing
- new capacity has to be strictly positive with custom encoder for "piste" ways HOT 4
- Custom vehicle doesn't work after update to 8.0 HOT 5
- Wrong exit number in a roundabout if a waypoint is inside HOT 3
- Add crossing encoded values for accessible pedestrian routing. HOT 2
- Failed Import - SRTM elevation - There was an issue looking up the coordinates for - Could not parse OSM file HOT 2
- Sorting the graph is currently not supported in the presence of turn costs HOT 1
- total distance seems incorrect for alternative route HOT 1
- max_slope should be able to get negative HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphhopper.