G-code

G-code (Laser Engraving / CNC)

Open Beta
.gcode · text/x-gcode

将 OpenStreetMap 地图数据导出为 G-code,用于激光雕刻和数控铣削。可使用激光雕刻机和数控铣床/雕刻机,在木材、金属、亚克力及其他材料上制作实体地图。

立即导出 G-code ✨ Open Beta — 免费无限制

主要特点

为激光雕刻优化的刀路
激光速度与功率设置
支持 GRBL 与 Marlin 固件
用于多次加工的独立图层
G-code 格式导出示例(莫斯科中心,1x0.5 公里)
示例:莫斯科中心区,约 1x0.5 公里,中等详细度

关于 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 文件的程序

以下程序可以打开、编辑和处理从 OSM2CDR 导出的 G-code (Laser Engraving / CNC)(.gcode)文件:

💻LightBurn 💻LaserGRBL 💻Fusion 360 💻LinuxCNC 💻Mach3

格式规格

谁在使用 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 的交互式地图上绘制矩形或多边形
2
选择 G-code
从 127 种可用导出格式中选择 G-code (Laser Engraving / CNC)
3
导出
点击导出,1–5 分钟内收到您的 .gcode 文件
4
下载
下载完成的 G-code 文件并在 LightBurn 中打开

导出后如何打开

G-code 格式的热门地图

Free

导出 G-code (Laser Engraving / CNC) 地图

从 OpenStreetMap 下载专业的 G-code 地图。即时生成,任意区域。

免费 / 导出
立即导出 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