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.
242
questions
1
vote
1
answer
68
views
MultiPolygon to Polygon in Python [closed]
I need to change geotype from MultiPolygon to Polygon. Most of the original features are Polygon, but are automatically imported through API as MultiPolygon. How can I change all the types ...
0
votes
1
answer
40
views
Transforming ortho (.tiff) file from one epsg to other epsg
I am using GDAL to transfrom ortho from one EPSG to other EPSG.
In my case I have used EPSG:32610 which is in (m) and transformed into EPSG:2227 which is in (us-ft). I am able to transform it using ...
3
votes
2
answers
151
views
How to extract the integer-based geometry type code from an OGR feature
Main question
Using OGR in Python, how can I extract the integer-based geometry type code for a specific feature?
I know how to do this when dealing with a whole layer. For example, reading a layer ...
0
votes
0
answers
45
views
Hotine Oblique Mercator projection Where is the code in C/C++/Python?
For these functions:
SetHOM()
Set a Hotine Oblique Mercator projection using azimuth angle.
SetHOM2PNO()
Set a Hotine Oblique Mercator projection using two points on projection centerline.
SetHOMAC()
...
0
votes
0
answers
88
views
Unable to Install GDAL Python Binding with PIP
I am trying to install GDAL Python Package in my macOS Sonoma(14.4), but each time I am trying to install I get an error which is mentioned below:
Few last lines of the Installation Message:
/usr/...
0
votes
1
answer
73
views
Modify a subset of a raster based on a shapefile
I want to modify a subset of a raster based on the extent of a shapefile.
The raster is of ground elevations and I need to modify an area that has been excavate into a big hole by subtracting 200 m.
I ...
0
votes
0
answers
35
views
Edited shapes become invisible
I´m working editing shapes in a geodatabase with Osgeo. The last editions become invisible until I make a new edition.
The problem is that the last editions become invisible until I make a new ...
0
votes
0
answers
45
views
Specify the driver used to read in a file for gdal.Warp in python osgeo
In base gdal, it is possible to specify the input format driver using -if. How can this be set when calling osgeo.gdal.Warp?
0
votes
1
answer
406
views
No module named 'osgeo._gdal_array' - Docker image with Python and GDAL
I'm having trouble using GDAL in docker.
My application locally but when on docker I get this error:
ModuleNotFoundError: No module named 'osgeo._gdal_array'
I created here a small example to make ...
0
votes
0
answers
122
views
Saving a GeoTIFF with transparent data using OSGeo.Gdal
I'm creating a GeoTIFF using OSGeo.Gdal and have been successful so far. However, it's unclear to me how to save a .tif file with transparency.
I'm building the GeoTIFF using a byte array where values ...
0
votes
0
answers
194
views
AWS Lambda layer in eu-west-2 containing gdal & python-gdal bindings
I need to write a Lambda that uses GDAL. I've tried using https://github.com/developmentseed/geolambda, but I need the layer from eu-west-2 region due to other dependencies. I've tried other Lambda ...
0
votes
0
answers
55
views
Warp result of GDAL translate jpg to geotiff using osgeo.gdal
I am attempting to warp a geotiff created from gdal.Translate where the original file was a jpg. I first obtain the ground control points from a co-located text file. The results of gdal.Translate ...
1
vote
1
answer
326
views
Convert KML to GeoTIFF with Python (osgeo.gdal)
I have a KML file provided by a user that looks like:
<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://...
2
votes
2
answers
110
views
Cannot import QgsVectorLayer from osgeo.ogr
I am trying to write a simple script to convert an ESRI geodatabase to a geopackage using gdal/ogr.
Here's the example I was using:
from osgeo import ogr
fgdb = r"C:\GIS\data\somefilegeodatabase....
0
votes
1
answer
2k
views
ModuleNotFoundError: No module named 'matplotlib.backends.backend_qt4agg'
I installed QGIS plug-in "AVHYAS is an open source Python 3 tool plugged in QGIS",and installed required libraries however while trying to use some function, I got the following error. The ...