HPGL is a text-based vector plotter control language created by Hewlett-Packard and publicly documented in 1984. It is not an image but a stream of ASCII commands (IN, SP, PU, PD, PA) the device executes as pen or blade movements. Over forty years HPGL migrated from pen plotters to vinyl cutters, laser engravers, and CNC. Our exporter generates HPGL directly: each map layer gets its own pen (1-8), polygons are closed, points are drawn as small crosses. HPGL has no labels — the output is clean outlines of roads, buildings, and water bodies.
主要特点

关于 HPGL 格式
HPGL is a plotter control language invented by Hewlett-Packard and publicly documented in 1984. It is not an image but a list of commands the device carries out literally: lift the pen, lower it, move to a point. Over forty years the language has outlived pen plotters and is still understood by vinyl cutters, laser engravers and CNC machines.
A map is exported to HPGL when the result has to be a physical object: the outline of a district drawn with a real pen on paper, a city silhouette cut out of film, a street plan engraved into wood. The file is text — you can open it in an editor and read every command.
The stream contains the IN, SP, PU, PD and PA commands: initialization, pen selection, movement with the pen up and down. Each map layer gets its own pen numbered from one to eight, polygons are closed, and point features are drawn as crosses about five meters across at map scale. Coordinates are written in plotter units — forty units per millimeter.
The format's limitations are stated honestly: two-dimensional outlines only, with no fills, raster or labels — older devices simply have no text commands. The physical color of a line depends not on the file but on which pen or which blade sits in the matching holder.
打开 HPGL 文件的程序
以下程序可以打开、编辑和处理从 OSM2CDR 导出的 HPGL — Hewlett-Packard Graphics Language(.hpgl)文件:
格式规格
- 专有格式
- 仅 2D
- 无损(无质量损失)
- 无属性
- 输出:1 个文件
- A text HPGL plotter stream (IN/SP/PU/PD/PA), one pen per layer (1-8), points as ~5 m crosses, coordinates in plotter units at 40 units/mm, 2D outlines only.
谁在使用 HPGL 地图
如何导出 HPGL
导出后如何打开
- Sending it directly — to a plotter with a serial or network port the file goes as a byte stream: on Windows that is copy /b map.hpgl COM1, on Linux cat map.hpgl > /dev/ttyUSB0.
- LightBurn — import the .hpgl for a laser engraver or cutter: the pen layers turn into separate sets with their own speed and power.
- Chiplotle (Python) — a library for HP pen plotters: it lets you look at a preview, adjust the scale and push the file to the device.
- Roland CutStudio and similar programs — open the file for a cutting plotter; before cutting, check that the dimensions fit the width of the roll.
- A visual check — Inkscape with HPGL support or online viewers will show exactly what is going to be drawn, before you start the device.
HPGL 格式的热门地图
导出 HPGL — Hewlett-Packard Graphics Language 地图
从 OpenStreetMap 下载专业的 HPGL 地图。即时生成,任意区域。