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.
💻
Фрезерування топографічних карт на ЧПК
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 зараз →

Поширені запитання

Які лазерні гравери підтримуються?
Чи можна використати це для фрезерування на ЧПК?
Які матеріали можна гравірувати?
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