wiki:Grass7/VectorLib

Version 66 (modified by martinl, 13 years ago) ( diff )

--

Vector library in GRASS 7

Vector Library from Programmer's Manual

See also Radim Blažek's TODO.

File-based spatial index

Done in r38385 and r39148

Memory consumption

  • 3D points: GRASS 7 needs much less memory to build the topology (about 5% of the memory needed in GRASS 6.x).
  • Support for Lowmem mode added

OGR interface

Capability to read OGR layers directly without linking them via v.external and to write OGR layers directly without need to store data in the native vector format and then exporting data using v.out.ogr.

For more information see Direct OGR read and write access.

Simple test of rendering speed

See r47875

Region:

g.region vect=bridges

  • vector map 'bridges' (points=10938)

d.vect bridges type=point

Native:

real    0m0.400s
user    0m0.388s
sys     0m0.008s

Linked PostGIS layer:

real    0m0.828s
user    0m0.568s
sys     0m0.016s
  • vector map 'roadsmajor' (lines=355)

d.vect roadsmajor type=line

Native:

real    0m0.103s
user    0m0.092s
sys     0m0.008s

Linked PostGIS layer:

real    0m0.521s
user    0m0.128s
sys     0m0.028s
  • vector map 'urbanarea' (areas=666)

d.vect urbanarea type=centroid,area

Native:

real    0m0.540s
user    0m0.520s
sys     0m0.016s

Linked PostGIS layer:

real    0m1.236s
user    0m0.736s
sys     0m0.068s

Direct PostGIS geometry editing

For more information see Direct PostGIS geometry editing.

Redesign support structures

Reduce memory requirements particularly for points and lines. See #542.

TODO

3D vector data support

TODO

See also:

Note: See TracWiki for help on using the wiki.