Skip to content

Commit

Permalink
v.to.rast manual: update example to NC dataset (#1053)
Browse files Browse the repository at this point in the history
- replace Spearfish with North Carolina dataset example
  • Loading branch information
neteler committed Oct 29, 2020
1 parent 091eb21 commit 829dc2b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions vector/v.to.rast/v.to.rast.html
Expand Up @@ -111,11 +111,17 @@ <h3>Calculate slope along path</h3>
Slope in degrees along bus route
</center>

<h3>Convert a vector polygon map to raster including descriptive labels (Spearfish)</h3>
<h3>Convert a vector polygon map to raster including descriptive labels</h3>

In this example, the ZIP code vector map is rasterized (North Carolina
sample dataset):

<!-- unfortunately attribute ZIPNUM is double precision and not integer -->
<div class="code"><pre>
v.to.rast input=fields output=myfields use=attr attribute_column=cat label_column=label
r.category myfields
# rasterize ZIP codes at 50m raster resolution
g.region vector=zipcodes_wake res=50 -ap
# vector to raster conversion, with category labels
v.to.rast input=zipcodes_wake output=myzipcodes use=attr attribute_column="ZIPNUM" label_column="NAME"
</pre></div>


Expand Down Expand Up @@ -172,5 +178,3 @@ <h2>AUTHORS</h2>
<p>
<i>Last changed: $Date$</i>
-->


0 comments on commit 829dc2b

Please sign in to comment.