Skip to main content

Questions tagged [osgeo]

The Open Source Geospatial Foundation (http://www.osgeo.org), or OSGeo, is a not-for-profit organization whose mission is to support and promote the collaborative development of open geospatial technologies and data.

Filter by
Sorted by
Tagged with
70 votes
3 answers
81k views

Uninstalling QGIS that was installed using OSGeo

I installed QGIS using OSGEO4W, and would love to know how to uninstall it, because when I go to "Control Panel > Programs > Uninstall" the program does not appear in the list of installed programs. ...
felipe's user avatar
  • 701
35 votes
5 answers
49k views

Comparing different open source GIS servers?

I currently know the following open source GIS servers: Geoserver: java based, vector and bitmap support, also supports. Is now on par with mapserver (performance-wise). mapserver: c/c++, used to be ...
29 votes
2 answers
32k views

What is OSGeo4W?

I have been using GIS for a few years now (ArcGIS and MapInfo). But only when I have started using QGIS I come across OSGeo4W, as there is an option to download it on the QGIS website. I have tried ...
T.O.6's user avatar
  • 957
22 votes
7 answers
13k views

QGIS 3.0 can't load plugin processing, no module named 'osgeo', on Manjaro Linux

I have installed QGIS3 from the AUR package, as well as all optional dependencies: https://aur.archlinux.org/packages/qgis/ However, when launching, I receive the following error: Couldn't load ...
thi_sanna's user avatar
  • 439
21 votes
6 answers
63k 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 "...
Asanda's user avatar
  • 293
19 votes
2 answers
16k views

Adding custom feature attributes to shapefile using OGR in Python

I am seeking a way to take an existing Shapefile that has a Feature set of 200 countries. Each country Feature has an attribute of "NAME." My objective is to create a Python script that adds an ...
mattdeboard's user avatar
15 votes
10 answers
2k views

Seeking Open Source Training Materials?

The question Are Online Certs worth their weight? made me wonder if there are any open source training materials for GIS. By this I don't mean training specifically for open source software - of ...
15 votes
2 answers
12k views

Splitting shapefile per feature in Python using GDAL?

is it possible to split a shapefile per feature in python? (best would be a solution where i can temporarily save the resulting vector objects to the memory instead to disk). The reason: I want to ...
Curlew's user avatar
  • 8,160
14 votes
1 answer
3k views

Is there a way to properly have GDAL raise exceptions in Python?

I am working with GDAL in Python and have wanted to get GDAL to raise exceptions so that I can do something useful with them. For instance if a file cannot be opened with gdal.Open() I would like to ...
Doug's user avatar
  • 617
12 votes
5 answers
734 views

List of desktop GIS FOSS case studies

I think we should create a list of best desktop GIS FOSS case studies. First of all this list will be useful to anyone who considers desktop GIS FOSS for a project as an viable alternative.
12 votes
1 answer
13k views

Crop a raster using rasterio and geopandas

I am cropping a set of historic aerial photographs. These photographs have large black areas in the edges (0 value). However there is also valid data with a 0 value. The workflow I am using is: Load ...
rosswin's user avatar
  • 371
11 votes
1 answer
4k views

Differences between OSGEO GDAL and GDAL python bindings?

Question I'm trying to figure what are the differences, and of course, what is the best solution to use, between two python3 bindings: GDAL, imported as import gdal OSGEO.GDAL, imported as ...
swiss_knight's user avatar
  • 10.4k
10 votes
4 answers
10k views

What is the OSGeo4W-equivalent for Linux?

OSGeo4W is a windows based stack of GeoFOSS which is based upon cygwin. I know there is a package listing describing what is inside the OSGeo4W binary package and I could fetch and install every ...
q9f's user avatar
  • 2,176
10 votes
3 answers
3k views

What Open Source (command line/API) method is there to orthorectify and georeference an aerial image given telemetry data?

How can I take an image and orthorectify it automatically with open source software? The information associated with each image is: camera specs latitude, longitude, elevation of the camera ...
OkonX's user avatar
  • 201
9 votes
2 answers
5k views

OGR CreateLayer returns TypeError

I'm trying to create a shapefile layer based on the spatial projection of an already existing raster. (Ultimately, this will be used in gdal.Polygonize to get a shape from my raster data.) However, I ...
Lark's user avatar
  • 423
8 votes
6 answers
58k 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 ...
Asanda's user avatar
  • 293
8 votes
1 answer
14k views

How do I install the GDAL bindings for C#/.NET 4.5.1?

I'm trying to use the C# gdal bindings but I get an error in my C# code which says "Unable to load DLL 'gdal_wrap': The specified module could not be found. (Exception from HRESULT: 0x8007007E)". I'...
Andre Lashley's user avatar
8 votes
2 answers
1k views

What are my options for Server side clustering using open source GIS tools?

I need to make a webapp that will show over 40K Points on a map. These points are all across the globe. Using WFS Service and OpenLayers, it is possible to do clustering on small set of points, but ...
Devdatta Tengshe's user avatar
7 votes
1 answer
16k views

Display a georeferenced DEM surface in 3D matplotlib

I want to use a DEM file to generate a simulated terrain surface using matplotlib. But I do not know how to georeference the raster coordinates to a given CRS. Nor do I know how to express the ...
EricVonB's user avatar
  • 193
7 votes
1 answer
5k views

How to run OSgo4W shell script on Windows?

I have a lot of DEMs that I want to use to create hillshades, slopes and color relief from and would like to automate the processes using a shell script within OSgeo4W shell. Here is the code I used ...
T_9er's user avatar
  • 298
7 votes
2 answers
9k views

Point-in-polygon using Python and OGR

I want to use OGR in Python to write a simple point-in-polygon test: def point_in_polygon(point, polygon): """ point : [longitude, latitude] polygon : [(lon1, lat1), (lon2, lat2), ..., (...
andreash's user avatar
  • 741
7 votes
2 answers
2k views

Adding support to Esri's FileGDB driver when fiona/gdal/osgeo were installed through Anaconda

Is there a way to tweak the fiona/gdal/osgeo packages installed through Anaconda so that they can be used to read/write GDB files using the ESRI FileGDB driver? The main thing I'm actually trying to ...
Felipe D.'s user avatar
  • 2,629
6 votes
3 answers
1k views

How can I use py2exe with the OSGeo4W Python installation?

I have a default Python installation in c:\Python27. I have also installed Python through the OSGeo4W installer, which has created a "sandboxed" Python installation with all the geospatial bindings I ...
rudivonstaden's user avatar
6 votes
3 answers
501 views

Using Python from both OSGeo4W and ArcGIS Desktop? [duplicate]

This question was asked several years ago at: Can ArcGIS and OSGeo4W share the same python install?, but it seems that versions have changed since then. I currently have ArcGIS 10.0 installed (not ...
Brian's user avatar
  • 4,219
6 votes
3 answers
6k views

Cannot install gdal or osgeo using .venv - error: legacy-install-failure

I have cloned a git repo which one of the required package there is to have gdal installed. The computer is Linux and I use vs code to connect reomtly. at the beginning I naively tried to install gdal ...
ReutKeller's user avatar
  • 2,149
6 votes
1 answer
3k views

"ImportError: No module named qgis.core" when importing qgis.core in Python

I installed OSGeo4W. I have no other Python version on my computer. I can import osgeo. But when I try to import qgis.core I am getting the error: >>> import qgis.core Traceback (most recent ...
ustroetz's user avatar
  • 8,014
6 votes
2 answers
457 views

Setting up foundational OSGeo enterprise GIS? [closed]

First let me describe the task: My lab has approached me about setting up a simple GIS for a colleagues 'non-spatial' lab. There are a couple of key characteristics to the intended setup: Fully open ...
svh160's user avatar
  • 172
6 votes
2 answers
1k views

Overlapping Polygon becoming hole when converting geojson to shapefile

I'm trying to convert a geojson MultiPolygon which contains two overlapping polygons to a shapefile, however I noticed that the resulting shape has a smaller area. Upon inspection it's because the ...
The Bearded Templar's user avatar
6 votes
0 answers
3k views

ArcGIS Server performance comparison [closed]

Are there any recent comparisons/studies of ArcGIS Server vs. open source GIS servers in common tasks like providing a WMS/WFS, filtering data/search performance, and so on? We received a lot of ...
Riccardo's user avatar
  • 2,648
5 votes
2 answers
6k views

Does OSGeo4W install 32 bit or 64 bit version of QGIS?

If you are installing QGIS via OSGeo installer on a windows 64 bit OS (XP, vista or 7), does it install a 32 bits or 64 bit version of QGIS? Usually the standalone installer installs a 32 bits ...
Gerardo Jiménez's user avatar
5 votes
3 answers
1k views

How to extract FileGDB's domains without ArcGIS?

I'm trying to get an ESRI File Geodatabase domains by using the GDAL\OGR library. By doing so, I wish to edit this datasource using QGIS' Attributes Form with designated value map widgets that point ...
EranGeo's user avatar
  • 1,182
5 votes
1 answer
8k views

GDAL Python cut geotiff image

I was stuck for 2 or 3 days. I have read many lectures from RS/GIS Laboratory of Utah State University. Also I read «Python Geospatial Development» book and many docs from gdal.org. So, my problem ...
Andrii's user avatar
  • 475
5 votes
1 answer
4k views

Running script over every file in folder using GDAL in Python?

I'm using GDAL to calculate NDVI mean and max and to find other information about .tif Landsat images acquired from Earth Explorer. I stacked the bands into a single .tif image and have a working ...
Vanludvig's user avatar
  • 147
5 votes
2 answers
739 views

Issues with osgeo - qgis.core and arcpy modules

Is it possible to have the python shell from either qgis or argis to load (import) both qgis.core and arcpy? I am developing a metadata creation tool and have completed the core functionality using ...
GeorgeC's user avatar
  • 8,238
5 votes
1 answer
6k views

Need File Geodatabase (*.gdb) read/write support in QGIS?

I have followed the instructions shown in this thread but still don't have the ESRI FileGDB option only the Open File GDB. In my case, I am in the most current QGIS version - Lyon (2.12.0). OSGeo4w ...
Ernesto CD's user avatar
5 votes
2 answers
3k views

How do a transform a geotiff image to use the projection of another image?

I have two sets of glib2 data from different sources which I would like to process together. Each image has a different projection and resolution (I don't know if resolution is the correct word to ...
stanri's user avatar
  • 265
5 votes
2 answers
5k views

Reading a shapefile as an array using Python?

I am trying to read a shapefile as an array with Python but I keep getting the same error: Warning 1: Failed to find field ID on layer shapefile_maido_tipe, skipping. ERROR 4: `temp.tif' not ...
Loïc Poncin's user avatar
5 votes
1 answer
845 views

Transforming lat/lon coordinates into an undescribed DATUM from NOAA .grib2 files

I seem to be having issues with converting coordinates. I'm currently working in Python v3.7 osgeo (ogr, osr, gdal) I want to find specific values (like temperature, wind, humidity) based on input ...
MorningGlory's user avatar
5 votes
1 answer
445 views

How to exactly copy one installation to another PC?

I've installed qgis on one workstation using OSGeo4w. I've launched the installer from a local folder and I have downloaded source files on a remote mapped drive. Frequently I relaunch OSGeo4w to ...
alexbit's user avatar
  • 51
5 votes
0 answers
218 views

Python osgeo/OGR not returning all features in PBF

I have a PBF file that is a limited export of the Nepal area. I'm trying to pull out all the adminstrative boundaries. If I use osmconvert to turn my PBF file into a OSM file, sure enough I see the ...
Nicolas Pottier's user avatar
5 votes
0 answers
871 views

Install OSGeo module in virtualenv

How can you install the osgeo module in a virtualenv? I downloaded QGIS using KyngChaos (www.kyngchaos.com/software/qgis) following https://arset.gsfc.nasa.gov/sites/default/files/land/webinars/...
William L's user avatar
5 votes
1 answer
6k views

GDAL loads in Python, but not IPython (Linux)

I am trying my hardest to utilize the work of the good folks at the GeoDa center, but I cannot seem to get all of the components to load. GDAL, in particular, has been giving me some difficulty. The ...
Marvin Ward Jr's user avatar
4 votes
3 answers
23k views

Python 3.6 error import osgeo

I'm trying to install GDAL osgeo lib into Python 3.6 on Debian Stretch I installed neccessary packages like: sudo apt-get update && sudo apt-get install -y \ binutils \ libproj-dev \ ...
sorryMike's user avatar
  • 191
4 votes
5 answers
5k views

Get srid from a shapefile using ogr

I'm writing a script to import shp to postgis, using python, osgeo and psycopg2 ( see my previous question: Import shp to Postgis using Python and ogr ) I'd know if there is a way to get by osgeo ...
franco_b's user avatar
  • 522
4 votes
1 answer
305 views

Docker container for OSGeo [closed]

Has anyone developed a docker container for OSGeo? Currently, the bootable image can be downloaded from here. It is set up to run in a virtual machine such as Virtual Box, but I am looking to run it ...
Ek00f's user avatar
  • 59
4 votes
1 answer
768 views

Export list of shapely.geometry.polygons as Esri shapefile

I have a list of shapely polygons, polygons. I want to export them all to an Esri shapefile layer. Here is the first feature in the list of polygons: POLYGON ((484 169, 485 169, 485 170, 486 170, 486 ...
Max Duso's user avatar
  • 153
4 votes
2 answers
2k views

pyQGIS 3.0 script not running with processing import

I have problems using version 3 of QGIS with Python 3. I followed different tutorials like this one : how to use pyqgis processing runalg clipvectorsbypolygon But it seems to be working only with ...
dmjf08's user avatar
  • 1,273
4 votes
3 answers
3k views

OSGeo4W and QGIS 2.0

I just ran the OSGeo4W installer to update my previous installation and I noticed that it was updating my QGIS installation from 1.8 to 2.0. I haven't been able to find any information on the web ...
Brian's user avatar
  • 4,219
4 votes
1 answer
8k views

Got "ImportError: No module named osgeo" in gdal_calc but not in main script [closed]

I could import gdal without any problem in my main Python script with: from osgeo import gdal I could also use gdalwarp, gdal_translate with no issue. But when it comes to gdal_calc, I got the error:...
Kevin's user avatar
  • 531
4 votes
1 answer
2k views

Clip and copy files to same directory structure using OGR/GDAL with Python

We need to clip all our data (many TB) by a new boundary and save it while maintaining the same data structure. I want to use OGR/GDAL as the data is in shp/tab/kml/geoTif/ecw etc. I can find the ...
GeorgeC's user avatar
  • 8,238

1
2 3 4 5