Stack Exchange Network

Stack Exchange network consists of 175 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
25 views

Merging many files on Python?

I'm new to Python. I tried to call gdal_merge.py import sys sys.path.append('C:\Program Files\QGIS 3.6\bin\gdal_merge') import gdal_merge as gm gm.main(['', '-o','C:\12\Merged.tif','C:\..\...
0
votes
0answers
19 views

gdalinfo --formats return different values in python3 than in OSGeo4W

I am working whit geopdf to obtain the layers. When I use driver = ogr.GetDriverByName('PDF') it return None, and obviously I can't open it. I have checked with the command gdalinfo --formats and it ...
1
vote
0answers
13 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
26 views

QGIS- Try writing plugin - neither 'make' nor 'pyrcc4' is known command

I want to write a python plugin for QGIS 3.6. Following the Guide I've installed the mentioned software Qt Creator and the OSGeo4W . There is written, that in the OSGeo4W Shell It would be possible ...
1
vote
1answer
36 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
1answer
51 views

Where to find out about QGIS new versions?

What's the right way to find out about new current QGIS version releases? I'm on Win64 and use OSGeo4W. The roadmap gives dates for new releases, confirmed by the main web site header which lists ...
1
vote
0answers
42 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 ...
3
votes
3answers
917 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\...
1
vote
1answer
246 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
87 views

Using Compressed Data Files (.cdf) from a Geodatabase in QGIS?

I am using QGIS3 for a file geodatabase that was created on ArcMap. I can only access a few of the layers in the QGIS browser because most of them are stored using a compressed data file (.cdf). When ...
1
vote
1answer
27 views

ETOPO1 upsampling issue

I am using the OSGeo4W Shell with the ETOPO1, 1 arc-minute global bathymetric data (etopo1_ice_g_f4.flt). I am cutting 256x256 pixel slippy map tiles, and am having a problem with getting smooth-...
1
vote
0answers
67 views

No icons when installing QGIS 3.4.4

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
21 views

Add FID to attribute table using ogrinfo

I want to add the fid to the attribute table using ogrinfo in OSGeo4W Shell. Here is my code: ogrinfo layer.shp -sql "ALTER TABLE layer ADD COLUMN ID integer" ogrinfo layer.shp -dialect SQLite -...
0
votes
0answers
39 views

Create/Fill Feature Dataset in QGIS

With the FileGDB-Driver of an OSGeo4W installation it is possible to read/edit/create Feature Classes of FileGDB in QGIS. Is it possible to create ESRI's Feature Datasets in QGIS to group Feature ...
3
votes
0answers
44 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 ...
0
votes
0answers
46 views

Geoserver+GDAL+OSGEO4W ECW support

I am trying to install the GDAL plugin for Geoserver on machines which have windows 7 and 10. both machines had a previously installed version of OSGeo4W. I followed all the instructions in the ...
1
vote
1answer
93 views

NumPy array to Raster file (GeoTIFF)

I converted a raster file (one band grey scale) to an numpy array and set a range to it. I Did like that: import gdal import numpy ds = gdal.Open('H:/GDAL_docs/a.tif') myarray = numpy.array(ds....
1
vote
1answer
67 views

OSGEO4W Checking GDAL version with `gdalinfo --version` returns nothing

I am using OSGEO4W 32-bit on Windows 10. I am trying to check the version of GDAL. Following the instructions here, when I input gdalinfo --version in the OSGEO4W shell, I get just a blank line. ...
0
votes
0answers
10 views

GeoPHP geosInstalled returns false

I have installed OSGeo4W on my 64-bit windows. I am trying to use GEOS functions in GeoPHP, but when I call geoPHP::geosInstalled, it returns me false. This is how I included the libraries: <?php ...
1
vote
1answer
259 views

Clean install of QGIS version 2.18.27 from OSGEO4W Network Installer fails

I simply cannot get a clean install of QGIS version 2.18.27. I seem unable to access any working SAGA tools. I used to have access to these tools in version 2.18.23, Standalone Installer The Log ...
-1
votes
2answers
87 views

Using pip in OSGeo4W64

I Successfully installed pip but when I ran pip it gave me the following error: C:\PYQGIS\DOCS>pip File "C:\OSGEO4~1\apps\Python37\lib\site.py", line 177 file=sys.stderr) ^ ...
0
votes
0answers
21 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
51 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
120 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
145 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
77 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
121 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
30 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
55 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
100 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 ...
1
vote
2answers
516 views

'pyrcc4' is not recognized as an internal or external command?

C:\Users\Department\.qgis2\python\plugins\np>pyrcc4 -py2 resources.qrc -o resources.py 'pyrcc4' is not recognized as an internal or external command, operable program or batch file. How do ...
0
votes
1answer
622 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
89 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
509 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
90 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 "...
1
vote
0answers
138 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 ...
3
votes
0answers
342 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
32 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
218 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
1k 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
99 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
20 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
70 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
244 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
596 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
26 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
211 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
50 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
205 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
1k 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;...