EnglishFrenchSpanish

OnWorks favicon

v.db.addtablegrass - Online in the Cloud

Run v.db.addtablegrass in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command v.db.addtablegrass that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


v.db.addtable - Creates and connects a new attribute table to a given layer of an
existing vector map.

KEYWORDS


vector, attribute table, database

SYNOPSIS


v.db.addtable
v.db.addtable --help
v.db.addtable map=name [table=string] [layer=integer] [key=name] [columns=name
type[,name type,...]] [--help] [--verbose] [--quiet] [--ui]

Flags:
--help
Print usage summary

--verbose
Verbose module output

--quiet
Quiet module output

--ui
Force launching GUI dialog

Parameters:
map=name [required]
Name of vector map
Or data source for direct OGR access

table=string
Name of new attribute table (default: vector map name)

layer=integer
Layer number where to add new attribute table
Default: 1

key=name
Name of key column
Must refer to an integer column
Default: cat

columns=name type[,name type,...]
Name and type of the new column(s)
Types depend on database backend, but all support VARCHAR(), INT, DOUBLE PRECISION and
DATE. Example: "label varchar(250), type integer"

DESCRIPTION


v.db.addtable creates and adds a new attribute table to a given vector map. It links the
table to the specified layer of the vector map. If the vector map is not yet linked to any
table, new a database link is established based on the MAPSET database settings (see
db.connect).

NOTES


v.db.addtable is a front-end to db.execute to allow easier usage. v.db.addtable will only
insert category values into the table for those features which actually have a category
value in the relevant layer. The use can add category values automatically by using
v.category or manually with wxGUI vector digitizer before running v.db.addtable. Or one
can run v.db.addtable first and then use either a combinatino of v.category + v.to.db or
wxGUI vector digitizer to add the relevant lines to the table. The supported types of
columns depend on the database backend. However, all backends should support VARCHAR, INT,
DOUBLE PRECISION and DATE.

The existing database connection(s) can be verified with v.db.connect.

EXAMPLE


Adding a new attribute table with a single column to default layer 1:
g.copy vect=roadsmajor,myroads
v.db.addtable myroads columns="slope double precision"
v.db.connect -p myroads
v.info -c myroads

Adding a new attribute table with two columns to layer 2:
g.copy vect=roadsmajor,myroads
v.db.addtable myroads columns="slope double precision, roadname varchar(15)" layer=2
v.db.connect -p myroads
v.info -c myroads
v.info -c myroads layer=2

Use v.db.addtablegrass online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Osu!
    Osu!
    Osu! is a simple rhythm game with a well
    thought out learning curve for players
    of all skill levels. One of the great
    aspects of Osu! is that it is
    community-dr...
    Download Osu!
  • 2
    LIBPNG: PNG reference library
    LIBPNG: PNG reference library
    Reference library for supporting the
    Portable Network Graphics (PNG) format.
    Audience: Developers. Programming
    Language: C. This is an application that
    can also...
    Download LIBPNG: PNG reference library
  • 3
    Metal detector based on  RP2040
    Metal detector based on RP2040
    Based on Raspberry Pi Pico board, this
    metal detector is included in pulse
    induction metal detectors category, with
    well known advantages and disadvantages.
    RP...
    Download Metal detector based on RP2040
  • 4
    PAC Manager
    PAC Manager
    PAC is a Perl/GTK replacement for
    SecureCRT/Putty/etc (linux
    ssh/telnet/... gui)... It provides a GUI
    to configure connections: users,
    passwords, EXPECT regula...
    Download PAC Manager
  • 5
    GeoServer
    GeoServer
    GeoServer is an open-source software
    server written in Java that allows users
    to share and edit geospatial data.
    Designed for interoperability, it
    publishes da...
    Download GeoServer
  • 6
    Firefly III
    Firefly III
    A free and open-source personal finance
    manager. Firefly III features a
    double-entry bookkeeping system. You can
    quickly enter and organize your
    transactions i...
    Download Firefly III
  • More »

Linux commands

Ad