ASCII Grid 📄

ESRI ASCII Grid (.asc)

付款前显示价格
.asc · text/plain

ESRI ASCII Grid is the common text format for an ELEVATION GRID: a six-line header (NCOLS, NROWS, XLLCORNER, YLLCORNER, CELLSIZE, NODATA_VALUE) followed by space-separated numbers. Every cell value IS the elevation in METRES above sea level with one decimal — not a colour, not a shadow, not an image pixel. Heights come from the global Copernicus DEM GLO-30: about a 30 m step, vertical accuracy ~2–4 m. The grid is clipped exactly to the area you ordered, written in the coordinate system you chose, and empty cells carry NODATA_value -9999. Delivery is a ZIP holding exactly two files: map.asc and map.prj with the coordinate system (the .asc itself has nowhere to declare it). An honest caveat: over the sea GLO-30 returns exactly 0 m rather than emptiness — that is the behaviour of the elevation source, not a fault of the export. Text is bulkier than a binary raster, so the grid has a ceiling of 4 million cells: a larger area is coarsened just enough to fit, and the new step is stated as a number. It opens in a plain text editor, ArcGIS, QGIS, GRASS, GDAL, R, rasterio, Surfer and Civil 3D. This is pre-design, GIS and visualisation — not a land survey.

OpenStreetMap data as of 26 October 2026 · 18 days ago

现在导出 ASCII Grid ✨ 登录网站后下载 · 付款前可查看价格

主要特点

✓The cell value is the elevation in metres with one decimal — no palette, no rescaling
✓Heights from Copernicus DEM GLO-30: about a 30 m step, vertical accuracy ~2–4 m
✓Clipped exactly to the ordered area — not to a degree tile and not to a map tile
✓NODATA_value -9999 for cells without elevation; the empty share is stated as a number
✓Exactly two files in the archive: map.asc and map.prj with the coordinate system you chose
ASCII Grid 格式导出示例(市中心,1x0.5 公里)
示例:市中心,约 1x0.5 公里,中等详细度

关于 ASCII Grid 格式

ESRI ASCII Grid is the simplest of the raster formats: six header lines (the number of columns and rows, the coordinates of the lower left corner, the cell size, the NODATA value) and then a grid of numbers separated by spaces. The file reads in any text editor and is parsed by five lines of code in any language, which is why it is still used in academic pipelines and for long-term storage.

The format is chosen when what matters is not efficiency but portability and transparency: a supplement to an article, a dataset in a repository, an input grid for GRASS, R or rasterio, an exchange with a colleague who has no GIS. Everything in the file is visible to the eye — nothing is hidden in a binary structure.

The output is a ZIP archive with two files: map.asc with the grid of values and map.prj with the description of the coordinate system. It is done that way because the .asc itself does not store the projection, and without it a GIS will not put the grid in its place. The cells hold ELEVATIONS in metres above sea level with one decimal: a clip of the global Copernicus DEM GLO-30 exactly to the area you ordered, about a 30 m step, vertical accuracy ~2-4 m; cells without coverage get -9999. Over the sea the source returns exactly 0 m rather than emptiness — that is how it behaves, and we do not hide it.

打开 ASCII Grid 文件的程序

以下程序可以打开、编辑和处理从 OSM2CDR 导出的 ESRI ASCII Grid (.asc)(.asc)文件:

🌎QGIS 🌎ArcGIS 💻GDAL / OGR 🌎GRASS GIS 💻Surfer 💻Python rasterio 📐R (raster package)

格式规格

谁在使用 ASCII Grid 地图

🏗
Downloading the elevation grid of a site as text a colleague can open without special software — even in Notepad++
An elevation file that opens absolutely everywhere — down to a plain notepad, with no GIS installed.
💻
An input for terrain analysis in GRASS, R, rasterio or Surfer: slopes, catchment, profile, visibility
An input grid for computations in GRASS, R or rasterio, where AAIGrid is exactly what is expected.
📊
Importing the surface into Civil 3D, Global Mapper and older GIS packages that expect .asc
A surface for Civil 3D and Global Mapper: both import .asc directly.
🎨
Exchange and archival of elevations in a maximally portable text form (Zenodo, Dryad)
Long-term storage and publication: text survives changes of program versions better than binary formats.

如何导出 ASCII Grid

1
选择区域
在 osm2cdr 的交互式地图上绘制矩形或多边形
2
选择 ASCII Grid
从 127 种可用导出格式中选择 ESRI ASCII Grid (.asc)
3
导出
点击导出,然后下载制作好的 .asc 文件
4
下载
下载完成的 ASCII Grid 文件并在 QGIS 中打开

导出后如何打开

Free

导出 ESRI ASCII Grid (.asc) 地图

从 OpenStreetMap 下载专业的 ASCII Grid 地图。任意区域,付款前即可看到价格。

所选格式的地图 构建器中自选区域 — 按地图计价
现在导出 ASCII Grid →

常见问题

Is this an elevation/terrain (DEM) file? ▼
Why is the sea zero instead of empty cells? ▼
Where is the coordinate system stored? ▼
Why does a large area arrive coarsened? ▼
Why did I download a ZIP instead of an .asc file? ▼
What do the numbers in the cells mean? ▼
Can I set the cell size? ▼

相关格式

经常一起导出

Related Articles