我试图使用管道工R包将一个函数包装到REST中。作为输入,函数接受一个shapefile,并在转换后以.shp格式和GeoJSON格式返回shapefile。现在,在装饰师的帮助下,我需要将其增强为web服务。R文件:#* @param pathtoshpfile:character Path to Shapefile with Name
#* @param<- as.integer(spr
这是上一个问题的延续:Creating R loop to read in shapefiles from a directory and perform zonal statistics on each因此,我在"Counties“目录中有120个县shapefile。我使用R读取每个shapefile,并使用单个栅格层“RGB_band1_NOAA”对每个shapefile执行区域统计(即)。这会将所有结果放入一个列表中