GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
build_sfa.c File Reference

Vector library - Building pseudo-topology for simple feature access. More...

#include <stdlib.h>
#include <grass/gis.h>
#include <grass/vector.h>
#include <grass/glocale.h>
#include "pg_local_proto.h"
#include <ogr_api.h>
Include dependency graph for build_sfa.c:

Go to the source code of this file.

Functions

int Vect__build_sfa (struct Map_info *Map, int build)
 Build pseudo-topology (for simple features) - internal use only. More...
 
int Vect_fidx_dump (const struct Map_info *Map, FILE *out)
 Dump feature index to file. More...
 

Detailed Description

Vector library - Building pseudo-topology for simple feature access.

Higher level functions for reading/writing/manipulating vectors.

Line offset is

  • centroids : FID
  • other types : index of the first record (which is FID) in offset array.

(C) 2001-2012 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
Radim Blazek
Piero Cavalieri
Various updates for GRASS 7 by Martin Landa <landa.martin gmail.com>

Definition in file build_sfa.c.

Function Documentation

◆ Vect__build_sfa()

int Vect__build_sfa ( struct Map_info Map,
int  build 
)

Build pseudo-topology (for simple features) - internal use only.

See Vect_build_ogr() and Vect_build_pg() for implementation issues.

Build levels:

  • GV_BUILD_NONE
  • GV_BUILD_BASE
  • GV_BUILD_ATTACH_ISLES
  • GV_BUILD_CENTROIDS
  • GV_BUILD_ALL
Parameters
Mappointer to Map_info structure
buildbuild level
Returns
1 on success
0 on error

Definition at line 694 of file build_sfa.c.

References Plus_head::built, Map_info::format, GV_BUILD_BASE, GV_FORMAT_OGR, GV_FORMAT_OGR_DIRECT, Map_info::plus, and Vect__build_downgrade().

Referenced by Vect_build_ogr(), and Vect_build_pg().

◆ Vect_fidx_dump()

int Vect_fidx_dump ( const struct Map_info Map,
FILE *  out 
)