G-code

G-code (Laser Engraving / CNC)

Open Beta
.gcode · text/x-gcode

Eksporter kortdata fra OpenStreetMap som G-code til lasergravering og CNC-fræsning. Skab fysiske kort på træ, metal, akryl og andre materialer ved hjælp af lasergravører og CNC-fræsere.

Eksportér G-code nu ✨ Open Beta — gratis, ingen begrænsninger

Vigtigste funktioner

Optimerede værktøjsbaner til lasergravering
Hastigheds- og effektindstillinger til laser
Understøttelse af GRBL- og Marlin-firmware
Separate lag til behandling i flere gennemløb
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.

Hvilket program åbner G-code-filer

Følgende programmer og applikationer kan åbne, redigere og arbejde med G-code (Laser Engraving / CNC)-filer (.gcode), der er eksporteret fra OSM2CDR:

💻LightBurn 💻LaserGRBL 💻Fusion 360 💻LinuxCNC 💻Mach3

Format specifications

Hvem bruger G-code-kort

🏗
Lasergravering af kort i træ
A city plan cut on plywood or wood — the road lines become relief.
💻
CNC-fræsning af topografiske kort
Contours and boundaries as cutter paths for a 3D model of the territory.
📊
Dekorativ kortkunst til væggen
Wall panels with a district map: pure vector with no raster artifacts.
🎨
Personlige kortgaver
A map of your home town or a meeting place as a personal handmade gift.

Sådan eksporterer du G-code

1
Vælg område
Tegn et rektangel eller en polygon på det interaktive kort på osm2cdr.ru
2
Vælg G-code
Vælg G-code (Laser Engraving / CNC) fra listen over 127 tilgængelige eksportformater
3
Eksportér
Klik på Eksportér, og modtag din .gcode-fil på 1-5 minutter
4
Download
Download den færdige G-code-fil, og åbn den i LightBurn

Sådan åbner du filen efter eksporten

Populære kort i G-code

Free

Få korteksport i G-code (Laser Engraving / CNC)

Download professionelle G-code-kort fra OpenStreetMap. Øjeblikkelig generering, ethvert område.

Gratis / eksport
Eksportér G-code nu →

Ofte stillede spørgsmål

Hvilke lasergravører understøttes?
Kan jeg bruge dette til CNC-fræsning?
Hvilke materialer kan graveres?
What work area is the file calculated for?
Are all the layers processed the same way?
What should I do before the first run?

Relaterede formater

Ofte eksporteret sammen

Related Articles