Questions tagged [osgeo4w]
OSGeo4W is a binary distribution of a broad set of open source geospatial software for Win32 environments (Windows XP, Vista, etc).
261
questions
0
votes
1
answer
96
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
1
answer
220
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
1
answer
85
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
1
answer
248
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
1
answer
359
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 ...
2
votes
2
answers
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
1
answer
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
0
answers
645
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 ...
7
votes
1
answer
3k
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
1
answer
214
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
2
answers
175
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
3
answers
2k
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
2
answers
933
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
0
answers
148
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
0
answers
53
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
2
answers
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 ...
15
votes
2
answers
25k
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 ...
7
votes
6
answers
42k
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 ...
21
votes
5
answers
49k
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
1
answer
193
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
0
answers
101
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
1
answer
375
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
0
answers
206
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
1
answer
692
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
1
answer
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
1
answer
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
0
answers
390
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
1
answer
44
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
1
answer
4k
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
4
answers
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
1
answer
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 ...
6
votes
2
answers
969
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
1
answer
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
2
answers
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
1
answer
130
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
2
answers
4k
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
2
answers
3k
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: ...
6
votes
3
answers
6k
views
No Module named qgis
I installed QGIS through OSGeo4W, and I am trying to write a standalone PyQGIS script, however, I am unable to import the qgis, qgis.core, processing ect… modules, as shown in the picture, I get the ‘...
5
votes
2
answers
4k
views
Grass tools not working in QGIS 2.14.3-ESSEN, OSGEO4W [duplicate]
Windows 10
QGIS 2.14.3-ESSEN
OSGEO4W install (current)
64-bit
Processing toolbox.
Grass tools do not work
Neither 6 nor 7. 6 makes sense as I do not see OSGEO4W installing it but 7 tools are ...
2
votes
1
answer
2k
views
QGIS Python Script - Python.exe Stopped Working
I purchased this book called Building Mapping Applications with QGIS and I am trying to work through one of the exercises. There is one script that I try to run that crashes python, generating the ...
2
votes
1
answer
146
views
64Bit Applications installed with QGIS/osgeo4w
Is python 64bit and gdal 64bit automatically installed when QGIS 64bit is installed via osgeo4w 64bit?
I currently have a custom 64bit python and gdal setup on my pc. However, this setup causes some ...
4
votes
3
answers
2k
views
Installing qgis-ltr or qgis-ltr-full with OSGeo4W or both?
I need some help with the installation of QGIS using OSGeo4W. I am using windows 7 and I want to install a 64 bit ltr release with all relevant dependencies and plugins.
I choose to install qgis with ...
1
vote
1
answer
326
views
QGIS 2.14 fails while booting-up
I installed QGIS 2.14 on a Windows7 64bit via the installer. But QGIS can not boot up remaining "Restoring loaded plugins...".
Although I re-installed it after I un-installed all of QGIS software ...
4
votes
1
answer
103
views
How to split every arc in a shapefile exactly in half?
I have a line shapefile containing several thousand arcs of varying length, representing a road system. I need to split each arc exactly in half along it's length. The resulting output would thus ...
4
votes
1
answer
559
views
How to resolve error when launching OSeo4W Shell: Windows cannot find .bat file?
I downloaded and installed OSGeo4W to use ogr2ogr, but the the program OSGeo4W will not run. On launching the shell, I receive an error stating the .bat file cannot be found in specified directory (...
0
votes
1
answer
345
views
gdal writeArray causes appcrash at end of python script
i'm using OSGeo4W64 (gdal 2.0.2-8) with Python 2.7.5 on Windows 8.1 64bit.
Editor is PyCharm 2016.1.2.
I want to save an image with gdal, but i always get an error when the python script is complete. ...
5
votes
1
answer
3k
views
Grass processing not configured in OSGEO4w QGIS 2.14.1
I get the below error when I try to use grass processing from within QGIS. The error is given on all commands and I have got this error on 2 machines. I am using windows.
"This algorithm cannot be ...
5
votes
1
answer
1k
views
command r.stream.order not found in grass 7.0.3 how to install r.stream module?
I have installed QGIS 2.14.1 and GrassGIS 7.0.3
I found in OSGEO Grass wiki page a command that calculate Strahler's and Horton's stream order Hack's main streams and Shreeve's stream magnitude from ...
1
vote
1
answer
4k
views
PyInstaller myscript.py - issues: empty dist folder
This question is subsequent to another question: here. The question was solved but I ran into another issue and tried to ask it there but it is worth being its own question I think.
Python version in ...
3
votes
1
answer
2k
views
Creating executables from Python using OSGeo4W shell
I've been trying to create an executable from my Python script and using the OSGeo4W.bat shell. I tried py2exe but it returns an access denied error.
Previously I've written executables using py2exe ...