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
0answers
992 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
1answer
288 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
262 views

use python3 with osgeo4w shell and missing py3_env [duplicate]

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 ...
5
votes
0answers
687 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 ...
1
vote
0answers
353 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 ...
2
votes
1answer
2k 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 ...
2
votes
1answer
157 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
350 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
2answers
1k 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
34 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
247 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
80 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
1answer
370 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
2k 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
219 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
124 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
392 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
165 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: ...
1
vote
2answers
1k 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
423 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
555 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=...
16
votes
3answers
7k 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\...
4
votes
1answer
529 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
123 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
255 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
216 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
193 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
723 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
150 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
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 ...
1
vote
1answer
177 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
313 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 ...
0
votes
1answer
197 views

GDAL calculation stop working python.exe any time

i try to use python GDAL raster calculation to take some raster result where i need. i windows user and i work in OSGeo4W Shell. first i try to work using batch file with success. code work with ...
1
vote
0answers
338 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
1answer
759 views

ogr2ogr in Windows cmd prompt unable to find driver 'PostgreSQL'

I can successfully execute the following command in the OSGeo4W shell: ogr2ogr -f "PostgreSQL" -a_srs "EPSG:102733" PG:"host=localhost user='postgres' dbname='nameofdb' password='password' port=5433" ...
2
votes
1answer
619 views

OSGeo4W Shell 'Command not found'

I have a sh script that I want to use to process raster files. eg #!/bin/sh # my first script, # copyright, year, Author r.mask -r for file in A*chlor_a_4km ; do echo "map: $file" ...
0
votes
1answer
113 views

Can't import QGIS library using “C:\OSGeo4W64\bin\python.exe”

I have ArcGIS and QGIS on my Windows 7 system (installed with OSGeo4W64). Why I can't import qgis library using "C:\OSGeo4W64\bin\python.exe" ? How to fix that? P.S. Importing QGIS from OSGeo4W Shell ...
2
votes
2answers
508 views

Extracting GeometryCollections From SQL

I am trying to convert SQL Shapes to ESRI Shapefiles using the instructions in this blog post from a few years back and OSGeo4W. https://alastaira.wordpress.com/2011/09/29/exporting-spatial-data-from-...
0
votes
1answer
61 views

Applying OTB mean shift smoothing to a folder of rasters using Python 2

I am very new to Python, and am having trouble coming up with a loop script that will allow me to apply a smoothing process to a folder of rasters. This is the script I am using for a single file ...
1
vote
1answer
133 views

Working with numba in QGIS

I am trying to install the python library numba with pip from the OSGeo4W shell, but I haven't been able to do it. The only way I could do this was through the anaconda installer. but since Anaconda ...
0
votes
1answer
74 views

Topology will not identify overlapping polygons using qgis 2.18 Error: otb was not found or is not correctly installed

Topology will not identify overlapping polygons using qgis 2.18 Error: otb was not found or is not correctly installed. I promise this tool worked yesterday just fine. Today it won't work due to the ...
0
votes
1answer
235 views

SAGA not working under QGIS 2.18.10 (OSGeo4W)

Recently, saga algorithm disappeared from the processing panel. However, they are still listed under processing->options. How to make them available again?
1
vote
1answer
208 views

gdalwarp's minimum resampling has no effect (possible bug)?

I'm attempting to use the minimum operator with gdalwarp v2.1.0 but it always mosaics as if I had selected nearest neighbor. From the docs: -r resampling_method: min: minimum resampling, selects ...
1
vote
2answers
3k views

OSgeo4W64 Windows 7 & ImportError: No Module Named Site

I realize this question has been asked a lot, but I was not able to resolve my issue through the answers posted elsewhere... I am new to Python, gdal, OSgeo4W, etc. but have experience with ArcGIS. I'...
3
votes
1answer
2k views

Making 'make'-command work for compiling QGIS-plugins?

How can I compile my plugin when the 'make'-command refuses to work in the OSGeo4W Shell? Can I make the 'make'-command work? Is there an alternative out there? I'm trying to build a plugin for ...
3
votes
0answers
479 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 ...
5
votes
1answer
1k 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 ...
2
votes
1answer
162 views

OsGeo4W (QGIS 2.18.9): GRASS i.maxlik can't find signature on Windows 10 network

On a Windows 10 network running in the PC pool of our institution, i.maxlike from GRASS 7 produces the following error message when using a signature file produced by i.cluster. Using it from QGIS 2....
4
votes
2answers
163 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; ...
5
votes
2answers
876 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 ...