GME

Geospatial Modelling Environment

field.rename

Renames a field in a table

Description

This tool renames fields in a table. It does this by creating a new field with the desired name, copying values from the old field into the new field, and then deleting the old field. The position of the field therefore changes. The field type of the new field is based on the input field.

This tool will only work with the simple field data types: short and long integers, double precision numbers, strings, etc. If you specify a field that is an object ID field or a geometry field then the tool will return an error message and no renaming will occur.

Syntax

field.rename(in, field, out);

inthe input table or feature data source
fieldthe name of the field to rename
outthe new field name

Example

field.rename(in="C:\data\plots.shp", field="LCOV1999", out="LANDCOV99");


Messages

Please consider making a purchase to support the continued development of these tools  Read more...

An apology for failing to respond to correspondence in recent months  Read more...

Tips on how to use this interface efficiently  Read more...

Sign up for the newsletter if you wish to receive notification of updates, new functionality, bug fixes, and other related news

Links

Open Source GIS

Copyright © 2001-2010 Hawthorne L. Beyer, Spatial Ecology LLC