I downloaded a .osm.pbf file at http://download.geofabrik.de/europe.html.
I need to convert the data (streets etc) to Graphs so I can calculate routes. I believe these files already work with Nodes but I have trouble reading the data.
I tried using http://www.osmsharp.com/ but I don't really understand the software.
Can someone give me links to a proper library or give me a few tips in how to access the data from the OSM. Some pseudo / example code is fine aswell.
I'm new to openstreetmaps and this kind of parsing, so I'm sorry if this is a rookie question.
If you have questions please do tell!
Thanks!
I suggest to play around with OSM XML first to get an idea about how OSM data works. It is also very helpful to launch an OSM editor (e.g. the browser editor iD or the standalone editor JOSM) to take a look at real OSM data.
Later you can read about the PBF format (it is mainly smaller and faster than OSM XML) and about PBF software support. Use one of the existing libraries, don't try to reinvent the wheel.
Also read about how to calculate a routing graph from OSM data. Also look at routing in the OSM wiki. There is some general information available as well as a list of online and offline routers. If you are stuck you can take a look at their implementations.
Related
I need to deploy a visio visualization programmatically. For the moment I just need to add sticky notes with the attributes: size, position, color, text on it and text alignment, but the solution should be expandable with further shapes in the future. The information about the shapes is stored in google cloud firestore database. I am quite open for any kind of solutions and code language, but if possible it would be great to run google cloud functions, which supports Node.js, Python, and Go, but I also read about supporting .NET, moreover it should be open source if possible.
I am totally not an experienced code developer, thus it would be great if you could provide some code examples. That's what I actually miss in all the documentation I found.
As far as I researched the Visio 2016 SDK would be interesting in this case. But I didn't find close examples as I need. F.e. this link shows how to replace text in a shape, or this link shows how to add a rectangular shape. But the explanation is rare...
I analyzed the visio file itself with master..XML, page..XML etc., but the amount of values is confusing. And this leads me to the question how the SDK will handle this? How can I define master shapes, how do I format them?
Another option would be the Apose.Diagram API, but I am not shure if the sticky note is supported. An example is provided here. Unfortunately it's commercial, but if there is no other option i would go for it.
Thanks for advice!
just as an information about the actual state: i kind of "solved it" with manually manipulating the vsdx. the vsdx is just a compressed zip-file with ending .vsdx. If you rename it to .zip, you will see many xml-files. the file page1.xml is the one important if you just need to place simple shapes without relations to each other.
In the page1.xml there are xml-parts named as , just manipulate & multiplicate these parts.
I didnt try the sdk yet, or an third-party solution like apose.diagram, but for the actual use case of visualizing objects in form of a rectangle its good enough
I have just started looking at some work related with reading a mpeg-ts file. This is my first project with video streaming and my first task is to read the program names from the file.
I am currently looking at FFMpeg and FFProbe and have experience in C# and wanted to know which tool/language I should use to do this?
Or do I need another tool or language?
I have launched TSReader and I can see the PAT section which contains the information.
I've had good luck with NetBeans Java IDE and the ProjectX source code. since ProjectX is designed to transform different formats, it tends to have a lot of descriptive info about the file available on the UI and relatively easy to figure out variable naming in the code as well.
Contrast with other programs, which may be more mysterious in their decoding of the format, because they don't ever display the raw header info and don't have those variables named so clearly in code.
I'm building an Android app that's reads comments from an MS Power Point file.
As i get it ill have to use some API, or build a program in C#.
The problem is that i can't find a way of doing that.
I would like to hear some suggestions or to hear from programmers that accomplish
that, or something similar.
If you can use the power point api that would be the best way however I don't know if that available on android. This is a link to the binary file specification for ppt files.
I’m looking for XML Diff class or library. There are my requirements:
- open source :)
- object model for output (*)
- rather fast (for 4mb XML)
I'm trying to use MS XML Diff and Patch Tools, but I wanna get a list of objects with differences of 2 XML files (instead HTML markup).
UPD: Thanks for all of your responses. I implemented my own solution; it’s not too hard with Linq2Xml :)
UPD2: Sorry guys, but i can't post my solution here now (i actually haven't got it because i have changed my work recently). Also my solution have some specific parts, so it can't suit common problems any way. The main advice is to use Linq2Xml, implement your logic and have fun :)
I did some research on this topic.
Tool or library for comparing xml files
Not quite sure from you post if you are tring to do this in code or not.
But if you are just after a nice programe to view the two documents side by side and see the difreances and make changes to them i would recomend Beyond Compare 3.
The Microsoft XML Diff and Patch tool does give you the list of differences between 2 XML document. The output is an XML document that tells you how to change document #1 into #2.
is there anyone who makes use of the Microsoft Open XML SDK 2.0 for editing Excel Spreadsheet, I edited Open XML documents already by only using XML methods, but as there exists the SDK, does someone know if there are really easy methods for some essential functions? For Example the inserting of content in a cell. Also the Open XML Power Tools (published on codeplex) use mostly XML objects I think.
If you have experience, would you give me an example or a hint where I can find useful examples? I already know the site openxmldeveloper.org but also the workshop videos did not help me at all.
thanks
Sebastian
Sebastian, I have not made use of this API yet, but will be using it soon. It appears there are methods for opening docs, updating/inserting into cells. Please check out MSDN. Also, there is an example at: http://msdn.microsoft.com/en-us/library/cc861607(office.14).aspx
Good Luck!