Hot answers tagged

5

In GIS: Set a Min Max value for one raster (Right click > Properties... > Symbology). Copy The raster's style Select other rasters Paste the style


5

You have to use like this: QgsVectorFileWriter.writeAsVectorFormatV2(#layer#, #file_path#, #transform_context#, #options#) file_path= "/Path/To/File.shp" transform_context = QgsCoordinateTransformContext() options = QgsVectorFileWriter.SaveVectorOptions() options.driverName = "ESRI Shapefile" QgsVectorFileWriter....


4

Does DxfLayer even support multiple inputs? No. The error QgsDxfExport.DxfLayer(QgsDxfExport.DxfLayer): argument 1 has unexpected type 'list' states that, explicitly. But you can use dxfExport.addLayers([QgsDxfExport.DxfLayer(lyr) for lyr in lyr_names])


4

Thanks for the thumbs down. In case anyone is facing the same issue, in my case, the problem was that I was trying to use a different page size in the Print Layout, which causes the labels to change position and size. In my case a custom large size was making the labels so small they were barely visible.


2

Another way of doing that is to convert your ImageCollection to an Image with multiple bands. Then, you can extract the band names, get the second name (index 1) and use getInfo to convert the band name to a client side object. An advantage of using this approach is that the image can be easily exported. // Convert image collection to a single image with a ...


2

Quick and dirty way to do this would be to change the image collection to a list of images and then use get() to select the image that you want: var evi2weekList=ee.ImageCollection(evi2week).toList(999); var evi2week2ndImage=ee.Image(ee.List(evi2weekList).get(1)); //note index 0 is the first image print('2ndImage from evi2week imColl',evi2week2ndImage) ...


1

The data that you are looking for can be accessed here: https://www.worldpop.org/project/categories?id=3 Some details about this: WorldPop produces different types of gridded population count datasets, depending on the methods used and end application. ..... Bespoke methods used to produce datasets for specific individual countries are available through ...


1

does it mean that the result would be incorrect or the code can't run? Code can't run. Specifically, the computation will time-out (after around 5 min). The guide recommends that intensive computations be done in steps, exporting the intermediate results, as exporting allows for a longer run time. References: https://developers.google.com/earth-engine/...


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