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
1 vote
1 answer
29 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 ...
user avatar
  • 1,159
0 votes
0 answers
23 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,...
user avatar
  • 205
1 vote
1 answer
33 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 ...
user avatar
  • 3,623
2 votes
2 answers
57 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....
user avatar
  • 549
3 votes
0 answers
56 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'...
user avatar
0 votes
1 answer
78 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-...
user avatar
  • 7,546
0 votes
0 answers
46 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 ...
user avatar
  • 195
0 votes
1 answer
433 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: ...
user avatar
2 votes
1 answer
184 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: ...
user avatar
  • 1,688
0 votes
0 answers
35 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 ...
user avatar
  • 29
0 votes
1 answer
98 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 ...
user avatar
0 votes
0 answers
49 views

How to use GDAL for calculating raster distance?

I am trying to take a shapefile and run individual raster calculations on each polygon using GDAL commands in OSGeo4W Shell. I have a polygons shapefile, "Polygons.shp", with let's say 250 ...
user avatar
0 votes
0 answers
37 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 ...
user avatar
0 votes
0 answers
27 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 ...
user avatar
0 votes
0 answers
33 views

Receiving error "Unable to extract /bin/avcexport.exe – the file is in use" on OSGeo4W setup. Can't Retry or Continue. How do I fix this?

I saw this question posted by someone else and the answer was that the startup could be run as an administrator. However, I tried to Google the steps for this, and after selecting "Run as ...
user avatar
  • 1
0 votes
0 answers
350 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 ...
user avatar
  • 1,139
0 votes
0 answers
43 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 ...
user avatar
  • 101
1 vote
0 answers
146 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 ...
user avatar
  • 33
0 votes
0 answers
13 views

Grass GIS v.net connect fails only in Graphic Modeler

I am connecting a network and point feature within Graphic Modeler in Grass 7.8.3. This works fine in the console when running manually, but fails in Graphic Modeler with the error "ERROR: Layer ...
user avatar
  • 73
0 votes
1 answer
107 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 ...
user avatar
  • 1,139
1 vote
2 answers
106 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 ...
user avatar
  • 51
1 vote
0 answers
114 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 ...
user avatar
0 votes
1 answer
151 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 --...
user avatar
  • 1,139
1 vote
0 answers
123 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> ...
user avatar
6 votes
1 answer
435 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 ...
user avatar
2 votes
1 answer
200 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 ...
user avatar
  • 71
0 votes
0 answers
461 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 ...
user avatar
0 votes
1 answer
141 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 ...
user avatar
0 votes
1 answer
32 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.
user avatar
  • 5,642
1 vote
2 answers
147 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 ...
user avatar
2 votes
1 answer
44 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 ...
user avatar
  • 195
3 votes
1 answer
249 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 ...
user avatar
4 votes
1 answer
175 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 "...
user avatar
  • 105
2 votes
1 answer
472 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 ...
user avatar
1 vote
0 answers
266 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, ...
user avatar
0 votes
0 answers
103 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 ...
user avatar
  • 1,593
0 votes
0 answers
133 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 ...
user avatar
1 vote
1 answer
135 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 ...
user avatar
  • 1,545
1 vote
1 answer
290 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 ...
user avatar
  • 21
1 vote
0 answers
41 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 ...
user avatar
  • 205
1 vote
1 answer
294 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: '...
user avatar
  • 47
0 votes
1 answer
150 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 ...
user avatar
  • 1
0 votes
1 answer
59 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\...
user avatar
1 vote
0 answers
398 views

How to use Python implemented GDAL utilities via OSGeo4W Shell?

Following installation of QGIS v 3.10.1 on a W10 machine, I am automatically hooked up with OSGeo4W Shell. From there, I can directly invoke gdal utilities such as gdalinfo and gdal_translate. However,...
user avatar
1 vote
0 answers
88 views

Install the 5.11.2 version of PyQt5 using OSGeo4W setup

How can I install the 5.11.2 version of PyQt5 using the OSGeo4W setup in Windows10? The default version of PyQt5 installed from OSGeo4W is 5.11.3 which is different from the QGIS compilation version, ...
user avatar
0 votes
1 answer
109 views

Can Pixel Size be calculated from '-json' output from gdalinfo?

When running gdalinfo without the -json parameter, a field called "Pixel Size" is included in the output. When including the -json parameter, Pixel Size does not appear to be included in ...
user avatar
  • 1
3 votes
2 answers
811 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 ...
user avatar
  • 970
1 vote
1 answer
220 views

Displaying map title in PyQGIS

I have the following map but I don't know how to make a title appear on top of it. Any suggestion on how to?
user avatar
2 votes
1 answer
265 views

How to resize label in PyQGIS?

How can i make it so the legend on the left bottom don't cover the map?
user avatar
1 vote
2 answers
1k 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 ...
user avatar
  • 21

1
2 3 4 5 6