01 AllStreets - getting Openstreetmap streets
[Je kan deze stap overslaan en manueel in stap2 de straten tekenen]
De eerste stap is om de verzameling van straten op te halen. Dit kan op drie manieren:
[gemini translation:]
[You can skip this stap and draw the streets manually in step 2]
METHODE 1: Teken een veelhoek en click op "Fetch Data from OpenStreetMap"



De data worden opgehaald. Als je in de console een foutenboodschap ziet, probeer dan opnieuw.
De opgehaalde straten lopen vaak verder door, buiten de veelhoek. Deze kan je afsnijden door op "Restrict Streets to Polygon" te klikken.
De opgehaalde straten lopen vaak verder door, buiten de veelhoek. Deze kan je afsnijden door op "Restrict Streets to Polygon" te klikken.

Je kan verder verfijnen door een nieuwe veelhoek te tekenen en opnieuw "Restrict Streets to Polygon" te gebruiken.
Tips:
- je kan de data én de veelhoeken bewaren voor later hergebruik
- als je een stad met een ring ophaalt, dan is het sneller om stukken van de ring er af te snijden en later manueel toe te voegen
- op sommige momenten willen de openstreetmap servers door hoge belasting niet mee
Indien tevreden, kijk dan hieronder hoe de overtollige informatie te verwijderen.
METHODE 2: Geef de naam van je stad in, zoals gekend in openstreetmap, en "Fetch Data from OpenStreetMap". Kijk in de console naar eventuele foutenboodschappen.
Gebruik de "Restrict Streets to Polygon" om de selectie verder te verfijnen.
METHODE 3: Ga zelf naar de site https://overpass-turbo.eu/ en selecteer een gebied/stad/...
Doe dit door een gebied te tekenen
[out:json][timeout:25];
way["highway"]({{bbox}});
(._;>;);
out;
of een query in te tikken als
[out:json][timeout:25];
(area[name="Leuven"][admin_level=9];)->.a;
way["highway"](area.a);
(._;>;);
out;
(vergelijk met admin_level=8)
Exporteer dan naar een "geoJSON" file die je kan importeren in het programma.
Gebruik de "Restrict Streets to Polygon" om de selectie verder te verfijnen.
OVERTOLLIGE INFORMATIE VERWIJDEREN:
Klik op "Auto Clean Data & simplify" om de data te reduceren tot "straten met een naam".
Onder de hoofding "Manual cleaning" vind je drie knoppen die hetzelfde manueel doen:
- Remove non-street objects: openstreetmap bevat ook informatie over verkeerslichten, fietsenstallingen,...
- Remove unnamed streets: er zijn heel veel wegeltjes die geen straat zijn. De eenvoudigste manier om die te verwijderen is enkel de namen met een straatnaam te behouden. Indien je een route in een bos wilt uittekenen, dan gebruik je dit beter niet
- Remove polygons: pleinen zijn in openstreetmap getekend als gesloten veelhoeken. Die hebben vaak wel een naam, maar zijn geen straat.
VOLGENDE STAP: bewaar alles zorgvuldig en klik dan op "NEXT STEP: construct graph" of ga zelf naar het volgende blok.
[gemini translation:]
[You can skip this stap and draw the streets manually in step 2]
The first step is to retrieve the collection of streets. This can be done in three ways:
METHOD 1: Draw a polygon and click on "Fetch Data from OpenStreetMap"



The data is being retrieved. If you see an error message in the console, please try again.
The retrieved streets often extend further, outside of the polygon. You can cut these off by clicking "Restrict Streets to Polygon".
The retrieved streets often extend further, outside of the polygon. You can cut these off by clicking "Restrict Streets to Polygon".

You can further refine the selection by drawing a new polygon and using "Restrict Streets to Polygon" again.
Tips:
- you can save the data and the polygons for later reuse
- if you retrieve a city with a ring road, it is faster to cut off parts of the ring and add them manually later
- at certain times, OpenStreetMap servers may be unresponsive due to high load
If satisfied, see below on how to remove redundant information.
METHOD 2: Enter the name of your city, as known in OpenStreetMap, and click "Fetch Data from OpenStreetMap". Check the console for any error messages.
Use "Restrict Streets to Polygon" to further refine the selection.
METHOD 3: Go to the site https://overpass-turbo.eu/ yourself and select an area/city/...
Do this by drawing an area
[out:json][timeout:25];
way["highway"]({{bbox}});
(._;>;);
out;
or by typing a query such as:
[out:json][timeout:25];
(area[name="Leuven"][admin_level=9];)->.a;
way["highway"](area.a);
(._;>;);
out;
(compare with admin_level=8)
Then export to a "geoJSON" file that you can import into the program.
Use "Restrict Streets to Polygon" to further refine the selection.
REMOVING REDUNDANT INFORMATION:
Click on "Auto Clean Data & simplify" to reduce the data to "streets with a name".
Under the heading "Manual cleaning" you will find three buttons that do the same manually:
- Remove non-street objects: OpenStreetMap also contains information about traffic lights, bicycle parking, etc.
- Remove unnamed streets: there are many small paths that are not streets. The easiest way to remove them is to keep only the entries with a street name. If you want to map out a route in a forest, it's better not to use this.
- Remove polygons: squares are drawn in OpenStreetMap as closed polygons. These often have a name but are not streets.
NEXT STEP: save everything carefully and click on "NEXT STEP: construct graph" or proceed to the next block yourself.
Comments
Post a Comment