rovaniemi / osm-graph-parser Goto Github PK
View Code? Open in Web Editor NEWJava program that parses OSM XML files into a json graph representation.
License: GNU General Public License v3.0
Java program that parses OSM XML files into a json graph representation.
License: GNU General Public License v3.0
From the documentation, osm-graph-parser currently just reads all .osm files in the subdirectory map.
How about instead having the names of the .osm files as command line parameters?
This would allow more flexible use, and give osm-graph-parser a more familiar (since most tools reading some files and processing them work that way) interface for specifiying input files.
Philipp
From the documentation and source code, osm-graph-parser currently just imports all ways tagged as some type of highway.
I suggest to make osm-graph-parser more flexible, by allowing to specifying inclusion and exclusion lists of keys and key-value pairs as command line arguments
Use cases might be:
--include-ways highway for the current behaviour.
--include-ways highway --exclude-ways access=no,access=private for all highways accessible to the public
--include-ways railway --exclude-ways railway=abandoned to get all railway tracks
Philipp
e.g. --output graph.json
osm-graph-parser outputs some json graph representation.
Is this compatible with any of the many more-or-less established existing standards for encoding graphs in json? If not, would it make sense to use such a more-widely use format?
Philipp
P.S.: Probably the most widely known is http://jsongraphformat.info/, which also has links to 4 other formats ("Similar Projects") on their start page. A 6th would be the Netflix one: http://netflix.github.io/falcor/documentation/jsongraph.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.