Tag Info

Hot answers tagged

4

Here are some ideas. With base plot you can do plot(x, interpolate=TRUE) You can also resample your data y <- disaggregate(x, 5, method='bilinear') Or indeed smooth it using a focal operation y <- focal(x, w=matrix(1, 5, 5), mean) Or a combination y <- disaggregate(x, 5) y <- focal(y, w=matrix(1, 5, 5), mean) The question ...


3

In 4th line: QString MyRaster = myRasterFileName + myRasterFileName; Should be: QString MyRaster = MyRasterPath + myRasterFileName;


2

It sounds like you have a DEM and you want to augment the accuracy of that DEM with some elevation data you collected as points. That's totally possible but the process probably isn't as linear as you would like it to be. That is - you can't (to my knowledge) update the values of raster cells from vector points directly. You have to go through the process ...


2

In your case I would recommend to set up a WMS service using mapserver or something equivalent, and then requesting tiles from the WMS endpoint. http://mapserver.org/ogc/wms_server.html This is a very flexible approach, as on the backend you do not need to worry about the exact TMS tiles definitions (indices and bboxes etc). Instead, let the frontend ...


1

You can use the OpenCV package in Python for image thresholding. This example shows not only how to perform the binary image thresholding, but also the limitations of this method. Here, I use a 1m spatial resolution NAIP image that shows a dirt road surrounded by arid vegetation. You can see that the road is extracted but there is also a significant amount ...


1

here is the solution : you can use this code QString myFileName = QFileDialog::getOpenFileName(this, tr("Open File"), QCoreApplication::applicationDirPath () + "/data", tr("GeoTiff (*.tif)")); QFileInfo myRasterFileInfo(myFileName); qDebug() << "myFileName =" << myFileName; QgsRasterLayer ...


1

This might do it: r.mapcalc "distances_with_negatives = if(isnull(B), -1.0*A, A)"


1

Compute the focal (neighborhood) maximum of the flow accumulation grid, using the smallest circular neighborhood you can get away with. Extract the values of that grid along the river features. Given that flow accumulation grids are usually computed as sums of unit values, and therefore have integral values, you might also consider selecting the locally ...


1

It depends what you mean with georeferencing. There actually is the ST_Georeference function which doesn't change the raster itself, it simply defines where the raster is located in space by setting 6 offset/scale/skew coefficients. As mentioned by @JohnBarça, your raster should have the proper georeferencing metadata, but sometimes it doesnt, and that is ...



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