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
2 votes
1 answer
907 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
371 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
0 answers
26 views

Error installing norGIS ALKIS Importer package with OSGeo4W

I am trying to import ALKIS NAS Data (XML) in QGis. These are german test cadaster datas. I already created a PostGIS database where I can import the XML with the nor GIS ALKIS importer. This will be ...
0 votes
1 answer
115 views

QGIS 3.34 core plugin SAGA GIS provider defect, missing metadata file (OSGeo4W)

I updated QGIS to the new version via OSGeo4W Setup. Everything worked fine, but when I check plugins, the sagaprovider core plugin shows an error message, that the plugin is defect and the metadata ...
0 votes
1 answer
40 views

'java' is not recognized as an internal or external command, operable program or batch file

When I open the Windows 10 command line and write "java -version" at the cursor, the response is: java version "1.8.0_391" Java(TM) SE Runtime Environment (build 1.8.0_391-b13) ...
1 vote
1 answer
188 views

Receiving message 'py3_env is not recognised...' in OSGeo4W

I'm trying to install python packages into QGIS via OSGeo4W. I've been following steps from YouTube on installing external Python libraries into QGIS from 'Amy Lou' and 'GEO 2004'. My operating system ...
0 votes
1 answer
52 views

Unable to upgrade QGIS LTR from 3.16 to 3.28 from OSGEO4W setup

I installed QGIS via OSGEO4W 3 years ago. I've been quite happy using the same LTR since that time. I'd like to upgrade to the latest LTR (3.28) but the setup mechanism does not make it available. Is ...
2 votes
1 answer
933 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 ...
1 vote
1 answer
686 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 --...
3 votes
1 answer
820 views

OSGeo4W updating is failing - OpenCL.dll was not found

Windows 10. I've not used my 3 installations of QGIS for 6 weeks maybe. I updated them via OSGeo4w but I get the error "The code execution cannot proceed because OpenCL.dll was not found. ...
2 votes
1 answer
947 views

Editing QGIS features in web client by using QGIS server

I am new to QGIS and I am trying to build an application which runs on the web by using QGIS server. Is it possible to edit features or add features on web by using QGIS server?
0 votes
0 answers
27 views

QGIS install common components from network directory

I am trying to establish a process where one machine within our office installs QGIS using the OSGeo4W installer with 'Install from Internet' as the download source, and a network directory as the ...
0 votes
1 answer
1k views

ModuleNotFoundError: No module named 'matplotlib.backends.backend_qt4agg'

I installed QGIS plug-in "AVHYAS is an open source Python 3 tool plugged in QGIS",and installed required libraries however while trying to use some function, I got the following error. The ...
0 votes
0 answers
111 views

Removing OSGeo4w packages without removing program fully

I want to remove OSGeo4w to the base program without removing the program entirely. I am not using QGIS right now, but will in the future. I want to just remove some of the extra packages (and open ...
2 votes
2 answers
4k views

'gdal_merge' is not recognized as an internal or external command, operable program or batch file in OSGeo4w Shell

I am trying to batch mosaic a set of rasters using gdal in OSGeo4w shell command line. When I try to use gdal_merge I am getting error as below. run o-help for a list of available commands ...
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 ...
0 votes
0 answers
44 views

Openpyxl no longer shipped with OSGeo4W in QGIS3.28 (Windows)

I just upgraded QGIS from 3.22 to 3.28 and it seems geopandas' read_excel() is no longer working when running it via the QGIS-Console / OSGEO4W-Shell due to Openpyxl missing. Is anyone encountering ...
0 votes
0 answers
22 views

Unable to run coverage.py on QGIS-OSGeo4W-3.32.1-1

I have recently installed QGIS-OSGeo4W-3.32.1-1 and attempted to run the following commands C:\OSGeo4w\apps\Python39\python.exe -m coverage run test1.py param1 param2 param3 param4 param5 It will ...
0 votes
2 answers
477 views

Running QGIS processing tools in the OSGEO4W shell using the qgis_process functionality, syntax errors

I am trying to run QGIS processing tools in the OSGEO4W shell using the qgis_process functionality. I believe this functionality is fairly new as I have been having a hard time finding documentation ...
3 votes
1 answer
249 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'...
1 vote
0 answers
139 views

Safely uninstall only one instance of QGIS in W10, leaving the other one fully operational

I've got QGIS 3.16.11 and 3.28.6 installed on my job's W10 laptop and on a few PCs across the organization. About to install 3.28 on a few more with 3.16 already installed, too. I'm not really using ...
1 vote
1 answer
461 views

Where is the GDAL configuration file after installing via OSGeo4W Setup

According to this post it is possible to tweak GDAL globally via the configuration file. On the GDAL website I found the supposed location of the file - $(USERPROFILE)/.gdal/gdalrc - unfortunately, in ...
21 votes
6 answers
62k views

No module named 'osgeo'

I have installed GDAL and checked on the command line, it is working and when I run the gdal2tiles.py on the command line it works but when I run the same file gdal2tiles.py with python IDLE, I get "...
2 votes
2 answers
4k views

How to save json returned by gdalinfo in python variable

When I run the command in osgeo4W shell gdalinfo -json C:\Users\Gurminder\Documents\Git\Dump\s1a-ew-grd-hh-20160725t043517-20160725t043617-012300-01322b-001.tiff I get a large json of my Ground ...
3 votes
2 answers
3k views

cannot find py3_env.bat in OSGeo4W installation

I am trying to install Trajectools in QGIS according to the following tutorial https://anitagraser.com/2019/02/02/movement-data-in-gis-20-trajectools-v1-released/ but I have the following problem, I ...
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 ...
1 vote
0 answers
403 views

.grd file to GeoTIFF file

I am trying to transform some data that I have that are in a .grd format and calculate something and then save again as a .grd or as a GeoTIFF. The problem is the projection, I cannot find the ...
-2 votes
2 answers
390 views

Which version of Python is installed in the OSGeo4W shell? [closed]

Does anyone know how I can find out which version of Python ships with each version of QGIS? Specifically I'd like to know when the OSGeo4W shell changed from Python 3.7 to Python 3.9. I think all of ...
8 votes
2 answers
900 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
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 ...
3 votes
1 answer
266 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 ...
0 votes
1 answer
1k 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
194 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
513 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 ...
4 votes
1 answer
6k 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
131 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
842 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 ...
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 ...
0 votes
0 answers
434 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/[email protected]....
3 votes
1 answer
546 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
100 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
274 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
130 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
488 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
968 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
215 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
78 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
393 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
169 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
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\...

1
2 3 4 5 6