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
2answers
49 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 ...
3
votes
1answer
29 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 ...
3
votes
1answer
170 views

QGIS/proj errors with EPSG:2951

I've built various QGIS projects that use Canadian UTM and MTM CRS. They worked just fine in QGIS versions through 3.8 (based on proj4 and ?proj5). In QGIS windows version 3.10.0-3, things got borked ...
2
votes
1answer
22 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 ...
1
vote
1answer
1k views

Converting large raster to vector?

I have a shapefile which contains 10.000 polygons and I want to know how many of them falls on a specific land use. Unfortunately, the land use map that I have to use is a raster map and not a vector ...
4
votes
1answer
66 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 "...
3
votes
1answer
310 views

Compatibilty issue of pyexiv2 and ctypes module in QGIS 3.10

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
1answer
143 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 ...
4
votes
4answers
1k views

GRASS 6.4.3 Crashes on Startup; libintl-8.dll cited

I recently installed QGIS 2. I used the advanced OSGeo4W installer that I downloaded from the QGIS download page. GRASS is included in the stack. When I attempt to open GRASS, I receive the following ...
2
votes
1answer
307 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
1answer
146 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 ...
3
votes
2answers
1k views

GRASS not working with QGIS 3.7

Like the author of GRASS not working with QGIS 3.6, I am unable to use GRASS plugins, with the error: This algorithm cannot be run :-( The specified GRASS 7 folder "C:\OSGEO4~1\bin\bin" ...
2
votes
1answer
698 views

No icons when installing QGIS

I've been trying to install QGIS 3.4.4 Madeira on Windows 10 x64. I've tried the network installer and the standalone version, both of which say they installed successfully but no desktop or start ...
1
vote
1answer
172 views

How to resize label in PyQGIS?

How can i make it so the legend on the left bottom don't cover the map?
0
votes
0answers
37 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
1answer
582 views

QGIS - ModuleNotFoundError

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
1answer
159 views

OSGeo4w installer fails: unable to extract /appa/qt5/bin/qt5webenginecored.pdb

I am trying to install OSGeo4w. I have plenty of RAM and disk space, running Server 2016 standard. Installation fails with the following log: 2019/07/08 09:13:30 Menu name: OSGeo4W 2019/07/08 09:13:...
4
votes
3answers
2k views

Installing qgis-ltr or qgis-ltr-full with OSGeo4W or both?

I need some help with the installation of QGIS using OSGeo4W. I am using windows 7 and I want to install a 64 bit ltr release with all relevant dependencies and plugins. I choose to install qgis with ...
1
vote
1answer
183 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
1answer
46 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\...
5
votes
3answers
4k views

No Module named qgis

I installed QGIS through OSGeo4W, and I am trying to write a standalone PyQGIS script, however, I am unable to import the qgis, qgis.core, processing ect… modules, as shown in the picture, I get the ‘...
2
votes
2answers
385 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 ...
36
votes
9answers
31k views

GRASS not working with QGIS 3.6

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\...
0
votes
0answers
27 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 ...
0
votes
1answer
61 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 ...
11
votes
2answers
17k views

Merging all tiles from one directory using GDAL

I would like to use GDAL (under Windows; OSGeo4W Shell) to merge all GeoTIFFs from one directory into a new GeoTIFF. I have tried to address them by writing c:\data\....\*.tif which however does not ...
0
votes
0answers
48 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
1answer
123 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?
0
votes
1answer
71 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
vote
0answers
35 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 ...
0
votes
1answer
83 views

PyQGIS Script failing to project layer to EPSG:54002

I'm trying to write a Python script to convert a vector layer using 4326 to EPSG:54002 World Equidistant Cylindrical for road distance calculations, but the script fails to do the conversion, I've ...
4
votes
3answers
23k 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 ...
1
vote
1answer
159 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
0answers
42 views

Providing GDAL with right encoding

I am using osgeo4w shell to execute gdal_translate command for creating geospatial pdf. My command is: "gdal_translate -of PDF -tr 0.0001 0.0001 -a_srs EPSG:3765 Granice.tif ...
2
votes
1answer
3k views

Installing Apache Web Server from OSGeo4W

I am trying to create a QGIS web client on my Windows 8 But with OSGEO4W not appear the option to make Apache installs Web Server, as of this writing in several tutorials and documentations. A print ...
1
vote
1answer
268 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 ...
1
vote
0answers
156 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,...
3
votes
1answer
692 views

Unable to read TIFF file with raster2pgsql

I am having some trouble with the raster2pgsql function (on a Windows 7 in the OSGeo4W shell). I am receiving the error "Unable to read raster file". I can import shapefiles, ok using org2org so I ...
0
votes
1answer
43 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 ...
1
vote
0answers
47 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, ...
2
votes
0answers
969 views

Use Anaconda's Python distribution within OSGeo4W

I want to use a Python script that executes Grass commands via os.system(). This of course, has to be executed from a running Grass session. However, when I use the OSGeo4W Grass, it does not find all ...
0
votes
0answers
20 views

User defined folder location for QGIS3 temp files in Pycharm

I set up user defined paths for temporary files in the QGIS version that I'm using (settings -> options -> systems). When I run code within QGIS3 the temporary files are saved in the indicated ...
16
votes
5answers
31k 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 "...
3
votes
4answers
5k 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
2answers
2k views

QGIS 3.8 could not start ''Qgis_app.dll is missing'' check runtime environment check C:\OSGEO4W64\bin\qgis-dev-bin-g.exe

I had Qgis 3.4 running well on my PC Windows 10, 64 bit. I tried to upgrade to Qgis 3.8 Zanzibar and I had the error message: ''Qgis_app.dll is missing check runtime environment check C:\OSGEO4W64\bin\...
3
votes
1answer
3k 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 ...
0
votes
0answers
382 views

Missing processing toolbox in QGIS 3.10

I no longer see the plugins, the processing toolbox and all the scripts in QGIS 3.10 LTR. They're not even in the "Processing" Menu. I tried looking to activate it from the menu bar but it's not the ...
0
votes
1answer
252 views

ogr2ogr conversion between from shapefile to MBtiles not working as intended

I am trying to convert a shapefile to MBTiles format using ogr2ogr and have been running this script in the OSGEO4W command line ogr2ogr -f MBTILES -dsco MINZOOM=10 -dsco MAXZOOM target.mbtiles C:\...
2
votes
1answer
1k views

QGIS not launching

a few days ago I decided to update my QGIS 2.14 into a QGIS 2.18. I uninstalled the old version and installed the new one, normally. Then nothing at all happened when I pressed the icon. I ...
4
votes
1answer
99 views

Referenced table not found in standalone Python script

I'm trying to run a Python script from OSGeo4W Shell. Im doing this by typing "python-qgis C:\path\test.py" Everything seems to go fine until the script launches the processing module. After that ...

1
2 3 4 5