|
@@ -60,27 +60,6 @@ v.db.update mygeodetic_pts col=zval qcol="CAST(z_value AS double precision)" \
|
|
|
where="z_value <> 'N/A'"
|
|
|
</pre></div>
|
|
|
|
|
|
-<h3>Updating of columns with on the fly calculation (SQLite extended functions)</h3>
|
|
|
-
|
|
|
-North Carolina data set example: adding new column, copying values from
|
|
|
-another table column with on the fly calculation:
|
|
|
-
|
|
|
-<div class="code"><pre>
|
|
|
-g.copy vect=precip_30ynormals,myprecip_30ynormals
|
|
|
-v.db.addcolumn myprecip_30ynormals column="logjuly double precision"
|
|
|
-v.db.update myprecip_30ynormals column="logjuly" query_column="log(jul)" \
|
|
|
- sqliteextra=$HOME/sqlite_extensions/libsqlitefunctions.so
|
|
|
-
|
|
|
-v.db.select myprecip_30ynormals columns=jul,logjuly
|
|
|
-jul|logjuly
|
|
|
-132.842|4.88916045210132
|
|
|
-127|4.84418708645859
|
|
|
-124.206|4.82194147751127
|
|
|
-104.648|4.65060233738593
|
|
|
-98.298|4.58800368106618
|
|
|
-...
|
|
|
-</pre></div>
|
|
|
-
|
|
|
|
|
|
<h2>SEE ALSO</h2>
|
|
|
|