New answers tagged

3

This block example operates on the json input you provided. Documentation links that I used: constructing point: https://postgis.net/docs/ST_Point.html operating on json: https://www.postgresql.org/docs/9.5/functions-json.html create or replace function parse_response(p_resp json) returns text language plpgsql as $$ declare v_lat float; v_lng float; ...


0

First lets make some test data. A 3x4 raster with no coordinate system. R will place this on a unit square. We'll also fake up some lat-long rasters: r = raster(matrix(1:12, 3,4)) latitude = raster(matrix(rep(c(seq(34, 37,len=3)),4),ncol=4)) longitude = raster(matrix(rep(seq(10,23,length=4),3),ncol=4, byrow=TRUE)) Now we get the values from longitude and ...


Top 50 recent answers are included