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.

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 ...
Ilya's user avatar
  • 13
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 ...
Vivek Rao's user avatar
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 ...
Felipe D.'s user avatar
  • 2,689
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() ...
Mario Rossi's user avatar
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/...
Aman Ranjan's user avatar
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 ...
Em_kath_white's user avatar
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 ...
Cuerda Florencia's user avatar
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?
nrp1000's user avatar
  • 447
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 ...
DeNasti's user avatar
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 ...
tkbadmoon's user avatar
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 ...
Imran AK's user avatar
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 ...
jclark754's user avatar
  • 111
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://...
jclark754's user avatar
  • 111
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....
gwydion93's user avatar
  • 1,913
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 ...
Mustafa Ustuner's user avatar

15 30 50 per page
1
2 3 4 5
17