1
# -*- coding: utf-8 -*-
3
Created on Wed Jul 18 10:49:26 2012
8
import grass.lib.vector as libvect
9
from grass.pygrass.vector import geometry as geo
11
MAPTYPE = {libvect.GV_FORMAT_NATIVE: "native",
12
libvect.GV_FORMAT_OGR: "OGR",
13
libvect.GV_FORMAT_OGR_DIRECT: "OGR",
14
libvect.GV_FORMAT_POSTGIS: "PostGIS"}
16
VTYPE = {'point': libvect.GV_POINT, # 1
17
'line': libvect.GV_LINE, # 2
18
'boundary': libvect.GV_BOUNDARY, # 3
19
'centroid': libvect.GV_CENTROID, # 4
20
'face': libvect.GV_FACE, # 5
21
'kernel': libvect.GV_KERNEL, # 6
22
'area': libvect.GV_AREA, # 7
23
'volume': libvect.GV_VOLUME} # 8