grass  7.8.6
About: GRASS (Geographic Resources Analysis Support System) is a raster- and vector-based GIS, image processing system, graphics production system and spatial modeling system.
  Fossies Dox: grass-7.8.6.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

GRASS-OGR data provider

by GRASS Development Team (


Reduced topology: each boundary is attached to one area only, i.e. smoothing, simplification, removing small areas etc. will not work properly for adjacent areas or areas within areas.

Full topology is only available for native GRASS vectors or can only be built after all polygons are converted to areas and cleaned as done by

Frmt file format specification

Frmt is a plain text file which contains basic information about external format of linked vector map. Each line contains key, value pairs separated by comma.

OGR specific format is described by:

  • FORMAT - ogr
  • DSN - OGR datasource name
  • LAYER - OGR layer name


DSN: /path/to/shapefiles
LAYER: cities

OGR layer can be linked via v.external command. When linking OGR layer pseudo-topology ('topo') is built including spatial index file ('sidx') and category index file ('cidx'). Additionally also feature index file (see Fidx file format specification) is created.

Fidx file format specification

Note: finfo is an instance of Format_info structure.



Version_Major C1file version (major)
Version_Minor C1file version (minor)
Back_MajorC1supported from GRASS version (major)

supported from GRASS version (minor)


little or big endian flag; files are written in machine native order but files in both little and big endian order may be readl; zero for little endian


header size


number of records