3D of Elevation in Basemap ? /u/eidrisov Python Education

Hi everyone!

I have just discovered Basemap and I have a few questions:

  1. Is it possible to actually build 3D design of the terrain in topological maps ? There is this example (see the code below) that allows elevations to be seen from above as a picture. What I am interested in is to see elevations not as a picture from above, but as a 3D objects, e.g. if I zoom in, I should be able to look at the mountain from the different sides as well as above.

    from mpl_toolkits.basemap import Basemap from mpl_toolkits.basemap import shiftgrid import matplotlib.pyplot as plt from osgeo import gdal import numpy as np

    map = Basemap(projection=’tmerc’, lat_0=0, lon_0=3, llcrnrlon=1.819757266426611, llcrnrlat=41.583851612359275, urcrnrlon=1.841589961763497, urcrnrlat=41.598674173123)

    ds = gdal.Open(“../sample_files/dem.tiff”) elevation = ds.ReadAsArray()

    map.imshow(plt.imread(‘../sample_files/orthophoto.jpg’))

    map.imshow(elevation, cmap = plt.get_cmap(‘terrain’), alpha = 0.5)

    plt.show()

  2. Is it possible to save elevation maps created by RidgeMap as .obj, .f3d or .stl files later to import into Fusion 360 (or any other 3D design program) ?

Thanks in advance for any help!

submitted by /u/eidrisov
[link] [comments]

​r/learnpython Hi everyone! I have just discovered Basemap and I have a few questions: Is it possible to actually build 3D design of the terrain in topological maps ? There is this example (see the code below) that allows elevations to be seen from above as a picture. What I am interested in is to see elevations not as a picture from above, but as a 3D objects, e.g. if I zoom in, I should be able to look at the mountain from the different sides as well as above. from mpl_toolkits.basemap import Basemap from mpl_toolkits.basemap import shiftgrid import matplotlib.pyplot as plt from osgeo import gdal import numpy as np map = Basemap(projection=’tmerc’, lat_0=0, lon_0=3, llcrnrlon=1.819757266426611, llcrnrlat=41.583851612359275, urcrnrlon=1.841589961763497, urcrnrlat=41.598674173123) ds = gdal.Open(“../sample_files/dem.tiff”) elevation = ds.ReadAsArray() map.imshow(plt.imread(‘../sample_files/orthophoto.jpg’)) map.imshow(elevation, cmap = plt.get_cmap(‘terrain’), alpha = 0.5) plt.show() Is it possible to save elevation maps created by RidgeMap as .obj, .f3d or .stl files later to import into Fusion 360 (or any other 3D design program) ? Thanks in advance for any help! submitted by /u/eidrisov [link] [comments] 

Hi everyone!

I have just discovered Basemap and I have a few questions:

  1. Is it possible to actually build 3D design of the terrain in topological maps ? There is this example (see the code below) that allows elevations to be seen from above as a picture. What I am interested in is to see elevations not as a picture from above, but as a 3D objects, e.g. if I zoom in, I should be able to look at the mountain from the different sides as well as above.

    from mpl_toolkits.basemap import Basemap from mpl_toolkits.basemap import shiftgrid import matplotlib.pyplot as plt from osgeo import gdal import numpy as np

    map = Basemap(projection=’tmerc’, lat_0=0, lon_0=3, llcrnrlon=1.819757266426611, llcrnrlat=41.583851612359275, urcrnrlon=1.841589961763497, urcrnrlat=41.598674173123)

    ds = gdal.Open(“../sample_files/dem.tiff”) elevation = ds.ReadAsArray()

    map.imshow(plt.imread(‘../sample_files/orthophoto.jpg’))

    map.imshow(elevation, cmap = plt.get_cmap(‘terrain’), alpha = 0.5)

    plt.show()

  2. Is it possible to save elevation maps created by RidgeMap as .obj, .f3d or .stl files later to import into Fusion 360 (or any other 3D design program) ?

Thanks in advance for any help!

submitted by /u/eidrisov
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *