Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

after i installed GDAL For blender Basemap won't work again ! #942

Open
M0ajod opened this issue Dec 27, 2024 · 0 comments
Open

after i installed GDAL For blender Basemap won't work again ! #942

M0ajod opened this issue Dec 27, 2024 · 0 comments

Comments

@M0ajod
Copy link

M0ajod commented Dec 27, 2024

Blender and OS versions

blender-4.2.3-windows-x64 windows 10 pro

Describe the bug

i tried many gdal version from lastest to the older from here https://github.com/cgohlke/geospatial-wheels/releases for example GDAL-3.6.4-cp311-cp311-win_amd64.whl and also numpy from https://github.com/cgohlke/numpy-mkl-wheels/releases numpy-2.1.2-cp311-cp311-win_amd64.whl and i followed How to install gdal from your site https://github.com/domlysz/BlenderGIS/wiki/How-to-install-GDAL and i did everything new Windows environment variable named GDAL_DATA and osgeo files in sitepackages but when i run blender and i have my custom geotiff from another software in scene and when i tried to open basemap showing crash log

How to Reproduce

I tried many times in blender and Install BlenderGIS
Use the web basemap tool, image
Install GDAL into Blender following the instructions on the wiki and using the .whl files named above.
Attempt to use the web basemap tool, and observe Blender crash.

Error message

Python: Traceback (most recent call last):
File "C:\Users\Nashville\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\BlenderGIS-master\operators\view3d_mapviewer.py", line 523, in execute
bpy.ops.view3d.map_viewer('INVOKE_DEFAULT', srckey=self.src, laykey=self.lay, grdkey=self.grd, recenter=self.recenter)
File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\bpy\ops.py", line 107, in call
ret = _op_call(self.idname_py(), kw, C_exec, C_undo)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Error: Python: Traceback (most recent call last):
File "C:\Users\Nashville\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\BlenderGIS-master\operators\view3d_mapviewer.py", line 602, in invoke
self.map = BaseMap(context, self.srckey, self.laykey, self.grdkey)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Nashville\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\BlenderGIS-master\operators\view3d_mapviewer.py", line 85, in init
self.srv = MapService(srckey, cacheFolder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Nashville\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\BlenderGIS-master\core\basemaps\mapservice.py", line 386, in init
self.srcTms = TileMatrix(GRIDS[self.srcGridKey])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Nashville\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\BlenderGIS-master\core\basemaps\mapservice.py", line 87, in init
self.xmin, self.ymax = self.geoToProj(lonMin, latMax)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Nashville\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\BlenderGIS-master\core\basemaps\mapservice.py", line 143, in geoToProj
return reprojPt(4326, self.CRS, long, lat)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Nashville\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\BlenderGIS-master\core\proj\reproj.py", line 337, in reprojPt
rprj = Reproj(crs1, crs2)
^^^^^^^^^^^^^^^^^^
File "C:\Users\Nashville\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\BlenderGIS-master\core\proj\reproj.py", line 231, in init
self.crs1 = crs1.getOgrSpatialRef()
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Nashville\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\BlenderGIS-master\core\proj\srs.py", line 158, in getOgrSpatialRef
raise ValueError('Cannot initialize osr : ' + self.proj4)
ValueError: Cannot initialize osr : +init=epsg:4326
Location: C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\bpy\ops.py:107

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant