Questions tagged [osgeo4w]

OSGeo4W is a binary distribution of a broad set of open source geospatial software for Win32 environments (Windows XP, Vista, etc).

Filter by
Sorted by
Tagged with
184 votes
7 answers
234k views

Installing File Geodatabase (*.gdb) support in QGIS

I have spent around 2 days to find the way to open GDB (ESRI Geodatabase) in QGIS (or any other open source software) but still without success. I have downloaded the newest OSGeo4W installer and ...
Miro's user avatar
  • 9,744
45 votes
9 answers
47k views

GRASS not working with QGIS says This algorithm cannot be run

I updated QGIS to version 3.6 using OSGEO4w When I try to run any GRASS script, I get the following error message : This algorithm cannot be run :-( The specified GRASS 7 folder "C:\OSGEO4~1\...
Kantan's user avatar
  • 1,917
23 votes
4 answers
23k views

Using OSGeo4W shell with Python 3

I would like to use OSGeo4W shell with Python 3 but when typing python3 I get the following error: Fatal Python error: Py_Initialize: unable to load the file system codec File "C:\OSGEO4~1\apps\...
bennos's user avatar
  • 2,069
16 votes
2 answers
29k views

Merging all tiles from one directory using GDAL

I would like to use GDAL (under Windows; OSGeo4W Shell) to merge all GeoTIFFs from one directory into a new GeoTIFF. I have tried to address them by writing c:\data\....\*.tif which however does not ...
Arne's user avatar
  • 815
5 votes
2 answers
5k views

Convert raster to a CSV values and lat long based on raster value in QGIS

I am looking to convert a raster into a csv file (or tab delimited) based on values in the raster (Value > 0). The csv would have three values, latitude of center of cell, longitude of center of cell,...
If you do not know- just GIS's user avatar
50 votes
2 answers
77k views

How do I check which version of GDAL I have and how many?

I have installed in my computer the following software: PosgresSQL 9.3.2.3 PostGIS 2.1.1.1 QGIS 2.0.1 Dufour (this one installed through the OSGeo4w package) QGIS 1.7.0 Wroclaw As far as I know all ...
Web-GIS entrepreneur's user avatar
12 votes
2 answers
1k views

Can ArcGIS and OSGeo4W share the same python install? [duplicate]

I don't like unnecessary duplication. Is it possible to install python only once and have both ArcGIS and OSGeo4W using it?
matt wilkie's user avatar
  • 28.2k
4 votes
2 answers
3k views

GDAL_CALC works but I get a python error at the end of each process that prevents automation

Python 3.4.1, GDAL 1.11.0, OSGEO4W, Windows 7, OSGEO4W Windows Shell All 64-bit (ArcGIS is installed as well 10.2 with Python 2.7) So gdal_translate works fine. gdal_calc provides perfect ...
If you do not know- just GIS's user avatar
28 votes
2 answers
32k views

What is OSGeo4W?

I have been using GIS for a few years now (ArcGIS and MapInfo). But only when I have started using QGIS I come across OSGeo4W, as there is an option to download it on the QGIS website. I have tried ...
T.O.6's user avatar
  • 947
7 votes
2 answers
3k views

QGIS 2.16 - Installation problem under Windows 10

I installed twice Qgis 2.16 using OSGeo 4w install. First I uninstalled all the previuos version and installed 2.16. Everything worked fine but when I open Qgis I have a warning message: Couldn't ...
Gerardo Jimenez's user avatar
6 votes
3 answers
7k views

No Module named qgis

I installed QGIS through OSGeo4W, and I am trying to write a standalone PyQGIS script, however, I am unable to import the qgis, qgis.core, processing ect… modules, as shown in the picture, I get the ‘...
user avatar
5 votes
1 answer
1k views

Loading WMS with PyQGIS

I have installed QGIS server on Ubuntu 14.04 which serves WMS. Connection uses https and basic auth. URL is https://my.awesome.url:8090/cgi-bin/project1/qgis_mapserv.fcgi I can connect with QGIS and ...
Matthieu's user avatar
  • 402
3 votes
2 answers
5k views

Fixing "The resource compiler pyrcc5 was not found"

I was trying to use Plugin Builder to create custom tool. When I set up parameters for plugin and press "generate", an error appear. Same situation in QGIS that was downloaded with OSGEO4W64. I ...
Pavel Pereverzev's user avatar
3 votes
2 answers
3k views

GRASS not working with QGIS 3.7

Like the author of GRASS not working with QGIS 3.6, I am unable to use GRASS plugins, with the error: This algorithm cannot be run :-( The specified GRASS 7 folder "C:\OSGEO4~1\bin\bin" ...
maspiers's user avatar
3 votes
1 answer
1k views

Import Qgis.core in Spyder

I'm currently trying to translate the tasks I performed using Qgis (3.16.5) into a Python (Spyder) script, such that I will be able to perform these tasks on multiple files more easily. However, I'm ...
Kris van den Berg's user avatar
3 votes
2 answers
1k views

gdal2tiles is not recognized as an internal or external command?

I try to follow this guide ► Creating super-overlays with gdal2tiles, everything goes well until it reachs gdal2tiles part. When I type the command gdal2tiles.py -p geodetic -k bluemarble2.vrt or ...
Dan's user avatar
  • 1,060
2 votes
2 answers
5k views

Using gdal functions from OSGeo4W out of their shell?

I would like to use some gdal functions from OSGeo4W (gdal2xyz, and gdal_merge) for my work. I can use them in the OsGeo4W shell provided after installing the package. But I want to use them in ...
shirleydd's user avatar
  • 171
1 vote
2 answers
3k views

Writing shapefile to SQL Server database with ogr2ogr Error

I have been using ogr2ogr to write point shapefiles to a SQL Server Database of mine. I used it 2 weeks ago and it worked fine, but, today when I tried to run it, I get the following error: ERROR1: ...
user avatar
1 vote
2 answers
4k views

QGIS 3.8 could not start ''Qgis_app.dll is missing'' check runtime environment check C:\OSGEO4W64\bin\qgis-dev-bin-g.exe

I had Qgis 3.4 running well on my PC Windows 10, 64 bit. I tried to upgrade to Qgis 3.8 Zanzibar and I had the error message: ''Qgis_app.dll is missing check runtime environment check C:\OSGEO4W64\bin\...
Mel's user avatar
  • 17
1 vote
2 answers
5k views

'pyrcc4' is not recognized as an internal or external command?

C:\Users\Department\.qgis2\python\plugins\np>pyrcc4 -py2 resources.qrc -o resources.py 'pyrcc4' is not recognized as an internal or external command, operable program or batch file. How do ...
Prabhath Nishan's user avatar
9 votes
1 answer
2k views

Compiling resources.qrc with QGIS 3.20 (could not find qt5_env.bat)

To compile resources.qrc file with pyrcc5 we usually do qt5_env.bat py3_env.bat pyrcc5 -o pathtoplugin\resources.py pathtoplugin\resources.qrc using OSGeo4W Shell as described in many questions on ...
MrXsquared's user avatar
  • 34.4k
8 votes
7 answers
11k views

How to setup Visual Studio Code (Windows) for PyQGIS 2 or 3?

I'm trying to use Visual Studio Code (VSC) as IDE for my QGIS plugins with the Python extension, but something doesn't work as expected. I've been reading about the PyCharm config from Gary S. but I ...
Guts's user avatar
  • 622
6 votes
1 answer
8k views

Can ogr2ogr write data to a file geodatabase feature dataset?

I am dumping postgis tables into a file geodatabase and it works great--the result is a file geodatabase full of featureclasses. But is it possible to write these featureclasses into feature ...
Jay Cummins's user avatar
  • 14.6k
6 votes
0 answers
1k views

Exporting QGIS Atlas using PyQGIS (qgis.core)

Windows 10, PyCharm, QGIS 3.10 installed via osgeo4w (64bit). I set up a simple QGIS composer layout with a vector layer and a WMS base map on the map layout. The vector layer contains about 10 ...
Theo F's user avatar
  • 1,829
5 votes
2 answers
4k views

Grass tools not working in QGIS 2.14.3-ESSEN, OSGEO4W [duplicate]

Windows 10 QGIS 2.14.3-ESSEN OSGEO4W install (current) 64-bit Processing toolbox. Grass tools do not work Neither 6 nor 7. 6 makes sense as I do not see OSGEO4W installing it but 7 tools are ...
If you do not know- just GIS's user avatar
5 votes
5 answers
11k views

How to install Fiona to read Shapefile attributes with OSGeo4W?

I´m developing a plugin in Python and I need to read the shapefile attributes, so I found the Fiona API and dbfpy also but I don't understand how to install these packages because I install the QGIS ...
Bárbara Duarte's user avatar
4 votes
2 answers
4k views

Installing scikit-learn python package for QGIS on Win

I want to install scikit-learn package to be executed in Python-QGIS. I've tried to use OSGeo4W Shell to install with pip. But I got this error. I've tried to run osgeo4w-setup-x86_64.exe and install ...
Trần Ngọc Bích's user avatar
3 votes
1 answer
2k views

Making 'make'-command work for compiling QGIS-plugins?

How can I compile my plugin when the 'make'-command refuses to work in the OSGeo4W Shell? Can I make the 'make'-command work? Is there an alternative out there? I'm trying to build a plugin for ...
Herman81's user avatar
3 votes
1 answer
2k views

Creating executables from Python using OSGeo4W shell

I've been trying to create an executable from my Python script and using the OSGeo4W.bat shell. I tried py2exe but it returns an access denied error. Previously I've written executables using py2exe ...
LHo's user avatar
  • 509
3 votes
1 answer
576 views

OSGEO4W Installer avce00.exe error

The latest OSGeo4W Installer reaches 100% and then throws an error: Unable to extract /bin/avcexport.exe -- the file is in use. Please stop all OSGeo4W processes and select "Retry", or ...
esm8's user avatar
  • 81
3 votes
1 answer
2k views

Unable to read TIFF file with raster2pgsql

I am having some trouble with the raster2pgsql function (on a Windows 7 in the OSGeo4W shell). I am receiving the error "Unable to read raster file". I can import shapefiles, ok using org2org so I ...
CarlaBirdy's user avatar
3 votes
1 answer
2k views

Use OGR and GDAL in Python outside OSGEO4W shell

I have QGIS installed, therefore it installed the OSGeo4W with all functionalities and that works great. I added all the environment variables as proposed in this post: Is there a way to use gdal ...
gracegimon's user avatar
2 votes
2 answers
2k views

ModuleNotFoundError: No module named 'colour' in QGIS Python Console

I'm trying to run a Python script in QGIS which imports the colour module. However, when I run it via the Python console in QGIS, I receive the ModuleNotFoundError: Python Console Use iface to access ...
Josh.s's user avatar
  • 41
2 votes
2 answers
4k views

OSgeo4W64 Windows 7 & ImportError: No Module Named Site

I realize this question has been asked a lot, but I was not able to resolve my issue through the answers posted elsewhere... I am new to Python, gdal, OSgeo4W, etc. but have experience with ArcGIS. I'...
mastermapper's user avatar
2 votes
0 answers
318 views

GeoDjango: AttributeError: function 'GDALAllRegister' not found [closed]

Im trying to get started with GeoDjango. I am using this https://docs.djangoproject.com/en/1.8/ref/contrib/gis/tutorial/ tutorial. When I run "python manage.py migrate" This error occur: "...
CSL's user avatar
  • 21
2 votes
2 answers
401 views

Using gdal_calc.py from the OSGeoW4 Shell [duplicate]

I want to run gdal_calc.py from within the OSGeoW4 shell but am having only limited success. Firstly, if I type in -o help gdal_calc does not appear in the list, as show below, whereas I have seen ...
AndyH's user avatar
  • 61
2 votes
2 answers
2k views

QGIS installation from OSGeoW4: entry point not found in qgis_core.dll

I have installed QGIS through OSGeo4W installation. My operation system is windows 7 64x. I try to start the program QGIS Desktop from start menu this error: Do I need to do something? Installation ...
f.ashouri's user avatar
  • 541
2 votes
1 answer
3k views

Installing Apache Web Server from OSGeo4W

I am trying to create a QGIS web client on my Windows 8 But with OSGEO4W not appear the option to make Apache installs Web Server, as of this writing in several tutorials and documentations. A print ...
Manoel Guedes's user avatar
1 vote
1 answer
519 views

Unable to execute GRASS 7.8 in RStudio

Using the initGRASS command in RStudio on Windows, I get the following error after I installed a new GRASS version on a new path: Error : XML content does not seem to be XML: '...
A J's user avatar
  • 47
1 vote
1 answer
383 views

gdalwarp's minimum resampling has no effect (possible bug)?

I'm attempting to use the minimum operator with gdalwarp v2.1.0 but it always mosaics as if I had selected nearest neighbor. From the docs: -r resampling_method: min: minimum resampling, selects ...
mikewatt's user avatar
  • 5,083
1 vote
1 answer
4k views

PyInstaller myscript.py - issues: empty dist folder

This question is subsequent to another question: here. The question was solved but I ran into another issue and tried to ask it there but it is worth being its own question I think. Python version in ...
LHo's user avatar
  • 509
1 vote
1 answer
418 views

ETOPO1 upsampling issue

I am using the OSGeo4W Shell with the ETOPO1, 1 arc-minute global bathymetric data (etopo1_ice_g_f4.flt). I am cutting 256x256 pixel slippy map tiles, and am having a problem with getting smooth-...
OrangeWombat's user avatar
1 vote
2 answers
2k views

Do not have pip for my QGIS Python.

I want to install gsutil onto my QGIS's version of python. Most tutorials say I should be able use the pip/pip3 command. When I run OSGeo4WShell, it does not have the pip command available. How can ...
Taha Arif's user avatar
1 vote
2 answers
3k views

Use OSGeo4W shell command from python 2.7 script

I would like to convert jp2 files (sentinel-2) to geotiff format using python 2.7 on win 10. I saw some solutions using python and GDAL but they did not work for me. The only thing that did work was ...
user88484's user avatar
  • 1,779
1 vote
1 answer
6k views

Changing GDAL version in QGIS to get ECW import to work

I’ve previously been successful in importing ecw into QGIS 2.0 but the same methods (for example Adding *.ecw files to QGIS on Windows) have failed with a fresh install of QGIS 2.2 with OSGeo4W on W7 ...
goatwillow's user avatar