G-code

G-code (Laser Engraving / CNC)

Open Beta
.gcode · text/x-gcode

Exportera kartdata från OpenStreetMap som G-code för lasergravyr och CNC-fräsning. Skapa fysiska kartor på trä, metall, akryl och andra material med lasergravörer och CNC-fräsar.

Exportera G-code nu ✨ Öppen beta — gratis, inga begränsningar

Viktiga funktioner

Optimerade verktygsbanor för lasergravyr
Hastighets- och effektinställningar för laser
Stöd för firmware GRBL och Marlin
Separata lager för bearbetning i flera pass
Example G-code export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

Om formatet G-code

G-code is the control language of numerically controlled machines (ISO 6983, also known as RS-274): a sequence of commands saying "move there", "turn the tool on", "run at this feed rate". Laser engravers, milling machines and plotters speak it, and the GRBL and Marlin firmwares understand it directly.

A map in G-code is not an image but a set of toolpaths. Every OpenStreetMap line becomes a tool path, and the machine repeats it on wood, plywood, acrylic, leather or anodized aluminium. That is how people make city plan panels, gift maps and relief models.

The file is plain text you can open in a text editor. First comes a header with the job parameters, then the map layers one after another, each with its own comment so the operator can skip a pass or reorder it. The commands are standard: G90 for absolute coordinates, G21 for millimeters, G0 for a rapid move, G1 for a working move, M3 and M5 to turn the tool on and off.

The geometry is fitted into the work area with margins along the edges, 300x300 mm by default, and the scale is chosen automatically so that the map fits entirely and keeps its proportions. Power is set per layer: roads run at full, buildings weaker, green areas very weak — which gives different depths on the material.

Vilket program öppnar G-code-filer

Följande program och applikationer kan öppna, redigera och arbeta med G-code (Laser Engraving / CNC)-filer (.gcode) som exporterats från OSM2CDR:

💻LightBurn 💻LaserGRBL 💻Fusion 360 💻LinuxCNC 💻Mach3

Format specifications

Vem använder G-code-kartor

🏗
Lasergravyr av kartor på trä
A city plan cut on plywood or wood — the road lines become relief.
💻
CNC-fräsning av topografiska kartor
Contours and boundaries as cutter paths for a 3D model of the territory.
📊
Dekorativ kartväggkonst
Wall panels with a district map: pure vector with no raster artifacts.
🎨
Personliga kartpresenter
A map of your home town or a meeting place as a personal handmade gift.

Så exporterar du G-code

1
Välj område
Rita en rektangel eller polygon på den interaktiva kartan på osm2cdr.ru
2
Välj G-code
Välj G-code (Laser Engraving / CNC) från listan med 127 tillgängliga exportformat
3
Exportera
Klicka på Exportera och få din .gcode-fil på 1–5 minuter
4
Ladda ner
Ladda ner den färdiga G-code-filen och öppna den i LightBurn

Så öppnar du filen efter exporten

Populära kartor i G-code

Free

Hämta kartexporter i G-code (Laser Engraving / CNC)

Ladda ner professionella G-code-kartor från OpenStreetMap. Direktgenerering, valfritt område.

Gratis / export
Exportera G-code nu →

Vanliga frågor

Vilka lasergravyrmaskiner stöds?
Kan jag använda detta för CNC-fräsning?
Vilka material kan graveras?
What work area is the file calculated for?
Are all the layers processed the same way?
What should I do before the first run?

Relaterade format

Ofta exporterade tillsammans

Related Articles