GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
Loading...
Searching...
No Matches
Format_info_cache Struct Reference

Lines cache for reading feature (non-native formats) More...

#include <dig_structs.h>

Collaboration diagram for Format_info_cache:

Data Fields

struct line_pnts ** lines
 Lines array.
 
intlines_types
 List of line types (GV_POINT, GV_LINE, ...)
 
intlines_cats
 List of line cats (used only for PostGIS Topology access)
 
int lines_alloc
 Number of allocated lines in cache.
 
int lines_num
 Number of lines which forms current feature.
 
int lines_next
 Next line to be read from cache.
 
long fid
 Feature id.
 
SF_FeatureType sf_type
 Simple feature type (currently used only by PG format)
 
int ctype
 Cache type.
 

Detailed Description

Lines cache for reading feature (non-native formats)

Definition at line 448 of file dig_structs.h.

Field Documentation

◆ ctype

int Format_info_cache::ctype

Cache type.

Currently used only by PostGIS Topology which allows caching the whole map (CACHE_MAP)

Definition at line 494 of file dig_structs.h.

◆ fid

long Format_info_cache::fid

Feature id.

Definition at line 484 of file dig_structs.h.

◆ lines

struct line_pnts** Format_info_cache::lines

Lines array.

Some simple features require more allocated lines (eg. polygon with more rings, multipoint, or geometrycollection)

Line cache is also used for PostGIS Topology to store single topological element (ctype == CACHE_FEATURE) or all elements from the map (ctype == CACHE_MAP) to avoid random access which is very costly.

Definition at line 460 of file dig_structs.h.

Referenced by Vect__free_cache(), and Vect__reallocate_cache().

◆ lines_alloc

int Format_info_cache::lines_alloc

Number of allocated lines in cache.

Definition at line 472 of file dig_structs.h.

Referenced by Vect__free_cache(), and Vect__reallocate_cache().

◆ lines_cats

int* Format_info_cache::lines_cats

List of line cats (used only for PostGIS Topology access)

Definition at line 468 of file dig_structs.h.

Referenced by Vect__free_cache(), and Vect__reallocate_cache().

◆ lines_next

int Format_info_cache::lines_next

Next line to be read from cache.

Definition at line 480 of file dig_structs.h.

◆ lines_num

int Format_info_cache::lines_num

Number of lines which forms current feature.

Definition at line 476 of file dig_structs.h.

◆ lines_types

int* Format_info_cache::lines_types

List of line types (GV_POINT, GV_LINE, ...)

Definition at line 464 of file dig_structs.h.

Referenced by Vect__free_cache(), and Vect__reallocate_cache().

◆ sf_type

SF_FeatureType Format_info_cache::sf_type

Simple feature type (currently used only by PG format)

Definition at line 488 of file dig_structs.h.


The documentation for this struct was generated from the following file: