ubarsc / tuiview

TuiView is a lightweight raster GIS with powerful raster attribute table manipulation abilities
http://tuiview.org/
GNU General Public License v2.0
26 stars 13 forks source link

I tried to load vector data, but an error occurred #16

Closed ytkz11 closed 3 years ago

ytkz11 commented 3 years ago

ImportError: DLL load failed while importing vectorrasterizer

ytkz11 commented 3 years ago

More specifically, it's a problem that occurs after you compile VectorRasterizer.c

gillins commented 3 years ago

@ytkz11 are you using the packages from conda-forge?

ytkz11 commented 3 years ago

@gillins thank you very much. Run perfectly in conda-forge.

gillins commented 3 years ago

That's good to hear. I'd always recommend using conda-forge for installing TuiView.

Installing yourself (without conda-forge) on Windows is difficult as you have to install all the dependencies yourself and compiling vectorrasterizer.c can be tricky (need the right MS compiler for your Python version https://wiki.python.org/moin/WindowsCompilers - must call the right vcvars.bat first). You also need to set the GDAL_HOME environment variable to the root of your GDAL installation.