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
34 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 ...
  • 45
0 votes
1 answer
45 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 ...
  • 127
0 votes
0 answers
202 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-...
0 votes
0 answers
70 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....
  • 101
0 votes
0 answers
67 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
46 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
54 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 ...
  • 7,898
2 votes
0 answers
100 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 ...
1 vote
1 answer
64 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 ...
2 votes
0 answers
178 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) ...
  • 509
1 vote
1 answer
215 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 ...
  • 1,343
0 votes
0 answers
84 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,...
  • 280
1 vote
1 answer
203 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 ...
  • 4,174
2 votes
3 answers
384 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....
  • 559
2 votes
1 answer
396 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 ...
  • 457
3 votes
0 answers
172 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'...
0 votes
1 answer
260 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-...
  • 7,898
0 votes
0 answers
199 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 ...
  • 501
1 vote
1 answer
2k 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: ...
2 votes
1 answer
476 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,818
0 votes
0 answers
79 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 ...
  • 29
0 votes
1 answer
601 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 ...
0 votes
0 answers
49 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
43 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 ...
  • 1,189
0 votes
0 answers
73 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 ...
  • 101
1 vote
0 answers
279 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 ...
  • 133
0 votes
1 answer
210 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 ...
  • 1,189
2 votes
2 answers
231 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 ...
  • 61
1 vote
0 answers
226 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 ...
0 votes
1 answer
371 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 --...
  • 1,189
1 vote
0 answers
277 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> ...
8 votes
1 answer
944 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 ...
  • 29.8k
3 votes
1 answer
401 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 ...
  • 83
0 votes
0 answers
532 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 ...
0 votes
1 answer
245 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 ...
0 votes
1 answer
70 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.
  • 6,165
1 vote
2 answers
334 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 ...
2 votes
1 answer
102 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 ...
  • 501
3 votes
1 answer
549 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 ...
4 votes
1 answer
312 views

QGIS - Python Action Error

I am using QGIS 3.18.1-Zürich and I am trying to create a Python action. Although I have installed the required packages, I get an error as shown below. Traceback (most recent call last):   File "...
  • 105
2 votes
1 answer
729 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 ...
1 vote
0 answers
325 views

OSGeo Network Installer Download Error

I am having issue with completing download of components using the OSGeo4w 64bit installer. What could be causing this issue and how can I fix it. I am testing this in Windows 10 20H2 64bit machine, ...
0 votes
0 answers
106 views

How to install and run gdal_retile? [duplicate]

I want to use gdal_retile. I have gdal installed after installing it from OSGeo4W by my bin folder is missing gdal_retile. How can I install it? I am working on a Windows machine. Is it expected not ...
  • 1,613
0 votes
0 answers
213 views

QGIS: Using OSgeo4W shell to login to and create a new PostGIS database

I'm trying to create a new database through the OSgeo4W shell, as opposed to loading QGIS and hitting the 'Manage DB' menu to make one an pipe in SQL scripts. I haven't seen any documentation on this ...
1 vote
1 answer
183 views

Using GRASS i.segment in Python 3 stand alone script on Windows10

I installed GRASS GIS 7.8.1 on Windows 10 using a OSGeo4W. I would like to use in a stand alone Python 3 script the i.segment GRASS tool. I saw some related questions (e.g., Using GRASS GIS in Python ...
  • 1,647
1 vote
1 answer
343 views

Getting Tkinter to work in PyCharm using OSGeo4W64's Python

I am creating an external QGIS program that builds virtual rasters using the processing algorithm within QGIS. I have this working, but it is not very convenient since you need to type in each file ...
  • 21
1 vote
0 answers
53 views

HIFLD Railroads DB contains coordinates that don't make sense

I downloaded the HIFLD Railroads DB and imported it into MySQL with OSGeo4W. I then do this query and the coordinates I get just don't make sense: SELECT ST_AsGeoJson(SHAPE) FROM railroads WHERE ...
  • 280
1 vote
1 answer
378 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: '...
  • 47
0 votes
1 answer
300 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 ...
  • 1

1
2 3 4 5 6