G-code

G-code (Laser Engraving / CNC)

Open Beta
.gcode · text/x-gcode

Експорт на данни от картата OpenStreetMap като G-code за лазерно гравиране и ЦПУ фрезоване. Създавайте физически карти върху дърво, метал, акрил и други материали с лазерни гравьори и ЦПУ рутери.

Експортирайте G-code сега ✨ Отворена бета версия — безплатно, без ограничения

Основни характеристики

Оптимизирани траектории на инструмента за лазерно гравиране
Настройки за скорост и мощност на лазера
Поддръжка на фърмуер GRBL и Marlin
Отделни слоеве за многопроходна обработка
Example G-code export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

За формата 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.

Коя програма отваря файлове G-code

Следните програми и приложения могат да отварят, редактират и работят с файлове G-code (Laser Engraving / CNC) (.gcode), експортирани от OSM2CDR:

💻LightBurn 💻LaserGRBL 💻Fusion 360 💻LinuxCNC 💻Mach3

Format specifications

Кой използва карти в G-code

🏗
Лазерно гравиране на карти върху дърво
A city plan cut on plywood or wood — the road lines become relief.
💻
CNC фрезоване на топографски карти
Contours and boundaries as cutter paths for a 3D model of the territory.
📊
Декоративни карти за стена
Wall panels with a district map: pure vector with no raster artifacts.
🎨
Персонализирани подаръци с карти
A map of your home town or a meeting place as a personal handmade gift.

Как да експортирате G-code

1
Изберете област
Начертайте правоъгълник или полигон на интерактивната карта на osm2cdr.ru
2
Изберете G-code
Изберете G-code (Laser Engraving / CNC) от списъка с 127 налични формата за експорт
3
Експорт
Щракнете върху „Експорт“ и получете файла си .gcode за 1-5 минути
4
Изтегляне
Изтеглете готовия файл G-code и го отворете в LightBurn

Как да отворите след експорта

Популярни карти в G-code

Free

Получете експорти на карти в G-code (Laser Engraving / CNC)

Изтеглете професионални карти в G-code от OpenStreetMap. Незабавно генериране, всяка област.

Безплатно / експорт
Експортирайте G-code сега →

Често задавани въпроси

Кои лазерни гравьори се поддържат?
Мога ли да го използвам за CNC фрезоване?
Какви материали могат да се гравират?
What work area is the file calculated for?
Are all the layers processed the same way?
What should I do before the first run?

Свързани формати

Често експортирани заедно

Related Articles