EnglishFrenchSpanish

OnWorks favicon

v.reclassgrass - Online in the Cloud

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

This is the command v.reclassgrass 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.reclass - Changes vector category values for an existing vector map according to
results of SQL queries or a value in attribute table column.

KEYWORDS


vector, reclassification, attributes

SYNOPSIS


v.reclass
v.reclass --help
v.reclass input=name [layer=string] [type=string[,string,...]] output=name
[column=name] [rules=name] [--overwrite] [--help] [--verbose] [--quiet] [--ui]

Flags:
--overwrite
Allow output files to overwrite existing files

--help
Print usage summary

--verbose
Verbose module output

--quiet
Quiet module output

--ui
Force launching GUI dialog

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

layer=string
Layer number or name
Vector features can have category values in different layers. This number determines
which layer to use. When used with direct OGR access this is the layer name.
Default: 1

type=string[,string,...]
Input feature type
Options: point, line, boundary, centroid
Default: point,line,boundary,centroid

output=name [required]
Name for output vector map

column=name
The name of the column whose values are to be used as new categories
The source for the new key column must be type integer or string

rules=name
Full path to the reclass rule file

DESCRIPTION


v.reclass allows user to create a new vector map based on the reclassification of an
existing vector map. It also allows the user to change the key column away from the
default of "cat" with the column option.

Rules file may contain on each row either pair:
keyword value
(separated by space) or comment beginning with ’#’ (hash). Definition of new category
begins with keyword cat followed by the new category value. Keyword where specifies SQL
where condition.

NOTES


No table is created for the reclassed map if the column option is used and the column type
is integer (as the result could contain ambiguities). If the column option is used and
the column type is string, a new table is created containing the newly generated cat
numbers and a single column containing the unique string column values, sorted in
alphabetical order.

For dissolving common boundaries, see v.dissolve.

EXAMPLES


Example 1: Reclass by rules
v.reclass input=land output=land_u type=boundary rules=land.rcl
the rules file contains :
# land reclass file
cat 1
where use = ’E13’ and owner = ’Jara Cimrman’
cat 2
where use = ’E14’
Produces a new vector area map land_u containing boundaries from land with area category
values selected from database by SQL select statement:
select id from tland where use = ’E13’ and owner = ’Jara Cimrman’ changed to category 1;
values selected from database by SQL select statement:
select id from tland where use = ’E14’ changed to category 2.

Example 2: Reclass by attribute column
(North Carolina sample dataset)
v.reclass in=streams out=streams_by_type column=I_vs_P
v.db.select streams_by_type
cat|I_vs_P
1|intermittent
2|perennial

KNOWN ISSUES


No table is created for reclassed layer if rules option is used.

Use v.reclassgrass 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