Hot answers tagged

1

You're writing a "MEM" raster, it's in MEMory. If you want to write to file, use a file based format like a GeoTIFF. From the docstring in @Jose's rasterize_me function: If you want to generate a GTiff on disk, set format to GTiff and fname_out to a sensible filename. So do something like: rasterize=rasterise_me(r"the/path/to/my/raster.tif&...


1

Contour lines in OSM based maps are generated from other source data. It would make no sense to store contour lines into the OSM database because they would require much more space than the rest of the data. Also contour lines are derived from digital elevation model data and not created or edited by OSM contributors. See the documentation of the map that ...


1

To add timestamps to timelapse, you need to add text overlays to each frame using the example from here. It is based on gena's textoverlay package. To import that package use :var text = require('users/gena/packages:text'). Then create a function that adds a property called label to each image in your stack with the timestamp of your choice. Finally, print/...


1

The closest thing to what you want to do is a Layer (or Map) Package. You cannot export a Group Layer into a shapefile. A group layer is a virtual container of almost anything. Features, rasters, etc. A shapefile can only have one geometry type (meaning you cannot mix points and polygons into a single shapefile). Hopefully you see why you cannot simply turn ...


1

In this part of your code var r = i.reduceRegion({ reducer: ee.Reducer.mean(), geometry: f.geometry(), scale: 500, bestEffort:true, maxPixels:1e9}); return ee.Feature(null, { name: f.get('OBJECTID'), index: i.get('system:time_start')}); you are not using r at all, so nothing from it is included in the result (in fact, it's not even computed ...


1

If desired functionality is to save current location with save button when location is available from L.control.locate control, it makes sense to show save button only when L.control.locate is activated. Activation of control and consequent retrieving of current location can be detected through standard map locationfound event. Problem is detecting ...


1

After 2-3 hour of testing and trying, I solve my problem and your question! I add the following lines: ..... coordinateTransformContext=QgsProject.instance().transformContext() o_save_options.ct = QgsCoordinateTransform(QgsCoordinateReferenceSystem( 'EPSG:4326') ,QgsCoordinateReferenceSystem('EPSG:3844'),coordinateTransformContext) ..... My problems was ...


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