<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Charlotte M on Medium]]></title>
        <description><![CDATA[Stories by Charlotte M on Medium]]></description>
        <link>https://medium.com/@sinclarius?source=rss-57c826210d0d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OtTnyiQ-vD3rW9usNXVdRg.jpeg</url>
            <title>Stories by Charlotte M on Medium</title>
            <link>https://medium.com/@sinclarius?source=rss-57c826210d0d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 10:47:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sinclarius/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Let’s make some vector maps!]]></title>
            <link>https://medium.com/@sinclarius/lets-make-some-vector-maps-792481d5f328?source=rss-57c826210d0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/792481d5f328</guid>
            <category><![CDATA[mapshaper]]></category>
            <category><![CDATA[maps]]></category>
            <category><![CDATA[cartography]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[overpass-turbo]]></category>
            <dc:creator><![CDATA[Charlotte M]]></dc:creator>
            <pubDate>Sat, 09 Sep 2017 22:47:59 GMT</pubDate>
            <atom:updated>2019-08-11T14:16:36.215Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>July 2018 Update: </em></strong><em><br>A previous version of this article included a workflow that relied heavily on downloads from Mapzen Metro Extracts. Since the </em><a href="https://mapzen.com/blog/shutdown/"><em>Mapzen service shut down in January</em></a><em>, I have updated this article to remove that option.</em></p><p>This tutorial provides a brief overview of how to quickly and easily download OpenStreetMap (OSM) data and convert it into a format that can be manipulated in a vector graphics editor like Adobe Illustrator or Inkscape. This walkthrough doesn’t require access to standard GIS software, although a number of these conversion processes can also be done in <a href="http://www.qgis.org/en/site/">QGIS</a>, ArcGIS, or by using command-line vector utility tools like <a href="http://www.gdal.org/index.html">GDAL</a>.</p><h3>OSM and Overpass Turbo</h3><h4><strong>Step 1: Download Geospatial Data</strong></h4><p>The first step is to download the data you would like to use in Illustrator. This walkthrough does not use a desktop GIS client. If you prefer to work with QGIS or ArcGIS, all the other file formats will work, as well. This might be useful if you would also like coastline data in addition to waterways.</p><p>While the OpenStreetMap website does have an <a href="https://www.openstreetmap.org/export">export feature</a>, I recommend using a custom Overpass Turbo query to filter and download specific features, as needed. OSM data, in general, is sorted into point features, line features, and area features. (See <a href="http://wiki.openstreetmap.org/wiki/Map_Features">the OSM Wiki</a> or <a href="https://www.mapbox.com/mapping/">Mapbox’s Guide to Mapping with OpenStreetMap</a> for a more in-depth overview.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*8PifT5Q9DFHVreAX294lxA.png" /><figcaption>The Overpass Turbo interface.</figcaption></figure><p>Navigate to <a href="http://overpass-turbo.eu/">Overpass Turbo</a>. This site features a query input on the left and a map to visualize results on the right. For more information about Overpass Turbo, the OSM Wiki provides <a href="https://wiki.openstreetmap.org/wiki/Overpass_turbo">extensive documentation</a> as well as a <a href="https://wiki.openstreetmap.org/wiki/Overpass_turbo/Wizard">reference guide for the query wizard</a>. To learn more about the map features and tags, please refer to the <a href="https://wiki.openstreetmap.org/wiki/Map_Features">OSM Wiki’s Map Features guide</a>.</p><p>In addition to the query builder, you can also load and save queries from the top menu. There are a number of example queries available, if you are having difficulty with the Overpass QL syntax. For this specific example, I am using the following query to extract only features I am interested in from an area I specify. In this case, I’m looking to download the major roadways, rivers, ponds/lakes, and administrative districts within the Zurich, Switzerland area. Paste the following into the query editor at the left.</p><pre>[out:json][timeout:60];<br>// fetch area to search in<br>{{geocodeArea:Zurich}}-&gt;.searchArea;<br>// gather results<br>(<br>  //query part for admin level, see https://wiki.openstreetmap.org/wiki/Tag:boundary%3Dadministrative#admin_level for specific country reference<br>  relation[&quot;admin_level&quot;=&quot;6&quot;](area.searchArea);<br><br>  // query part for: “highway=primary”<br>  way[&quot;highway&quot;=&quot;primary&quot;](area.searchArea);<br><br>  // query part for: “highway=secondary”<br>  way[&quot;highway&quot;=&quot;secondary&quot;](area.searchArea);<br><br>  // query part for: “highway=motorway”<br>  way[&quot;highway&quot;=&quot;motorway&quot;](area.searchArea);<br><br>  // query part for: “highway=trunk”<br>  way[&quot;highway&quot;=&quot;trunk&quot;](area.searchArea);<br><br>  // query part for: “highway=tertiary”<br>  way[&quot;highway&quot;=&quot;tertiary&quot;](area.searchArea);<br><br>  // query part for: “water”<br>  relation[&quot;natural&quot;=&quot;water&quot;](area.searchArea);<br>  <br>  // query part for: “waterway=river”<br>  way[&quot;waterway&quot;=&quot;river&quot;](area.searchArea);<br>);<br>// print results<br>out body;<br>&gt;;<br>out skel qt;<br><br>{{style: /* this is the MapCSS stylesheet */<br>way<br>{ color:gray; }<br><br>way[highway=motorway]<br>{ color:red; }<br><br>way[highway=trunk]<br>{ color:pink; }<br><br>way[highway=primary]<br>{ color:yellow; }<br><br>way[highway=secondary]<br>{ color:yellow; }<br><br>area<br>{ color:gray; fill-color:DarkGray; }<br><br>area[natural=water]<br>{ color:blue; fill-color:blue; }<br><br>way[waterway=river]<br>{ color:blue; }<br><br>}}</pre><p>I define the <strong>search location</strong> on <strong>line 3</strong>. If there are multiple cities with the same name, you can include additional identifying information. For example, typing {{geocodeArea:Santa Fe}}-&gt;.searchArea; returns the city of <a href="https://en.wikipedia.org/wiki/Santa_Fe,_Argentina">Santa Fe, Argentina</a>. To specify the <a href="https://en.wikipedia.org/wiki/Santa_Fe,_New_Mexico">New Mexico city</a>, input {{geocodeArea:Santa Fe, NM}}-&gt;.searchArea;.</p><p>The first query looks within OSM’s <strong>administrative boundaries</strong> layer to get a polygon of the Zurich city limits. The next 5 requests pull linestring data for different <strong>road types</strong> (primary, secondary, tertiary, trunk and motorway), and the final two look at the city’s bodies of <strong>water </strong>(polygons) and <strong>waterways</strong> (lines). Administrative boundaries are classified differently around the world, so <a href="http://wiki.openstreetmap.org/wiki/Tag:boundary%3Dadministrative">check the OSM Wiki to determine the boundary level you need</a>. (“7” is a fairly standard value for metropolitan boundaries, but can return odd results for mega-cities.)</p><p>Run the query by pressing the “Run” button at the top left corner. You can always save the query and come back to it later with the “Save” button. Also, if you want to download the data layer by layer (as opposed to all at once), you can just delete the lines you don’t need (you can also just comment queries out by adding “//“ before a line). Downloading each layer separately is more difficult on the front-end, but ultimately results in an easier SVG file to work with in Illustrator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*pYKNHLvYqfjiQokFoRpKKw.png" /><figcaption>Zoom to data in Overpass Turbo</figcaption></figure><p>If you get an error message saying “This query returned quite a lot of data,” you can probably hit “continue anyway” — so far, I haven’t found a city that returned more than 20MB of data, and any modern browser should handle that with no trouble. If you can’t see the results, hit the “Zoom to Data” button on the left side of the preview map.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*XEaFv_HYNK5jCVmrKkqxmA.png" /><figcaption>Exporting from Overpass Turbo</figcaption></figure><p>Export the data by selecting “Export” from the top menu, and download as GeoJSON.</p><h4><strong>Step 2: Convert Geospatial Data into Vector Graphic</strong></h4><p>Navigate to Mapshaper at <a href="http://mapshaper.org/">http://mapshaper.org/</a>. This web application allows you to view GeoJSON data (and other geospatial files, including Shapefile, TopoJSON, etc.) and convert it into other formats. All file conversions occur on the client-side, but accessing the site does require an internet connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*koF8sJdQyBvxldvvPNw95Q.png" /></figure><p>If you need to be able to do these file conversions without internet access, you can <a href="https://github.com/mbloch/mapshaper">fork the repository here</a> and follow the installation instructions in the readme.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*G66tYfmrJYerrdJqt7bN4Q.png" /><figcaption>Review specific feature information with the “info” tool.</figcaption></figure><p>Upload the files for the layers you want to convert. If you want to query and preview the data , you can use the info button from the right-side menu and then select any imported feature. Mapshaper uses a layer system to handle multiple file imports — use the drop-down menu at the top center to switch between imported files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*64DzjOCV8xNyP8DvfbHXog.png" /><figcaption>Exporting an SVG from multiple Mapshaper Layers.</figcaption></figure><p>Once you have confirmed that you have all the files you wish to use, select the “Export” button at the top right of the screen. Make sure all the layers are selected, and then check the radio button for “SVG” export. This format can be easily brought into Adobe Illustrator.</p><p>(An alternative site for this file conversion is <a href="http://mapstarter.com/">Mapstarter.com</a>, but this tool currently only allows the conversion of one file at a time.)</p><h4><strong>Step 3: Import into illustrator</strong></h4><p>All the files should now be consolidated into one .svg file from Mapshaper. Take this file and open it in Adobe Illustrator.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1oCys-1K748%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1oCys-1K748&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F1oCys-1K748%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ec9cd433e023706599d3a12aee01f851/href">https://medium.com/media/ec9cd433e023706599d3a12aee01f851/href</a></iframe><h4>Additional Notes</h4><p>This example workflow works with OSM data in GeoJSON format, but the Mapshaper tool can work with geospatial files in a variety of formats. It can even read.zip files! This means that you can use Mapshaper to export vector graphics using data from all sorts of geospatial data providers, including: <a href="http://www.naturalearthdata.com/">Natural Earth Data</a>, the <a href="http://geodata.grid.unep.ch/">United Nations Environment Programme</a>, local GIS data clearinghouses, and many others. Robin Wilson of the University of Southampton put together a massive list of interesting GIS datasets available <a href="http://freegisdata.rtwilson.com/">here at Free GIS Data.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*nF4yD6qWSefaGUbQWIOnlQ.png" /></figure><p>When importing data into Mapshaper, you may need to make some adjustments before exporting to a vector image format. To remove features, open up the console and use the -filter feature to remove extra features. For example, the following OSM export for Tokyo also includes a number of islands off the coast of mainland Japan. To remove the Ogasawara Islands, for example, run either of the following console commands: -filter &#39;FID != &quot;relation/4561990&quot;&#39; or -filter &#39;name != &quot;小笠原村”’.</p><p>You can also adjust <a href="http://proj4.org/index.html">map projections</a> and make a number of other adjustments as needed before export. See <a href="http://simplemaps.com/resources/guide-to-mapshaper">Simplemaps’ Guide to SVG Maps</a> for a more in-depth look at Mapshaper’s projection, filtering, and ID features. You can also type help into the Mapshaper console at any time to get a list of all possible commands.</p><h4>Happy mapping!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=792481d5f328" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>