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
0 votes
1 answer
28 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) ...
MLourdes's user avatar
  • 198
0 votes
1 answer
39 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 ...
IanGS's user avatar
  • 316
1 vote
1 answer
143 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 ...
Josh2000's user avatar
0 votes
0 answers
23 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 ...
MI-to-QGIS's user avatar
0 votes
0 answers
83 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 ...
Mik's user avatar
  • 1
0 votes
0 answers
43 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 ...
meisterlix's user avatar
0 votes
0 answers
20 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 ...
user's user avatar
  • 1
0 votes
1 answer
818 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 ...
Mustafa Ustuner's user avatar
1 vote
0 answers
91 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 ...
user99006's user avatar
  • 189
1 vote
1 answer
330 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 ...
sn1ks's user avatar
  • 2,962
1 vote
0 answers
335 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 ...
TheGame's user avatar
  • 47
-2 votes
2 answers
347 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 ...
jon_two's user avatar
  • 1,854
8 votes
2 answers
699 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 ...
Geographos's user avatar
  • 4,077
3 votes
1 answer
218 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 ...
Mark's user avatar
  • 51
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 ...
Matt R's user avatar
  • 45
0 votes
1 answer
120 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 ...
mbela's user avatar
  • 127
0 votes
0 answers
409 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]....
user49126's user avatar
  • 101
0 votes
0 answers
97 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:\\...
user13892757's user avatar
0 votes
0 answers
232 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 ...
GeorgeC's user avatar
  • 8,196
2 votes
0 answers
126 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 ...
Velugoti Venkateswarlu's user avatar
1 vote
1 answer
202 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 ...
guest_98732012's user avatar
2 votes
0 answers
457 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) ...
Mapos's user avatar
  • 567
1 vote
1 answer
381 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 ...
MrKingsley's user avatar
  • 1,443
0 votes
0 answers
159 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,...
neubert's user avatar
  • 360
1 vote
1 answer
370 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 ...
christoph's user avatar
  • 5,440
2 votes
3 answers
901 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....
YeO's user avatar
  • 599
2 votes
1 answer
810 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 ...
bsg's user avatar
  • 467
3 votes
1 answer
248 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'...
Andreas Müller's user avatar
0 votes
1 answer
605 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-...
GeorgeC's user avatar
  • 8,196
0 votes
0 answers
320 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 ...
588chm's user avatar
  • 585
4 votes
1 answer
5k 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: ...
Kyler Mclachaln's user avatar
2 votes
1 answer
887 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: ...
axel_ande's user avatar
  • 2,014
0 votes
0 answers
137 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 ...
Juli's user avatar
  • 29
0 votes
1 answer
1k 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 ...
Jillinger's user avatar
0 votes
0 answers
84 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 ...
GIS_User2's user avatar
0 votes
0 answers
103 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 ...
guest07823's user avatar
1 vote
0 answers
2k 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 ...
BallpenMan's user avatar
  • 1,217
0 votes
0 answers
122 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 ...
golfalot's user avatar
  • 101
1 vote
0 answers
618 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 ...
Fuzail's user avatar
  • 133
0 votes
1 answer
361 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 ...
BallpenMan's user avatar
  • 1,217
2 votes
2 answers
385 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
1 vote
0 answers
505 views

Summing raster files through GDAL

I have a folder with over 500 raster (.tif) files. I want to produce an output raster file that is the sum of all the raster files in my folder. I am trying to use gdal and sepcifically the gdal_calc ...
LostinSpatialAnalysis's user avatar
1 vote
1 answer
663 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 --...
BallpenMan's user avatar
  • 1,217
1 vote
0 answers
482 views

Unable to add geopackage to PostGIS database using OGR2OGR

I am using the following command to upload a geopackage into a POSTGIS database using the OSGeo4W shell that comes with QGIS. ogr2ogr -f “PostgreSQL” PG:”host=<hostname> dbname=<dbname> ...
stixcraven'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
  • 33.8k
3 votes
1 answer
562 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
0 votes
0 answers
598 views

Error when pip install -e geonode: Getting requirements to build wheel ... error

I am unsure as to where my current problem is, can someone please point me to my existing problem and possible solution. (geonode_env) C:\Users\amell\Documents>pip install -e geonode ...
Amelia Nicodemus's user avatar
0 votes
1 answer
427 views

GDAL installation-FAILURE: No datasource specified. Windows 10

I am following the below tutorial to install GDAL: https://sandbox.idre.ucla.edu/sandbox/tutorials/installing-gdal-for-windows after failing to install through the OSGEO4W setup, I have updated my ...
Amelia Nicodemus's user avatar
0 votes
1 answer
127 views

Installing QGIS with osgeo4w-setup.exe gives unreadable Cyrillic text

When I try to install QGIS with osgeo4w-setup.exe, the Cyrillic text on one of the windows is unreadable. I would like a screenshot of this text in English.
Comrade Che's user avatar
  • 7,051
1 vote
2 answers
573 views

How to compress DEM SRTM files?

I'm trying to compress my 1.2GB DEM file to reduce its size through the OSGeo4W Shell, but it's not working, as the command only works for RGB images (3 bands), but my DEM only has 1 band (1-band). I ...
wesleysc352's user avatar

1
2 3 4 5 6