[gradsusr] Shapefile

Pou-Chang John Chen wishingwork at yahoo.com.tw
Wed Mar 16 00:56:13 EDT 2011

Hello Howard

1. display a regular graph to decide the dimension of shapefile
2. query the shapefile with 'q dbf <your_shapefile>', the first element is the 
record number for filling plot
3. choose the the fill color via 'set shpopts <color>' 
4. 'draw shp <your_shapefile> <record_number>'



From: Jennifer Adams <jma at cola.iges.org>
To: GrADS Users Forum <gradsusr at gradsusr.org>
Sent: Tue, March 15, 2011 6:55:31 PM
Subject: Re: [gradsusr] Shapefile

Have a look at ftp://iges.org/grads/scripts/shp_demo1.gs

What you need to do is use the 'q dbf' output to loop over each shape in your 
file, decide on the fill color to use based on the data base value for that 
shape, then draw it individually. It's a little slow, but effective. 

On Mar 15, 2011, at 12:44 AM, Metris Limited Forecaster wrote:

Good evening fellow users of Grads
>I have a shapefile set with topography data , and 5 or so contour levels
>I was wanting the methodology for drawing the shapefile in Grads as various grey 
>shaded topography
>as a map background essentially.
>I was wanting clarification on how to use the set shpopts and how to set the 
>ccols for the various levels.
>Howard Staines
>Forecaster Metris Limited
>websited - www.metris.co.nz  - phone 06 8441042 - fax 06 8441046
>gradsusr mailing list
>gradsusr at gradsusr.org

Jennifer M. Adams
4041 Powder Mill Road, Suite 302
Calverton, MD 20705
jma at cola.iges.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110316/0c894a6c/attachment-0003.html 

More information about the gradsusr mailing list