I am new to arangodb. I am going to use arangodb to perform algorithms on a road network.
I found this https://github.com/arangodb-helper/osm-2-graph?files=1
I tried to import the edges file, vertices file into arangodb using arangoimp (in json format).
But I could see only single node always. It doesn't get expand after clicking expand button. Full network view only shows nodes, no edges.
Could you give correct steps with commands? Seems I have trapped somewhere.
I used Monaco osm map. Using arangodb 3.2 version
Edit 1:
my commands as follows
arangoimp --file V-CA.json --collection vertices --create-collection true --type json
> created: 1896 warnings/errors: 0 updated/replaced: 0
> ignored: 0
arangoimp --file E-CA.json --collection edges --create-collection true --type json --create-collection-type edge
> created: 256 warnings/errors: 0 updated/replaced: 0 ignored:
> 0
OSM to graph file conversion
python convert-pbf.py monaco.osm
Edit 2
I observed same results after using 3.3.7
I saw it shows
> 250 nodes 0 0 edges
at he botton after "Load full graph". But at the import it shows 1896 vertices. Is it showing part of vertices only?
The graph viewer has a default limit of 250 nodes. This can be adjusted in the properties panel (open it with a click on the hamburger icon) in the section Graph in the field Limit:
Set it to 2000, hit return and load the full graph and wait a bit.
Related
I'd like to export the boundaries (perimeter) of a place. For instance, consider the boundaries of the University of Illinois at Chicago at this link.
I see it's pretty easy to export an OSM file. But how can I export only that red line (perimeter)?
I don't need a script to do that, even a manual solution would be fine. I tried to navigate the UI for quite a time, but I couldn't find a way.
My ultimate goal is to convert the boundaries to a GeoJson.
You can use the Overpass API for this.
Go to https://overpass-turbo.eu and enter the following script:
[out:json][timeout:25];
way(210649421);
out geom;
The way-Id was taken from your link.
Then click on Run.
Afterwards, you can switch to the Data tab in the top right and copy the JSON for this area.
Alternatively, you can also use Export -> "raw data directly from Overpass API" to directly download a JSON payload, bypassing the browser output. For GeoJSON output, use Export -> "download/copy as GeoJSON" instead.
I am using one simulator and wanted to add my own maps. So I looked into this website https://mygeodata.cloud/ which can provide me with the wkt files of maps.
The problem is I am not able to get these to work, can someone provide some details on how to add a town's map with maybe bus routes etc to ONE Simulator?
The error I'm getting is "SimMap is not fully connected. Only 1057 out of 1113 map nodes can be reached from Nt2#(-1.15,52.95). E.g. Nt2#(-1.14,52.95) can't be reached"
The default roads.wtk files have linestrings like this
LINESTRING (2551683.6644129306 6674375.029443317, 2551528.069902012
6674337.650863852)
While my linestrings of Nottingham,England are this
LINESTRING (-1.1525824 52.9518235,-1.1524917 52.9517354,-1.1519975 >
52.9511418,-1.1517313 52.9508255)
It seems that your input map has around 50 nodes that can not be reached from other map nodes. The ONE Simulator needs to have the map fully connected (i.e., all nodes need to be reachable). Check out the map source (e.g., using OpenJUMP) and look for nodes or map segments that are not connected to each other and delete them or connect them with new line segments. The error message gives you a hint where to look at.
For an example on how to add bus routes, check out the Helsinki map and the tram/bus route files: https://github.com/akeranen/the-one/tree/master/data
that is because there is a broken node there should be a check again for the existing map input because some moves do not want any broken lines there can make messages from open strapmaps then edit using open jump
So for 2 points:
O-O
for 3 poins:
O
/ \
O O
etc.
For example I have 2 points with the same location. They overlap. I want to offset those markers and connect them with lines like in the image below:
Here I've found something but don't know if it applies here how to customise cluster icon in mapbox-gl?
I found something similar for carto https://carto.com/blog/stacking-chips-a-map-hack/
#rofrol, basically you can use a technique called "Spiderifier" to do it.
Here is the library for using in all framework
https://www.npmjs.com/package/mapboxgl-spiderifier
If you're using ReactJS, here is another solution
https://www.npmjs.com/package/react-mapbox-gl-spiderifier
I want to make a network graph which shows the distribution of our documents in our folder structure.
I have the nodefile, edgefile and gephi graph file in this location:
https://1drv.ms/f/s!AuVfRBdVHkO7hgs5K9r9f7jBBAUH
What I do is:
Run the algorithm ForceAtlas2 with scaling 10-20, dissuade hub marked and prevent overlap marked, all other standard setting.
What I get is a graph with groups radial/spherical distributed. However, what I want is a tree directed network graph.
Anyone know how I can adjust Gephi to make this?
Thanks!
I just found a solution.
I tested the file format as shown on the Yed site "import excel file" page
http://yed.yworks.com/support/manual/import_excel.html
This gave me the Yed import dialog (took a life time to figure out that it's a pop up menu and not selectable through the standard menu)
Anyway, it worked and I've adjusted the test files with the data prepared for the Gehpi. This was pretty easy, I could used the source target ID's etc. Just copy paste.
I load it into Yed and used some directed and radial clustering algorithms on it. Works fine!
Below you can find the excel node/edge file used to import in Yed and the graph file you can open with Yed to see the final radial result.
https://1drv.ms/f/s!AuVfRBdVHkO7hg6DExK_eVkm5_mR
Only thing to figure out is how to combine the weight (which represents the number of documents) with the node size.
Unfortunately, as of version 0.9.0, Gephi no longer supports hierarchical graphs. Maybe try using a previous version?
Other alternatives involve more complex software, such as Graphviz, but you need a .dot file instead of your .csv. I looked all over, but could not find an easy-to-use csv to dot converter.
You could try looking at d3-hierarchy, a node.js program, but then again you need to use the not-so-user-friendly npm. If you look at the link, it looks like it can produce the kind of diagram you're looking for.
I am trying to import a shapefile to Postgres using the following:
shp2pgsql c:\location\water_areas.shp water > water.sql
I am receiving the following message:
c:\location\water_areas.shp: shape (.shp) or index file (.shx) can not be opened, will just import attribute data.
Unfortunately I need more than just attribute data. I need the geometry column. Please help. Why won't it open the shapefile for the conversion.
Without any extra information, there's no way to answer your question. The error message is indicating the app is not finding one or more of the file components. Try running the app inside the 'location' directory with a relative path and see if that changes.