Hot answers tagged

3

If the subject is about the QGIS Field Calculator expression; if("gon"<300, ("gon"+100)*0.9, ("gon"-300)*0.9)


2

What you have in that column are fragments of geoJSON for point coordinates. Install geojsonsf and then read and create an sf object: > LS2013<-read.csv("https://raw.githubusercontent.com/tuyenhavan/Rice-Paper/master/LS_2013.csv",header = T) > LSsf = st_as_sf(cbind.data.frame(LS2013,geojsonsf::geojson_sf(LS2013$.geo))) > plot(LSsf) > You ...


2

This is a perfect case for using the modulo operator to "reset" values after they pass a certain threshold. The modulo operator is represented by % in the QGIS expression builder and returns the remainder after dividing the numerator by the denominator. The following expression will convert "gon" to degrees, add 90 degrees (to account for the change in ...


2

im not familiar with MOD021 but you can try the code below. It will convert every band in the product. You need to loop across the hdf layers. If the subdataset is still a multiband then you need to loop in that particular dataset and use GetRasterBand. I have tried it and it works. This code will transform each band to TIFF. The names will be 'band1.tif', '...


1

An elevation dataset will have two independent datums: a horizontal datum and a vertical datum. The horizontal datum is a property of the CRS, it maps an (x,y) value to a location on the earth. The vertical datum is a property of the data, like a specific sea level. For example, the SRTM dataset has a WGS84 horizontal datum because it uses the EPSG:4326 ...


1

I don't know what it was like back in 2016, but as of QGIS 3.10, this is implemented in in the available functions in QGIS in the expression editor or the field calculator. The documentation on the right (in the field calc dialog) gives you the solution of: to_date( "MyDateFieldNameWithDatesAsStrings" , 'dd/MM/yyyy' ) (whitespace are optional) and hit "OK"....


Only top voted, non community-wiki answers of a minimum length are eligible