set shpattr

set shpattr name type value

Sets attribute metadata to be included in the shapefile created with the set gxout shp command.

Usage Notes

This command is available in GrADS v2.0.a9 or higher.

Numerical attribute values (integers and doubles) are written to the shapefile in text format. The set shp command controls the formatting of the numbers, by specifiying the length of the number (total number of columns) and the precision (number of places to the right of the decimal place, which is only meaningful for attributes of type double).

The reset or reinit commands will release all the user-specified shapefile attributes from memory. To do this without resetting all the other user-specified options, use the clear shp command.

Use the q shpopts command to see the current settings for drawing and writing shapefiles.

Please see the documentation page on shapefiles for more information.

Examples

set shpattr Author string Put_Your_Name_Here