Latest Error

I’m getting this error after a 137 /panfs/roc/msisoft/R/3.6.0/lib64/R/bin/BATCH: line 60: 30473 Killed ${R_HOME}/bin/R -f ${in} ${opts} ${R_BATCH_OPTIONS} > ${out} 2>&1 It ends on this line… fr <- sapply(1:nrow(forest),function(y) fasterize(forest[y,], cr[[1]])) Since smaller memory processes run without error, I can only assume that storing a vector of larger cropped rasters is the problem. So, onto a […]

Continue reading..Latest Error

Best Practices for Big Polygon Data Sets

Some common, useful formats for storing this type of information… CSV GeoJSON/TopoJSON GML KML MySQL/SQLite/SpatiaLite/PostGIS NetCDF SVG VRT ESRI shape file ESRI feature class It can also be advantageous to abstract data in memory to work with it. I had never heard of GMT or VPF until now but I’m curious about them! A colleague […]

Continue reading..Best Practices for Big Polygon Data Sets

GDAL Polygonize in Action!

#!/bin/bash for VARIABLE in ./test_export/*.tif; do gdal_translate -of GTiff -a_nodata 0 “$VARIABLE” “PPR_no/$(basename “$VARIABLE” .tif).tif” gdal_sieve.py -st 2 -8 “PPR_no/$(basename “$VARIABLE” .tif).tif” gdal_polygonize.py -8 “PPR_no/$(basename “$VARIABLE” .tif).tif” -f “ESRI Shapefile” “shapefile/$(basename “$VARIABLE” .tif).shp” rm “PPR_no/$(basename “$VARIABLE” .tif).tif” ogr2ogr -f “ESRI Shapefile” -progress “shapefiles/$(basename “$VARIABLE” .tif).shp” “shapefile/$(basename “$VARIABLE” .tif).shp” -t_srs “EPSG:5070” done listofmodisdays=`ls shapefiles/*.shp | cut […]

Continue reading..GDAL Polygonize in Action!