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
7 votes
2 answers
87 views

Install Python library in QGIS as non-administrator

I would like to install the Python library in QGIS, but I have no administrator rights. Unfortunately, each solution found refers to the simplest installation via osGeo4W, which requires running as an ...
3 votes
2 answers
4k 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 ...
3 votes
1 answer
36 views

Difference between QGIS download and OSGeoW4 Network installer

I'm setting up my new computer and I want to reinstall QGIS. In the past, whenever a new version of QGIS was released, I downloaded the MSI file from the QGIS website. Once the installer was run, it ...
2 votes
1 answer
595 views

SSL module is missing when installing Python packages in QGIS with the new osgeo4w installer

I'm trying to install a third party python package in a QGIS plugin with the following code: import sys import platform import subprocess try: import matplotlib except ModuleNotFoundError: ...
1 vote
1 answer
313 views

GDAL C# Bindings for VRT don't write a VRT file

I have previously asked this question on stack overflow, and am now asking this more specialized audience. I'm wondering why the GDAL C# library (v2.3.3) call to Gdal.wrapper_GDALBuildVRT_names(...) ...
0 votes
1 answer
84 views

Merging a large number of GeoTIFF files via gdal_merge.py

I've got 136 GeoTIFF files that I'd like to merge using a Python program and gdal_merge.py on Windows but the command line max character limit is 8191 and concatenating all the file names goes over ...
2 votes
1 answer
113 views

Is it possible to export POINT and LINE in the same DXF from POSTGRESQL using OGR2OGR?

I have two tables in a pg database. One with annotations/points and one with linestrings. I would like to export both of them to the same dxf file with ogr2ogr. Is it possible at all somehow? I have ...
3 votes
1 answer
427 views

Compatibilty issue of pyexiv2 and ctypes module in QGIS 3.10 [closed]

I'm trying to install a python module called pyexiv2 onto QGIS 3.10, I've noticed this module doesn't work. Although the module's installation seems to process well python -m install pyexiv2 and I get ...
2 votes
1 answer
692 views

OGR shapefile output fails - Error 1 in psSHP->sHooks.fSeek()

When trying to use ogr2ogr to convert to ESRI Shapefile format, I get the following error consistently across different files: ERROR 1: Error in psSHP->sHooks.FSeek() while writing object to .shp ...
3 votes
1 answer
3k views

OSGeo4w: ogr2ogr script with FileGDB conversion working but getting a weird error : DATABASE.LAYOUT.VERSION.MINOR = 1 whereas a number >= 2 is expecte

Full command below with dummy paths: C:\OSGeo4W>ogr2ogr -f "FileGDB" "Path_to_some_geodatabase" "Path_to_some_geojson" -nlt POLYGON Full errors below: ERROR 1: PROJ: ...
0 votes
1 answer
425 views

GDAL version different if called from Windows Powershell and shows "ERROR 1: Can't load requested DLL 193: %1 is not a valid Win32 application."

I have two GDAL installation, one from the OSGEO4W installer and one from Tamas Szekeres’ Windows binaries. I set the necessary variables according to the article. I open Powershell and ran gdalinfo --...
0 votes
1 answer
67 views

OSGeo4W command line utilities provoke "Access is Denied" error [closed]

I regularly use OSGeo4W's Advanced Install to update and add packages. I have a Windows 10 Enterprise OS with Administrator rights, and a bunch of OSGeo commandline utilities installed. I installed ...
2 votes
1 answer
472 views

What is the QGIS installation type and OSGeo4W?

There are standalone last release and long term release among QGIS installation types on the QGIS homepage. However, there is one more OSGeo4W network installation file. What is this? Do I have to ...
0 votes
0 answers
250 views

Installing Python Packages with OSGEO failed

i want to install osmnx package to my osgeo system and use it on my qgis software. when i run C:\OSGeo4W\apps\Python39>pip install osmnx I get an error like this error: subprocess-exited-with-...
2 votes
2 answers
4k 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 ...
0 votes
0 answers
107 views

Importing SHP to Oracle -

I'm trying to import a SHP to my Oracle database. I've installed OSGeo4W (Express Install with all 4 packages). After running my command .\ogr2ogr.exe -f "OCI" "OCI:user/pass@192.168.1....
3 votes
1 answer
267 views

Using a Python IDE with OSGeo

I have the latest version of OSGeo4W64 installed on my Windows machine. I find it very convenient to have all the Python modules for QGIS, GDAL and GRASS all in one place. I would like to set up an ...
0 votes
0 answers
88 views

access csv file on azure lake storage zen2 via gdal virtual file systems

I've come across this post: Connecting QGIS with azure adls gen2 storage which partially talks about my request. We have a csv file cascaded into sub directories (contextualised) on a azure data lake ...
0 votes
0 answers
52 views

iface as NoneType object in OSGeo4W shell

I'm trying to run a PyQGIS script in OSGeo4W shell. Previously, I imported all the necessary modules: from qgis.core import * from qgis.utils import * QgsApplication.setPrefixPath("C:\\...
0 votes
0 answers
76 views

When using QGIS.Processing what is the temp memory argument? QgsProcessing.TEMPORARY_OUTPUT doesn't work

I am moving a QGIS model to PyQGIS to be able to run it as part of a bat file in OSGEO Shell. It's working fine in QGIS and if the data in each stage is written to a on disk file but I can't write to ...
2 votes
0 answers
107 views

No module name qgis in QGIS 3.22

I recently upgraded to QGIS 3.22 For plugin development I am using PyCharm. after upgrading QGIS to this version PyCharm is not able to read the pyqt, QGIS modules. I am running PyCharm with the ...
2 votes
0 answers
217 views

for loop for merging multiple *.gpkg files in OSGeo4W Shell

I´d like to merge multiple files (geopackages) saved in a Windows folder to one *.gpkg using OSGeo4W Shell: for %f in (\*.gpkg) do (ogr2ogr 'gpkg' -update -append merged.gpkg %f -nln merged.gpkg) ...
2 votes
3 answers
482 views

OSGeo4W Install from Local Directory seems to expect Win32 applications

I want to install QGIS 3.18 on a PC running Win7-64bits. I have manually downloaded all required files (listed in https://download.osgeo.org/osgeo4w/v1/x86_64/setup.ini) from here: https://download....
1 vote
1 answer
79 views

How to use ogr2ogr to reproject shapefile in Python

I am trying to reproject the coordinate system of a shapefile. I know I can do it in the OSGEO4W window as ogr2ogr -s_srs EPSG:27700 -t_srs EPSG:3857 C:/test/input.shp C:/test/output.tif However, I ...
0 votes
1 answer
71 views

ImportError: DLL load failed after QGIS Upgrade from 3.14.1 to 3.14.16

I have upgrade my QGIS from 3.14.1 to 3.14.16 and I get this error on startup. Traceback (most recent call last): File "", line 1, in File "C:/OSGEO4~1/apps/qgis/./python\qgis\...
1 vote
1 answer
243 views

geopandas error "OSError: could not find or load spatialindex_c-64.dll" in PyCharm using OSGeo4W paths

Using https://spatialgalaxy.net/2018/02/13/quick-guide-to-getting-started-with-pyqgis3-on-windows/ I created a .bat file to load the OSGeo4W and QGIS paths into PyCharm. Now I am getting an error ...
0 votes
0 answers
107 views

OSGeo4W / ogr2ogr gives "Unable to create or change a table without a primary key" error with MySQL 8.0

I'm trying to use OSGeo4W Shell to populate my MySQL DB with data from a shapefile and am having some difficulty. Here's the command I'm using: ogr2ogr -f MySQL MySQL:maps,host=localhost,user=root,...
45 votes
9 answers
44k 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\...
1 vote
1 answer
254 views

Trying to use GDAL in Windows Apache WSGI with Python 3.9.5 from OSGeo4W

Not much is missing and I'm going crazy. I'm pulling my hair out to get GDAL running under WSGI in Windows Apache using a Python 3.9.5 Installation from OSGeo4W. I have installed QGIS 3.24.2 with GDAL ...
2 votes
1 answer
805 views

QGIS Desktop not installing

I am trying to install the QGIS Desktop application on Windows 10. Upon a successful install, only the OSGeo4W Shell and the Grass GIS 7.8.5 are there on the apps list (within the QGIS folder), the ...
5 votes
3 answers
2k views

OSGeo4W does not add bin directory to Windows PATH

I am trying to run the following shp2pgsql cmd using the OSGeo4W shell: shp2pgsql -s 4269 -g geom_4269 -I -W "latin1" "tl_2012_states" staging.tl_2012_states | psql -h localhost -p 5432 -d dvdtwo -U ...
0 votes
1 answer
236 views

"The term 'gdal2tiles.py' is not recognized" error and then gdal2tiles.py script opens instead of running after adding necessary system variables

I'm using GDAL 3.3.1 installed via OSGeo4w. I ran gdal2tiles.py world.tif but it said gdal2tiles.py : The term 'gdal2tiles.py' is not recognized as the name of a cmdlet, function, script file, or ...
3 votes
0 answers
183 views

Error with PyScripter and QGIS 3.22, can't find DLL

Since using the new installer for the x64 only version OSGeo4W/QGIS (new 3.22 LTR), I can't no longer use PyScripter with the bundled PyQt5. When I try to import QSettings for example, PyScripter can'...
7 votes
6 answers
42k views

Installing Python-GDAL with OSGEO?

I have been trying to install python gdal with OSGEO for some time now with no success. I have removed. I have tried with "Express and Advance" as suggested by OSGEO4W site. The error is always "No ...
7 votes
7 answers
9k 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 ...
1 vote
1 answer
403 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: '...
0 votes
1 answer
338 views

QGIS OSGEO4W Install Error - Unable to Extract /bin/BGSPAWN [closed]

I am getting this error when I try to install QGIS-Dev I have checked the Process Log and also run Process Explorer but can't find BGSpawn anywhere. searched all of C drive. checked https://www.mail-...
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 ...
0 votes
0 answers
230 views

Changing the output DXF version when exporting with ogr2ogr

I am exporting a DXF file from a PostgreSQL database. If I use the OSGeo4W installed with the 3.8 vesrion of QGIS, the dxf version will be a newer one than what I would get if I would use the OSGeo4W ...
3 votes
1 answer
433 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 ...
0 votes
0 answers
100 views

Can't install Fiona in OSGeo4W Shell on Windows 10

When trying to install "Fiona‑1.8.20‑cp39‑cp39‑win_amd64.whl" in the OSGeo4W Shell I get the following errors: extensions/gdal_wrap.cpp(3198): fatal error C1083: Datei (Include) kann nicht ...
0 votes
1 answer
688 views

Reset Python version to default [closed]

Regrettably, I followed a tutorial and set PYTHONPATH to qgis\apps\python. After doing so, typing python -V in the OSGeo4W Shell gives Python 2.7.14. Previously, the result was Python 3.7.0, which is ...
1 vote
1 answer
390 views

Setting up PyQGIS 3 (QGIS 3.12) interpreter in PyCharm 2018.3.7

I cannot set up the correct interpreter for PyQGIS 3 in PyCharm 2018.3.7. Using: QGIS 3.12.0, OSGeo4W64, Python 3.7 (part of the OSGeo4W64 folder), PyCharm 2018.3.7. My .cmd files in OSGeo4W64 look ...
0 votes
0 answers
54 views

Infilling gaps of XYZ data consisting of no values with XYZ values of another dataset using GDAL

I have 2 sets of XYZ data. The first is this one: and the second is this: Evidently, the two XYZ datasets are 2 different surveys of the same area. What I am trying to do is take dataset 2 and fill ...
0 votes
0 answers
52 views

GDAL_Merge not included in OSGEO4W window

I download QGIS Desktop 3.18.3 which came with OSGEO4W I ran o-help on the OSGEO4W window and noticed gdal_merge etc werent included as available commands. Yet if I go to apps/python37/scripts folder ...
1 vote
0 answers
1k views

How to merge all raster files in a folder using gdal_merge?

I have DEMs in a folder like this If I run gdal_merge -o out.tif *.hgt, it says ERROR 4: `/*.hgt' does not exist in the file system, and is not recognized as a supported dataset name. A similar ...
0 votes
0 answers
79 views

QGIS raster band value differs according to zoom/scale when using ascii and GeoTIFF versions of same raster

I converted an ascii raster to GeoTIFF (for the first time), then inspected the result in QGIS seeking confidence in my achievement. What fails: "Identify Features" returns different band ...
1 vote
0 answers
336 views

Setup QGIS to use in C++ Qt Application

I have been working on a Qt5 Widgets based application. I'm required to display maps (vector charts) in my application on a widget and for that purpose I've decided to use the QGIS library in my ...
2 votes
1 answer
336 views

How to resize label in PyQGIS?

How can i make it so the legend on the left bottom don't cover the map?
2 votes
2 answers
254 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 ...

1
2 3 4 5 6