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
16 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 ...
0
votes
0answers
11 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
31 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
12 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
26 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 ...
2
votes
0answers
25 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
38 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
54 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
31 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
9 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
115 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
62 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
19 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
37 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
71 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
112 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
55 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
92 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
26 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
46 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
68 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
430 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
71 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
327 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
58 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
122 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 ...
3
votes
0answers
286 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
31 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
186 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
764 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
15 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
77 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
18 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
60 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
229 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
506 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
24 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
188 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
47 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
53 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
185 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
785 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
121 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
76 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
249 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
134 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
640 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
293 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
253 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=...