Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [osgeo4w]

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

0
votes
0answers
13 views

How can I get an HTML output on GRASS GIS?

I'm using GRASS GIS to create a simple map with some text (d.text) and vector maps (d.vect) and I can have a .png output with the PNG Display Driver (which I looked it up on https://grass.osgeo.org/...
1
vote
0answers
23 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: ...
0
votes
2answers
30 views

Do not have pip for my QGIS Python.

I want to install gsutil onto my QGIS's version of python. Most tutorials say I should be able use the pip/pip3 command. When I run OSGeo4WShell, it does not have the pip command available. How can ...
5
votes
0answers
97 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 ...
3
votes
1answer
36 views

Can't open Qt Designer with qgis-designer.bat

I'm trying to open Qt Designer using the qgis-designer.bat file, but I'm receiving the following error message Windows cannot find 'designer.exe'. Make sure you've typed the name correctly, then ...
0
votes
0answers
44 views

Issue with installing libraries for HotSpot Analysis with QGIS 3.4.

I am looking to use the Hotspot Analysis Plugin in QGIS 3.4. I have QGIS 3.4 installed and understand that in order for the plugin to work some dependencies are needed which can be installed through ...
1
vote
0answers
24 views

QGIS OSGEO4W Setup error [duplicate]

I uninstalled QGIS by deleting OSGEO4W folder. Then when I try to install it again using osgeo4w setup, I get this "zip.dll was not found" error message. Does anyone have the same issue?
0
votes
1answer
35 views

MbTiles is not shown at a specific scale in QGIS 3.2

I've created MbTiles with gdal_translate in the OSGeo4W Shell. The workflow was at follows: convert jp2 files to geotiff with gdal_translate create a Virtual Raster for all raster files (about 1000)...
0
votes
0answers
38 views

QT Designer: Cannot load library C:\…\designer\pyqt5.dll: The specified module could not be found

I have a standard network installation of QGIS3. When I open QT Designer from the standard location where it installed with QGIS, I see the following error by selecting the menu "Help" and then ...
0
votes
1answer
238 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
1answer
52 views

PDAL works in Windows command but not in OSGeo4WShell?

I want to import a pointcloud into a PostGIS database. AFAIK you accomplish this with PDAL which comes with OSGeo4W. I was following this tutorial: OSGeo4W LiDAR tutorial and also this tutorial PDAL....
0
votes
0answers
220 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
45 views

Converting multiple geometry KML to SHP

I have a KML file with multiple geometry, points and polygons. I want to convert it to a point shp and a polygon shp. Using OSGeo4W Shell I tried this : ogr2ogr -where "OGR_GEOMETRY='Point'" -f "...
0
votes
0answers
91 views

use python3 with osgeo4w shell and missing py3_env

I'm trying to migrate my qgis plugin from qgis 2.18 to 3.2. I try to use qgis2to3 for the migration but I'm having some problems. First qgis2to3 require python 3.3 and my osgeo4w shell install is ...
2
votes
0answers
215 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 ...
0
votes
0answers
68 views

Load a .las file in QGIS 2.18.7 [duplicate]

Looking to load a .las file into QGIS so I can view it's coverage and extents. What is the best method to get this work quickly and efficiently?
0
votes
0answers
29 views

Switch in ogr2ogr clip to split per object in clip table

I am running a basic ogr2ogr command in osgeo shell to clip a directory of data by an AOI. If the AOI has more than one polygon feature is there a switch that can clip per polygon feature and name the ...
1
vote
0answers
164 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
1answer
509 views

How to set up GDAL Java Bindings for Windows with OSGeo4w?

I've been searching for ways to use java bindings for GDAL and installed the OSGeo4W packages QGIS, GDAL, and GrassGIS using the "Express Desktop Install" method. After installing and confirming the ...
0
votes
0answers
12 views

How to load multiple .gml files at a time into Postgres DB using OSgeo4w shell?

I am looking for a loading script or command which can load multiple .gml files into postgres DB. I am running script/command using OSGeo4w shell. I have used this command: C:\ProgramData\Microsoft\...
0
votes
0answers
63 views

Intersection between point and world land shapefile with python

I use python and OGR to check if a point is located inside a polygon and then find its distance from the nearest edge. I know that the code I use works, but because the polygon is actually the whole ...
0
votes
0answers
16 views

Location of libtiff from osgeo4w install?

I'm trying to find the location of osgeo4w's install of libtiff. I've install OSGeo4W in C:/OSGeo4W so that's easy to find. But I need to specifically find libtiff as I'm trying to install another ...
2
votes
1answer
48 views

ogr2ogr issues in clipping tab to shp where tab has points and lines together

I am running a simple script to clip and convert all tab files in a directory via osgeo shell for %f in (*.TAB) do ogr2ogr "%~dpnf_Clip.shp" -clipsrc "clipped\AOI.TAB" "%f" -f "ESRI Shapefile" It ...
1
vote
0answers
204 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 ...
4
votes
3answers
430 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 ...
2
votes
1answer
23 views

Why does the SRID of an ogr2ogr-imported MSSQLSpatial table change when using UID/PWD vs. trusted_connection?

I'm using python to run ogr2ogr commands to load SHP to MSSQLSpatial. The command works fine when using trusted_connection, but when I use UID and PWD, the SRID is randomly changed to SRID:846 (while ...
4
votes
0answers
179 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 ...
1
vote
0answers
44 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=...
0
votes
0answers
18 views

Extracting Shapefile from sql [duplicate]

is there any tools apart from OSGeo that allows to exract shapefile from sql ? Because i had an issue with OSGeo and i am looking for alternatives.
0
votes
0answers
35 views

Couldn't Fetch Request Layer OsgeoW4 Shell [duplicate]

I'm running this cmd in OSGeoW4 Shell : ogr2ogr -f "ESRI Shapefile" "C:\Users\sqlexport23.shp" "MSSQL:server=PORT_7FMW8H2\MSSQLSERVER01;database=TestShape;trusted_connection=yes;"-sql "select * from ...
1
vote
1answer
158 views

Export spatial data from SQL Server to ESRI shapefile using OSGeo

i did a join between 2 tables departements2 which has all department with their id and geometry with BM_REGIONFR with id of department and region ( i have 5 region in each region many departement ) ...
0
votes
2answers
548 views

Export spatial data from SQL Server to ESRI shapefile

I want to export spatial data from SQL Server to ESRI shapefile and I have an issue : ogr2ogr -f "ESRI Shapefile" " C:\Users\sqlexport.shp " "MSSQL:server=PORT_7FMW8H2;database=testdbspatial;...
1
vote
1answer
98 views

Avoid Python conflicts with the system environment (in Windows)

When are you new to QGIS and PyQGIS what works in the background you might be confused by the different Python Interpreters and customization by settings so called environment variables. How do avoid ...
1
vote
1answer
69 views

Using OSGeo4W program on Windows to convert Sweref99 to WGS84 and get the result in a file

I will use cs2cs to convert between Sweref99 and WGS84. It works fine, but I want the result table in a file and not just in a DOS window on the screen. How ?? Hans Johansson
1
vote
0answers
206 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 ...
0
votes
1answer
121 views

Install numba on QGIS using OSGeo4W

My setup: Windows 10 64 bit (including all patches) QGIS 3.0.0-Girona My issue: Installing numba not working why: I want to use GPU to process my python scripts Details: I followed the following: ...
0
votes
2answers
528 views

Use OSGeo4W shell command from python 2.7 script

I would like to convert jp2 files (sentinel-2) to geotiff format using python 2.7 on win 10. I saw some solutions using python and GDAL but they did not work for me. The only thing that did work was ...
1
vote
1answer
257 views

QGIS Processing not loading - error on startup

After installing both QGIS 2.18.17 and QGIS 3.0 in parallel using OSGeo4W the processing framework/toolbox etc. no longer loads in QGIS 2.18.17 (or other earlier than 3.0 version) when starting QGIS. ...
2
votes
0answers
198 views

ogrinfo works on a gdb, but ogr2ogr cant open the same file gdb [closed]

GDAL 2.2.3 ogrinfo "Source_Rock_Geochemistry.gdb" produces a list of contents which is correct. However, ogr2ogr -f "PostgreSQL" PG:"host=xxxxx dbname=atlas user=atlas password=yyyy ACTIVE_SCHEMA=...
3
votes
2answers
2k views

OSGeo4W shell with python3

I would like to use OSGeo4W shell with Python3 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\...
2
votes
1answer
186 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 ...
2
votes
0answers
88 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 ...
1
vote
0answers
187 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?
3
votes
0answers
123 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 ...
0
votes
1answer
113 views

Installing GDAL 'frmts' on Windows

I have a full OSGeo4W (64bit) installation on my Windows 10 laptop. I'm using it for Quantum GIS, Python et cetera. There is a osgeo4w64/apps/gdal-dev folder in the installation. I want to achieve ...
3
votes
0answers
541 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 ...
2
votes
1answer
108 views

grass GIS + spyder python script error

I'm getting crazy with grass gis and python. I want to call a grass function from an external python script (using spyder for instance). I've installed QGIS + GRASS with the OSGeo4W64 installation ...
2
votes
1answer
558 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 ...
1
vote
1answer
116 views

Did SAGA tools get slower?

after a while I have updated my QGIS to 2.18.15 and I have noticed that some saga tools run very slowly. Some months ago I used the saga multilevel b-spline interpolation tool and it runs very fast. ...
1
vote
1answer
112 views

OSGeo4W64 to OSGeo4W (32bit) Environ setting issue

I normally use my Python script using OSGeo4W64 command shell on my 64-bit PC (Windows10). Now, I'm trying to use my script on a 32-bit machine (Windows10). In the 32-bit machine, there's an issue ...