<div dir="ltr"><div class="gmail_extra"><div>Hi,<br><br></div>There is a library for C#:<br><br><a href="https://github.com/OsmSharp/OsmSharp">https://github.com/OsmSharp/OsmSharp</a><br><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Met vriendelijke groeten,<br>Best regards,<br><br>Ben Abelshausen</div></div></div>
<br><div class="gmail_quote">On Wed, Jun 17, 2015 at 10:04 PM, Paul Norman <span dir="ltr"><<a href="mailto:penorman@mac.com" target="_blank">penorman@mac.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 6/17/2015 8:54 AM, iadh aboud wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm working on a project an i need to use extracts from oms.<br>
After downloading the extract, how can i use it ? (I'm using C#)<br>
I found several APIs but they are poorly documented.<br>
Any help would by more than welcome.<br>
</blockquote>
<br></div></div>
The short answer: it depends.<br>
<br>
You can either<br>
<br>
1. Load the extract into a database. This is often the best option, using a tool like osm2pgsql, imposm, or others, which will allow you to render and do GIS analysis on it.<br>
<br>
2. Use some other existing conversion tool or take apart one. e.g. a osm to shapefile converter.<br>
<br>
3. Use a library like libosmium to parse the data yourself. libosmium is C++ and I'm not aware of C# options.<br>
<br>
4. Write your own parser.<br>
<br>
It really depends on what you're trying to do. As you go down the list you require increasing knowledge of how OSM data is tagged, the data model, and file formats.<br>
<br>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org" target="_blank">dev@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/dev" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/dev</a><br>
</blockquote></div><br></div></div>