~ubuntu-branches/ubuntu/wily/grass/wily

« back to all changes in this revision

Viewing changes to lib/python/pygrass/vector/vector_type.py

Tags: 7.0.0~rc1+ds1-1~exp1
* New upstream release candidate.
* Repack upstream tarball, remove precompiled Python objects.
* Add upstream metadata.
* Update gbp.conf and Vcs-Git URL to use the experimental branch.
* Update watch file for GRASS 7.0.
* Drop build dependencies for Tcl/Tk, add build dependencies:
  python-numpy, libnetcdf-dev, netcdf-bin, libblas-dev, liblapack-dev
* Update Vcs-Browser URL to use cgit instead of gitweb.
* Update paths to use grass70.
* Add configure options: --with-netcdf, --with-blas, --with-lapack,
  remove --with-tcltk-includes.
* Update patches for GRASS 7.
* Update copyright file, changes:
  - Update copyright years
  - Group files by license
  - Remove unused license sections
* Add patches for various typos.
* Fix desktop file with patch instead of d/rules.
* Use minimal dh rules.
* Bump Standards-Version to 3.9.6, no changes.
* Use dpkg-maintscript-helper to replace directories with symlinks.
  (closes: #776349)
* Update my email to use @debian.org address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
"""
 
3
Created on Wed Jul 18 10:49:26 2012
 
4
 
 
5
@author: pietro
 
6
"""
 
7
 
 
8
import grass.lib.vector as libvect
 
9
from grass.pygrass.vector import geometry as geo
 
10
 
 
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"}
 
15
 
 
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
 
24