Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Import OSM (OpenStreetMap) data from XML files or the OSM API
ResourceFunction["OSMImport"][path] imports the OSM XML file at path. | |
ResourceFunction["OSMImport"][GeoBoundsRegion[…]] imports OSM data within the specified region. | |
ResourceFunction["OSMImport"][entity] imports OSM data within the bounding box of entity entity. |
Import OSM data from a region:
| In[1]:= |
Visualize the ways:
| In[2]:= |
| Out[2]= | ![]() |
Use the "Tags" field to select only rivers:
| In[3]:= |
| In[4]:= |
| Out[4]= |
| In[5]:= | ![]() |
| Out[5]= | ![]() |
Select only power lines:
| In[6]:= | ![]() |
| Out[6]= | ![]() |
Select only railways:
| In[7]:= | ![]() |
| Out[7]= | ![]() |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License