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
184 votes
7 answers
234k views

Installing File Geodatabase (*.gdb) support in QGIS

I have spent around 2 days to find the way to open GDB (ESRI Geodatabase) in QGIS (or any other open source software) but still without success. I have downloaded the newest OSGeo4W installer and ...
Miro's user avatar
  • 9,744
50 votes
2 answers
77k views

How do I check which version of GDAL I have and how many?

I have installed in my computer the following software: PosgresSQL 9.3.2.3 PostGIS 2.1.1.1 QGIS 2.0.1 Dufour (this one installed through the OSGeo4w package) QGIS 1.7.0 Wroclaw As far as I know all ...
Web-GIS entrepreneur's user avatar
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\...
Kantan's user avatar
  • 1,917
28 votes
2 answers
32k views

What is OSGeo4W?

I have been using GIS for a few years now (ArcGIS and MapInfo). But only when I have started using QGIS I come across OSGeo4W, as there is an option to download it on the QGIS website. I have tried ...
T.O.6's user avatar
  • 947
23 votes
4 answers
23k views

Using OSGeo4W shell with Python 3

I would like to use OSGeo4W shell with Python 3 but when typing python3 I get the following error: Fatal Python error: Py_Initialize: unable to load the file system codec File "C:\OSGEO4~1\apps\...
bennos's user avatar
  • 2,069
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 "...
Asanda's user avatar
  • 293
16 votes
2 answers
29k 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 ...
Arne's user avatar
  • 815
12 votes
2 answers
1k views

Can ArcGIS and OSGeo4W share the same python install? [duplicate]

I don't like unnecessary duplication. Is it possible to install python only once and have both ArcGIS and OSGeo4W using it?
matt wilkie's user avatar
  • 28.2k
10 votes
1 answer
638 views

QGIS Server sending UPDATE... WHERE NULL to postgis in a WFS layer

I am running a Windows Server 2012 server. PostgreSQL 9.3.5, 64-bit POSTGIS 2.1.3 QGIS Server 2.6.1-2 QGIS Desktop 2.8.3 and 2.12 I am using a Microsoft Surface Pro 4 tablet using QGIS Desktop 2....
Egidi's user avatar
  • 3,738
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
  • 34.4k
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 ...
Geographos's user avatar
  • 4,087
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 ...
Guts's user avatar
  • 622
8 votes
6 answers
56k 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 ...
Asanda's user avatar
  • 293
8 votes
0 answers
2k views

Getting Spyder IDE to work with QGIS?

I was hoping someone could help me get Spyder working with QGIS. I am finding the python editor limiting within QGIS as I would like to debug my code, use the variable explorer, and be able to run ...
owl7's user avatar
  • 181
7 votes
4 answers
3k views

ogr2ogr bringing up "memory allocation error"

I've got a shapefile which contains, at the moment, roughly 1500 polygons. The polygons all display fine using whatever GIS I throw it in (ArcGIS, QGIS). However, I'm trying to use ogr2ogr to convert ...
user25730's user avatar
  • 884
7 votes
1 answer
3k views

gdalbuildvrt vs gdal_merge on overlapping images

I once have used gdalbuildvrt on georeferenced images. That was okay when images did not overlap, It was also time efficient compared to gdal_merge or gdal_warp. Now I have overlapping images and ...
user2694307's user avatar
7 votes
2 answers
3k views

QGIS 2.16 - Installation problem under Windows 10

I installed twice Qgis 2.16 using OSGeo 4w install. First I uninstalled all the previuos version and installed 2.16. Everything worked fine but when I open Qgis I have a warning message: Couldn't ...
Gerardo Jimenez's user avatar
6 votes
1 answer
2k views

Downgrade to long term release QGIS with OSGeo4W?

QGIS this year split into two branches: Latest release (now 2.10.2) Long term release (now 2.8.2) I am not sure how is it normally in larger companies but I think having (hard)core GIS employees ...
Miro's user avatar
  • 9,744
6 votes
1 answer
8k views

Can ogr2ogr write data to a file geodatabase feature dataset?

I am dumping postgis tables into a file geodatabase and it works great--the result is a file geodatabase full of featureclasses. But is it possible to write these featureclasses into feature ...
Jay Cummins's user avatar
  • 14.6k
6 votes
3 answers
7k 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 ‘...
user avatar
6 votes
1 answer
1k views

Unattended QGIS updates with OSGeo4W

I would like to do an unattended update of my QGIS install every night using windows task scheduler. Is it possible to automatically update all installed packages with the OSGeo4W-Installer without ...
Thomas B's user avatar
  • 8,807
6 votes
2 answers
1k views

OSGeo4W (gdal 2.1.0) and gdal2tiles

I've tried the x86 and x64 versions of OSGeo4W, but gdal2tiles is missing. Has gdal2tiles been removed from OSGeo4W? -={ OSGeo4W Shell Commands }=- bmp2tiff msencrypt ...
user8709's user avatar
  • 253
6 votes
1 answer
340 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 ...
Henri's user avatar
  • 193
6 votes
0 answers
1k views

Exporting QGIS Atlas using PyQGIS (qgis.core)

Windows 10, PyCharm, QGIS 3.10 installed via osgeo4w (64bit). I set up a simple QGIS composer layout with a vector layer and a WMS base map on the map layout. The vector layer contains about 10 ...
Theo F's user avatar
  • 1,829
5 votes
5 answers
11k views

How to install Fiona to read Shapefile attributes with OSGeo4W?

I´m developing a plugin in Python and I need to read the shapefile attributes, so I found the Fiona API and dbfpy also but I don't understand how to install these packages because I install the QGIS ...
Bárbara Duarte's user avatar
5 votes
2 answers
5k views

Convert raster to a CSV values and lat long based on raster value in QGIS

I am looking to convert a raster into a csv file (or tab delimited) based on values in the raster (Value > 0). The csv would have three values, latitude of center of cell, longitude of center of cell,...
If you do not know- just GIS's user avatar
5 votes
1 answer
3k views

User Interface file compilation using OSGeo4W shell during qgis plugin creation

I am trying to build a plugin in Qgis2.6 using plugin builder. And as a part of the same, I tried compiling the .ui and .qrc file using OSGeo4W shell. It is showing an error during compilation in ...
User123's user avatar
  • 2,986
5 votes
3 answers
3k views

OSGeo4W does not add bin directory to Windows PATH

I am trying to run the following shp2pgsql cmd using the OSGeo4W shell: shp2pgsql -s 4269 -g geom_4269 -I -W "latin1" "tl_2012_states" staging.tl_2012_states | psql -h localhost -p 5432 -d dvdtwo -U ...
Matt's user avatar
  • 1,191
5 votes
1 answer
1k views

Loading WMS with PyQGIS

I have installed QGIS server on Ubuntu 14.04 which serves WMS. Connection uses https and basic auth. URL is https://my.awesome.url:8090/cgi-bin/project1/qgis_mapserv.fcgi I can connect with QGIS and ...
Matthieu's user avatar
  • 402
5 votes
2 answers
4k views

Grass tools not working in QGIS 2.14.3-ESSEN, OSGEO4W [duplicate]

Windows 10 QGIS 2.14.3-ESSEN OSGEO4W install (current) 64-bit Processing toolbox. Grass tools do not work Neither 6 nor 7. 6 makes sense as I do not see OSGEO4W installing it but 7 tools are ...
If you do not know- just GIS's user avatar
5 votes
1 answer
2k views

command r.stream.order not found in grass 7.0.3 how to install r.stream module?

I have installed QGIS 2.14.1 and GrassGIS 7.0.3 I found in OSGEO Grass wiki page a command that calculate Strahler's and Horton's stream order Hack's main streams and Shreeve's stream magnitude from ...
Manuel Alejandro's user avatar
5 votes
2 answers
4k views

How to correctly configure OSGeo4W64 for Windows 7 64-bit?

I have successfully installed OSGeo4W64 on numerous new systems (actually EC2 instances) and had no issues. But I've run into an issue with it on a Windows 7 workstation that has a lot of JREs on it....
Jay Cummins's user avatar
  • 14.6k
5 votes
1 answer
2k views

QGIS 2.16 - Couldn't load QGIS utils. Python support will be disabled

I use Windows 10 OS and not good at coding. I have been using QGIS standalone installer for a long time (from 1.8 actually), but recently tried installing the OSGEO4W 32 bit version which had the ...
user2358205's user avatar
5 votes
1 answer
3k views

Grass processing not configured in OSGEO4w QGIS 2.14.1

I get the below error when I try to use grass processing from within QGIS. The error is given on all commands and I have got this error on 2 machines. I am using windows. "This algorithm cannot be ...
BenP's user avatar
  • 269
5 votes
1 answer
900 views

gdal_calc works but I get a Python error at the end of each process?

I have a problem while using gdal_calc by a .bat file. Here is the code : call "C:\OSGeo4w64\bin\o4w_env.bat" gdal_calc -A"D:\tuilage_script_1\tuilage\ndvi\4_810000_6370000_820000_6360000_ndvi....
poulpy's user avatar
  • 51
5 votes
0 answers
414 views

Installing third party python library in QGIS 2.18.x Windows

We are running into a strange behaviour while trying to use pyoidc with QGIS 2.18.x windows standalone version. Due to pip/pipy no longer working with QGIS 2.18 (see this post), we installed the ...
obedel's user avatar
  • 51
4 votes
2 answers
178 views

Reading various (non-.shp) vector types using ogrinfo

I am using the OSGeo4W shell to call ogrinfo on a directory (geodata) to see what vector files it includes: As you see, it lists two shapefiles and it tells me that it is using the shapefile driver; ...
BritishSteel's user avatar
  • 6,647
4 votes
2 answers
2k views

How to install OSGeo4W libraries in older version of QGIS (2.16)?

I am trying to install older version of QGIS (2.16) with OSGeo4W. But from the latest OSGeo4W Setup i can choose only 2.18 or 2.14 version. I want to install few libraries that are provided by OSGeo4W ...
Losbaltica's user avatar
  • 1,469
4 votes
3 answers
3k 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 ...
JeeHaa's user avatar
  • 61
4 votes
1 answer
2k views

ogr2ogr commands with cmd

I'm trying to run a ogr2ogr command with cmd. When I run the cmd the Osgeow command prompt just flashes and nothing happens. When I enter my ogr2ogr script directly to the Command Prompt everythinh ...
woundari's user avatar
  • 131
4 votes
1 answer
998 views

Why is osgeo4w (w QGIS 3.6.2) asking for admin rights?

On my work computer, I get prompted for an elevated login when I try to run osgeo4w-setup-x86_64.exe on Windows 7 Sounds like I should be able to install without admin rights. As of 5/8/19 are they ...
EvanT's user avatar
  • 103
4 votes
1 answer
478 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 "...
Therru's user avatar
  • 105
4 votes
4 answers
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 ...
Darin's user avatar
  • 393
4 votes
2 answers
3k views

GDAL_CALC works but I get a python error at the end of each process that prevents automation

Python 3.4.1, GDAL 1.11.0, OSGEO4W, Windows 7, OSGEO4W Windows Shell All 64-bit (ArcGIS is installed as well 10.2 with Python 2.7) So gdal_translate works fine. gdal_calc provides perfect ...
If you do not know- just GIS's user avatar
4 votes
3 answers
3k views

OSGeo4W and QGIS 2.0

I just ran the OSGeo4W installer to update my previous installation and I noticed that it was updating my QGIS installation from 1.8 to 2.0. I haven't been able to find any information on the web ...
Brian's user avatar
  • 4,209
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: ...
Kyler Mclachaln's user avatar
4 votes
2 answers
4k views

Installing scikit-learn python package for QGIS on Win

I want to install scikit-learn package to be executed in Python-QGIS. I've tried to use OSGeo4W Shell to install with pip. But I got this error. I've tried to run osgeo4w-setup-x86_64.exe and install ...
Trần Ngọc Bích's user avatar
4 votes
1 answer
1k views

Create Virtual Raster from a large number of Tiffs using OSGeo4W Shell

I am hoping to find a relatively straightforward way to create a virtual raster for a large set of rasters (c. 15,000 TIF files from the TQ 100K Square of OS 1-10K). I cannot do this in QGIS. I get ...
JimS-W's user avatar
  • 359
4 votes
1 answer
123 views

How to split every arc in a shapefile exactly in half?

I have a line shapefile containing several thousand arcs of varying length, representing a road system. I need to split each arc exactly in half along it's length. The resulting output would thus ...
Stu Smith's user avatar
  • 8,292
4 votes
2 answers
630 views

What is the easiest way to install a really old Nightly Build of QGIS Master (in Windows)?

I would like to test which nightly build between QGIS 1.8 and 2.0 caused a certain change in QGIS behavior. I know that there are very convenient exe files of weekly builds available on http://qgis....
Pavol's user avatar
  • 153

1
2 3 4 5 6