wiki:Writing catchment_area into postgre

Version 3 (modified by celine, 14 years ago) (diff)

--

back to first page..

Some problem with the function import colum or with the calcuation into postgre or R with area/1e6
The area of some upstream segment are null so the up_ in the clc or the up_catchment are not calculated and give "NA"

Use :

ccm<-loaddb_all(ccm)
ccm@data$c_area<-ccm@data$area/1000000
import_column(ccm,newcolumn="c_area",newcolumntype="numeric",display=FALSE)

It's OK with c_area