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
3
votes
0answers
251 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
250 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
793 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
198 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
230 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
490 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
229 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
447 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
1k 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
1k 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
132 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 ...
3
votes
2answers
957 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
76 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
188 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
79 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
240 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
266 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
580 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 ...
6
votes
1answer
2k 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
185 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
167 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
1k 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 ...
0
votes
2answers
753 views

How to Install GDAL Python Bindings Alongside osgeo4w for a separate Python version

I am currently attempting to install the Christopher Gholke distrubution of GDAL (and associated bindings) on a work computer as a dependency for a package. This question is related, but I need to run ...
1
vote
0answers
141 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 ...
0
votes
0answers
52 views

unexpected %%X in OSGeo4W

This code worked fine before but now I'm getting this error: %%X was unexpected at this time Here is the code I'm using: cd /d C:\Users\user\Documents\PhiladelphiaBaseLayers set ogr2ogrPath="c:\...
4
votes
2answers
2k views

How to install OSGeo4W libraries in older version of QGIS (2.16)?

I am trying to install older version of QGIS (2.16) with OSGeo4W. But from the latest OSGeo4W Setup i can choose only 2.18 or 2.14 version. I want to install few libraries that are provided by OSGeo4W ...
11
votes
2answers
17k views

Merging all tiles from one directory using GDAL

I would like to use GDAL (under Windows; OSGeo4W Shell) to merge all GeoTIFFs from one directory into a new GeoTIFF. I have tried to address them by writing c:\data\....\*.tif which however does not ...
4
votes
3answers
23k views

Installing Python-GDAL with OSGEO?

I have been trying to install python gdal with OSGEO for some time now with no success. I have removed. I have tried with "Express and Advance" as suggested by OSGEO4W site. The error is always "No ...
16
votes
5answers
31k views

No module named 'osgeo'

I have installed GDAL and checked on the command line, it is working and when I run the gdal2tiles.py on the command line it works but when I run the same file gdal2tiles.py with python IDLE, I get "...
3
votes
1answer
186 views

import numpy failed OSGeo4W (_ctypes)

I just installed QGIS (2.18) using the OSGeo4W-installer (64-bit). When I use the python-console in QGIS it is possible to run the 'import numpy' statement and to use numpy. When I open python in ...
1
vote
0answers
97 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 ...
2
votes
1answer
174 views

MapInfo to QGIS style generator ; error message

I'm working on Windows 10 with MapInfo Pro 16.0, QGIS 2.16.3. I tried to use the usefull following plugin called "MapInfo to QGIS style generator": https://github.com/NathanW2/MapInfo-to-QGIS-style-...
1
vote
0answers
161 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&...
2
votes
1answer
309 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 ...
3
votes
1answer
1k views

Attempting to install pip package produces gdalversion is not defined error

I'm very new to using packages in python. I'm on Windows 7 64 bit. I've installed OSGEO4w, and I've checked numpy and scipy are installed. I assume GDAL is installed when I installed OSGEO4W, and I ...
2
votes
1answer
1k views

Installing pip packages from bat file and OSGEO Shell?

After installing QGIS (that from the 2.14 version has pip installed by default) I want to automatically install some pip packages within a bat file. One method to do that is writing a file.txt with ...
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
1answer
40 views

OSGeo4W Shell font issue [closed]

I'm trying to run OSGeo4W shell and the only font available is *MS ゴシック. It's a real pain since it uses a weird "Y" instead of "\" making it hard to read commands. Does anybody know how to activate ...
2
votes
1answer
2k views

How to save json returned by gdalinfo in python variable

When I run the command in osgeo4W shell gdalinfo -json C:\Users\Gurminder\Documents\Git\Dump\s1a-ew-grd-hh-20160725t043517-20160725t043617-012300-01322b-001.tiff I get a large json of my Ground ...
7
votes
4answers
3k views

ogr2ogr bringing up “memory allocation error”

I've got a shapefile which contains, at the moment, roughly 1500 polygons. The polygons all display fine using whatever GIS I throw it in (ArcGIS, QGIS). However, I'm trying to use ogr2ogr to convert ...
5
votes
1answer
2k views

QGIS 2.16 - Couldn't load QGIS utils. Python support will be disabled

I use Windows 10 OS and not good at coding. I have been using QGIS standalone installer for a long time (from 1.8 actually), but recently tried installing the OSGEO4W 32 bit version which had the ...
4
votes
2answers
771 views

OSGeo4W (gdal 2.1.0) and gdal2tiles

I've tried the x86 and x64 versions of OSGeo4W, but gdal2tiles is missing. Has gdal2tiles been removed from OSGeo4W? -={ OSGeo4W Shell Commands }=- bmp2tiff msencrypt ...
3
votes
1answer
2k views

Use OGR and GDAL in Python outside OSGEO4W shell

I have QGIS installed, therefore it installed the OSGeo4W with all functionalities and that works great. I added all the environment variables as proposed in this post: Is there a way to use gdal ...
7
votes
2answers
3k views

QGIS 2.16 - Installation problem under Windows 10

I installed twice Qgis 2.16 using OSGeo 4w install. First I uninstalled all the previuos version and installed 2.16. Everything worked fine but when I open Qgis I have a warning message: Couldn't ...
2
votes
1answer
99 views

Where to put the sub dataset in a windows loop when running gdal translate on NetCDFdata?

I need to run below command and it works great (note the -sds). for %A in ("C:\temp\*.nc") do gdal_translate -a_nodata 65535 -stats -ot Float32 -unscale -a_srs "+init=epsg:4326" -sds -co COMPRESS=...
5
votes
2answers
3k views

Convert raster to a CSV values and lat long based on raster value in QGIS

I am looking to convert a raster into a csv file (or tab delimited) based on values in the raster (Value > 0). The csv would have three values, latitude of center of cell, longitude of center of cell,...
1
vote
2answers
2k views

Writing shapefile to SQL Server database with ogr2ogr Error

I have been using ogr2ogr to write point shapefiles to a SQL Server Database of mine. I used it 2 weeks ago and it worked fine, but, today when I tried to run it, I get the following error: ERROR1: ...