G-code

G-code (Laser Engraving / CNC)

Open Beta
.gcode · text/x-gcode

OpenStreetMapの地図データをレーザー彫刻やCNC加工向けのG-codeとしてエクスポートします。レーザー彫刻機やCNCルーターを使って、木材、金属、アクリルなどの素材に物理的な地図を作成できます。

今すぐ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ファイルを開けるプログラム

次のプログラムおよびアプリケーションは、OSM2CDRからエクスポートしたG-code (Laser Engraving / CNC)(.gcode)ファイルを開き、編集し、利用できます:

💻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を選択
利用可能な127種類のエクスポートフォーマットの一覧からG-code (Laser Engraving / CNC)を選択します
3
エクスポート
「エクスポート」をクリックすると、1〜5分で.gcodeファイルを受け取れます
4
ダウンロード
完成したG-codeファイルをダウンロードし、LightBurnで開きます

エクスポート後の開き方

G-codeの人気地図

フリー

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