Ralph
Report

Create a city map

Instruction
Citystreets.xcs
Citystreets
.xcs
Application scenario
Laser processing、Inkjet printing、Pen drawing (120min)
Machine & module
xTool P2S
55W
Material used
any
3mm Basswood Plywood
57
630
Information
      How to create a detailed map of the roads of a city with Open Street Map
    
Instruction
1
Step1: Query OpenStreetMap
Preview

Go to https://overpass-turbo.eu/ and type a query to select the streets in a region.

For example:

[out:json];
(
    {{geocodeArea:Amsterdam}};
)->.searchArea;
(
 relation[boundary=administrative]["admin_level"="10"](area.searchArea);
 way["highway"="motorway"(area.searchArea);
);
out body;
>;
out skel qt;

Use the Load button to get more examples of the possibilities of Overpass. For more information about the usage of the Overpass QL language, visit https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL  - if you're not afraid of a steep learning curve :-)

Next, use the Export button to download the query result as a GeoJSON file.
 

2
Step2: Convert GeoJSON to SVG with Mapshaper
Preview
Preview
  • Go to https://mapshaper.org/ and load the GeoJSON file you saved in the previous step.
  • Click on the file name in the middle of the top of the page and make all layers visible by selecting the eye icons.
  • Next, click on the left basemap icon on the right side of the to of the screen to show the map of the region as background. This also takes care of the distorted width/height relation of the map… for now.
  • Use the Export button (top right of the page) to save it as an SVG.
  • Last but not least, make a screenshot of the page, you need it in the next step to get the width/height relation right.
3
Step3: Edit the map in Inkscape
Preview

If you haven't already, download and install Inkscape (https://inkscape.org/).

  • Open the svg in Inkscape.
  • Select all and set the fill color to None and the stroke color to black.

You will probably notice that the height vs width relation of the map is not correct. This is where the screenshot of the map from Mapshaper comes in.

  • Paste the screenshot in Inkscape. It's added as a seperate layer.
  • Lock this layer and set it's transparency to ~30%.
  • Now you can change the height and the width of the svg to the correct values by overlapping the line drawing to the map image on the background.
  • Remove the Mapshaper image when you're done.

Now you can edit the lines to your own liking. You could, for example, make the line with of the city border a bit thicker.

Don't forget to save your work!

4
Step4: Use the SVG
Preview

Now use the SVG anyhow you like!

For example, import the new svg file in XCS and burn it is a piece of wood. Or use a pen plotter to make a nice drawing.

Comments
Remixes
xTool Supplies Used in This Template
xTool P2S
xTool P2S
3mm Basswood Plywood
3mm Basswood Plywood