We’re rewarding the question askers & reputations are being recalculated! Read more.

New answers tagged

0

Although your question is a bit broad for this site, consider this answer as an introduction guide. For that, you need: The line that represents the shortest path betwwen A and B, over a mathematical reference surface (it can be drawn, and densified, with a custom gnomonic projection). To know physical/terrain/geographical obstructions between A and ...


3

I'm going to assume the DEM you are working with is in a geographic projection. If it's in UTM or something, you can still do what you want, but it'll be a little more complex. First, you need to get the transformation matrix from the GDAL dataset. transform = inRas.GetGeoTransform() xOrigin = transform[0] # x origin yOrigin = transform[3] # y origin ...


1

If I have understood you correctly I think this is fairly straightforward. Add a new field to the attribute table of your building and woodland shapefiles, I would call it elevation. Use Field Calculator to assign the value of 8 and 15 respectively. Use the Polygon to Raster tool on each to convert them to rasters. Value field is your elevation attribute....


0

Filtering is for imageCollections. To clip an image, try this instead: var dem = ee.Image("JAXA/ALOS/AW3D30_V1_1"); var geometry = ee.Geometry.Polygon( [[[1.3787373046875473, 49.38636777007675], [1.3787373046875473, 48.32016208111379], [3.5265644531250473, 48.32016208111379], [3.5265644531250473, 49.38636777007675]]...


3

Compute contour lines from your elevation raster Intersect your road layer with the contour lines using the line intersection tool.


0

If you want to download the masked image, just create a new clipped variable and export it. Add this piece of code to the end your script (I selected bands 4, 3 and 2 in order to get an RGB): // create clipped RGB var clipped = above10.select(['B4','B3','B2']).clip(geometry) // Export clipped with your chosen parameters Export.image.toDrive({ image: ...


2

If you have access to a basic 3D Analyst license you can use Add Surface Information to populate the attribute table of a feature class with the Z value of the surface of your choice. Keep in mind that this tool (like all ESRI tools that have a vector to raster interface) will require that your two datasets share a coordinate reference system. If you do ...


0

A solution is to get the DEM elevation values of the same points xy coordinates (red lines projections in the figure below) using osgeo.GDAL or rasterio to read the DEM, GeoPandas for the points shapefile and affine to get the elevation value (see Python affine transforms). With GDAL from osgeo import gdal from affine import Affine import geopandas as gpd ...


2

You can also use QGIS (which is open source) and/or Blender plugin Blender GIS. Using QGIS, you can make a SHP (shapefile) out of a DEM and with Blender GIS you make a mesh out of the SHP (see this question and this question), or, you can import SRTM directly into Blender using only Blender GIS.


Top 50 recent answers are included