Questions tagged [osgeo4w]

OSGeo4W is a binary distribution of a broad set of open source geospatial software for Win32 environments (Windows XP, Vista, etc).

62 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
942 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 ...
4
votes
0answers
497 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 ...
4
votes
0answers
273 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 ...
4
votes
0answers
258 views

SAGA Tool in QGIS Error: Load table: Proj.4-WKT Dictionary… failed

I have some problems with running SAGA tools in QGIS. I've downloaded and installed the software via the OSGeo4W Installer. It downloaded QGIS 2.12 and Saga 2.1.2. I wanted to use the Tool "Shapes To ...
3
votes
1answer
271 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 ...
3
votes
1answer
138 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 ...
3
votes
0answers
117 views

Using a Python IDE with OSGeo

I have the latest version of OSGeo4W64 installed on my Windows machine. I find it very convenient to have all the Python modules for QGIS, GDAL and GRASS all in one place. I would like to set up an ...
3
votes
0answers
241 views

Downloading dev-full

I have downloaded OSGeo4W 64-bit from https://qgis.org/en/site/forusers/download.html and would like to do a 'bleeding edge development build" on my Windows 10. So I select clicked Run and selected ...
3
votes
0answers
768 views

Is Orfeo Toolbox OTB no longer available through OSGeo4W?

When I run the current OSGeo4W installer on Windows 10, 64 bit, no OTB packages are available: The OTB binary package status page still lists OSGeo4W as a source for OTB. ~~Does anyone know what is ...
3
votes
0answers
545 views

How to get an equivalent to stand-alone installation of QGIS using OSGEO4W?

What should be downloaded / set (beyond the obvious) when installing QGIS using the OSGEO4W package manager - in order to end up with an equivalent setup to that which would result from using the QGIS ...
3
votes
0answers
194 views

Forcing gdal_retile to produce full tiles when original file's size is incompatible?

I have a set of large geotiff (DEM + orthoimagery) that I need to generate image pyramids from. So far gdal_retile from osgeo4w is working very well for my use case with one exception: I need all my ...
3
votes
0answers
947 views

Installing cartopy on OSGeo4W

I am trying to install cartopy on OSGeo4W. Even though all required packages already downloaded and updated, the installer won't recognize them. I keep getting the following error: setup.py:168: ...
3
votes
0answers
244 views

Can't import liblas into OSGeo4w Python on Windows machine

I installed the 32-bit version of OSGeo4w with the liblas-python packages on my Windows machine. When I try to import liblas into python, I get an error that no 'liblas' module can be found, even ...
2
votes
0answers
68 views

Why QGIS cannot georeference a Grib2 file with CRS (PROJ.4 and OGC WKT2)?

Situation: I have some .grib2 files that I downloaded from a (supposed to be) reliable source. When I do $ gdalsrsinfo file.grib2 I get: PROJ.4 : +proj=lcc +lat_0=38.5 +lon_0=262.5 +lat_1=38.5 +...
2
votes
0answers
129 views

Python within OSGeo4W installation gives “AttributeError: '_NamespacePath' object has no attribute 'sort'”

I have Python 2.7 and Python 3.6 installed via OSGeo4W64 on a Windows 10 x64 machine. I don't have a standalone installation of Python, but I did previously, which may have something to do with the ...
2
votes
1answer
259 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 ...
2
votes
0answers
384 views

QGIS 2.14.5.LTR Gdal-Tools execution problem

I have installed QGIS 2.14.5.LTR via the OSGeo4W installer on Windows2008R2. No raster tools are available. After activating Gdal-Tools plugin, the raster tools are available, but cannot executed (...
2
votes
0answers
904 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 ...
2
votes
0answers
283 views

Command Line alternative to using QGIS GUI to save a Raster as a Rendered Image

I have a raster image in PNG format which I can open in QGIS but not in Windows Picture Viewer. To do that i figured out that I have to save my raster as a 'Rendered Image' from the 'Save As' (option ...
1
vote
0answers
38 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,...
1
vote
1answer
135 views

How to resize label in PyQGIS?

How can i make it so the legend on the left bottom don't cover the map?
1
vote
0answers
37 views

OGR2OGR failed to connect error

Uploading GML files to PostgreSQL via OSGeo4W Shell using OGR2OGR I receive an odd sequence of failed to connect errors. Using OSGeo4W Shell I run the following: ogr2ogr -a_srs "EPSG:27700" -f "...
1
vote
0answers
2k views

Installing GDAL for Python 3.8 IDLE

I'm using IDLE. GDAL command works in QGIS' Python console but not Python 2.7 (ArcMap) and 3.8 (separate install) IDLEs. So far, I have tried Downloading this (GDAL/OGR IN PYTHON) and following the ...
1
vote
0answers
38 views

Osgeo4w Libraries downlaod

I recently tried to update my QGIS version with the installation of Osgeo4w libraries. I was told that the installation was supposed to take something like 20 gb space on my computer. While ...
1
vote
1answer
138 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(...) ...
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 ...
1
vote
0answers
946 views

How to properly uninstall OSGeo4W+GRASS+QGIS on Windows7 64bit

Over the years I have tried QGIS and other mapping systems. Lately I wanted to make a go at using the newer versions of QGIS but wanted the ability to run the new one, 3.4 or 3.6 and to keep the old ...
1
vote
0answers
220 views

Numpy import error in OSGeo4W Shell

I and my colleagues are running into a very frustrating Python import error while using the OSGeo4W Shell. Any time we attempt to use gdal_calc in a Python script, we get the following error message: ...
1
vote
0answers
1k views

Using qgis.core in Pycharm

I set up a batch file to launch pycharm on Windows in accordance with https://qtibia.ro/2016/06/09/how-to-setup-pycharm-for-qgis-development-under-linux-and-windows/ @echo off SET OSGEO4W_ROOT=C:\...
1
vote
0answers
335 views

Converting multiple geometry KML to Shapefile

I have a KML file with multiple geometry, points and polygons. I want to convert it to a point Shapefile and a polygon Shapefile. Using OSGeo4W Shell I tried this : ogr2ogr -where "OGR_GEOMETRY='...
1
vote
0answers
416 views

Installing OSGeo4W on Windows, changed python version, “Import Error: No Module named site”

I've really been trying to install Proj4 on my windows 10 laptop, and make it accessbile via my git bash command. According to Proj4's documentation, using OS4GeoW is the easiest way to install the ...
1
vote
0answers
400 views

crssync.exe error while installing QGIS 3.0 under Windows 7

I want to use QGIS 3.0 under Windows 7. Using the OSGeo4W installer I get the following error message: The program can't be started because api-ms-crt-runtime-I1-1-0.dll is missing. Can I use this ...
1
vote
0answers
90 views

Qgis instalation by OSGEO

I've tried install Qgis 3.0 (and 2.18) using OSGEO. I'm using windows 10. I've followed the steps I found in youtube (https://www.youtube.com/watch?v=G1WyUGYHC0I and https://www.youtube.com/watch?v=...
1
vote
0answers
441 views

GPU access via QGIS python plugin?

My Setup Windows 10 (with latest updates) QGIS 3.0.0-Girona (QGIS code revision 001c80b0c3) QGIS Python plugin: sys.version gives '3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 ...
1
vote
0answers
283 views

OSGeo4W Network Installer for several version of QGIS

I want install several versions of QGIS with OSGeo4W Network Installer (2.18, 3.0 and master). Will it be good if I install it in one root direction or should I create separate folders?
1
vote
0answers
415 views

Getting gdal_translate 0ERROR 1, but the raster has a data table

I'm trying to get a large number of GeoTiff files into a geopackage for a project we'll be using QField for. Ideally, I'd like to batch the process, but in testing small samples out I'm running into ...
1
vote
0answers
136 views

Eclipse and PyDev using python from OSGeo4W

I'm trying to setup a PyDev Python Interpreter from OSGeo4W in Eclipse (neon 3 and java 8 on Windows 7 x64). I have installed the latest python 2.7.5 and python 3.6.? from OSGeo4W. I would like to ...
1
vote
0answers
94 views

Grass 6 tools missing in Processing tool box

I have installed QGIS via osgeo4w-setup (64Bit). I cannot find grass 6 tools in the toolbox. I also have the dev version of QGIS on my notebook and there I can see and work with the grass 6 tools. Do ...
1
vote
0answers
154 views

Problem importing qgis.core inside docker container

I'm trying to use QGIS libraries in docker container. When I try import qgis.core I get this error, really I can't figure out what is the cause. Traceback (most recent call last): File "<stdin&...
1
vote
0answers
267 views

QGIS LYON desktop cannot be opened on windows 7

I have installed QGIS lyon from http://qgis.org/downloads/QGIS-OSGeo4W-2.12.3-1-Setup-x86_64.exe on win7. I did not install the default data set. On my desktop, there are some icons of QGIS. ...
1
vote
0answers
134 views

Trouble importing qgis.core python module

I am having issues loading the qgis Python modules in the osgeo4w shell. Ultimately I want to work with the modules in pyscripter. I tried the solution mentioned in Problem with import qgis.core when ...
1
vote
0answers
2k views

Exporting spatial object in mysql to shapefile with spatial reference

Info: Win7, MySQL 5.x and OSGEO4W 1.11 To import a shapeafile to MySQL I use this ogr2ogr command: ogr2ogr -f MySQL MySQL:gis,user=root,password=password C:\posto_pianco.shp -nln pianco_post -a_srs ...
0
votes
0answers
17 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 ...
0
votes
0answers
22 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
0answers
28 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 ...
0
votes
0answers
17 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 ...
0
votes
0answers
11 views

Usage of osgeo4w and python3 - jupyte-notebooks paralel

I have installed osgeo4w and also seperately python and jupyter-notebook on Windows 10. I want to use gdal in jupyter-notebook. from osgeo import ogr driver = ogr.GetDriverByName('GeoJSON') gives ...
0
votes
1answer
32 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\...
0
votes
0answers
23 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, ...
0
votes
0answers
14 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 ...