Questions tagged [osgeo]

The Open Source Geospatial Foundation (OSGeo) is a not-for-profit organization whose mission is to foster global adoption of free and open geospatial technology by being an inclusive software foundation devoted to an open philosophy and participatory community driven development.

136 questions
17
votes
2 answers

How to project and resample a grid to match another grid with GDAL python?

Clarification: I somehow left out the key aspect: not using os.system or subprocess - just the python API. I'm trying to convert a section of a NOAA GTX offset grid for vertical datum transformations and not totally following how to do this in GDAL…
Kurt Schwehr
  • 2,638
  • 3
  • 24
  • 41
12
votes
2 answers

What is relationship between GDAL, FDO and OGR?

Their documentations are simple and professional. But they don't mention too much about the relationship between these open source projects. When should I use which one? And which one is suitable for what scenario? If you are a GIS developer who is…
Cui Pengfei 崔鹏飞
  • 8,017
  • 6
  • 46
  • 87
7
votes
1 answer

GDAL Virtualenv Python 3.6 Installation

I am having a brutal time getting gdal installed. I have a fresh install of Ubuntu Mint with a virtualenv Python 3.6 environment that I am trying to get GDAL installed on. After working through all the dependency requirements I now get the following…
Zexelon
  • 495
  • 5
  • 18
6
votes
1 answer

Export coordinate system as ESPG code: to_epsg() or ExportToEPSG()

When dealing with coordinates systems in Python with fiona and osgeo, there seem to be a lot of ways to define a coordinate system by importing/exporting different crs formats , for example: FIONA: from fiona.crs import…
Marjan Moderc
  • 2,747
  • 23
  • 44
6
votes
1 answer

Adding custom Feature attributes to ESRI Shapefile with Python

I am seeking a way to take an existing ESRI 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 arbitrary (for now) additional attribute, say,…
mattdeboard
  • 700
  • 1
  • 7
  • 17
5
votes
2 answers

Install GDAL on LINUX Ubuntu 20.04.4LTS for python

I've been having a lot of problems with this install, especially with various unmet dependencies. these are my system infos: Linux Ubuntu 20.04.4 LTS 64-bit Gnome_Version: 3.36.8 Python using a "poetry environment" (uses pip) python Version:…
John Lloyd
  • 157
  • 1
  • 11
5
votes
2 answers

why do I receive these errors "WARNING: Ignoring invalid distribution -yproj " while installing any python module in cmd

WARNING: Ignoring invalid distribution -yproj (c:\users\space_junk\appdata\local\programs\python\python310\lib\site-packages) WARNING: Ignoring invalid distribution -yproj…
nios
  • 151
  • 1
  • 1
  • 8
5
votes
1 answer

image not found with @rpath/libpoppler.71.dylib

Currently I've installed anaconda. I'm trying to call in my script the osgeo.ogr module to open a shapefile but I have the following error: ImportError: …
4
votes
1 answer

Segmentation Fault (segfault) when using OGR CreateField() in Python

Receiving a segfault when running this very short script in Ubuntu. from osgeo import ogr, osr shpfile = 'Census_County_TIGER00_IN.shp' def cust_field(field): '''cust_field(shpfile, field) creates a field definition, which, by calling…
mattdeboard
  • 700
  • 1
  • 7
  • 17
4
votes
2 answers

How to install gdal_merge to run with osgeo?

I recently installed OSGEO (http://download.osgeo.org/) which included python and gdal. I just realised however that there are many gdal libraries that were not included in this package for example gdal_merge. How can I install them into the osgeo…
Robert Buckley
  • 11,196
  • 6
  • 24
  • 25
3
votes
1 answer

How to terminate a process without os.kill() - OSGeo4W Python 2.5

I'm using the distribution of Python2.5.2 included in the OSGeo4W installer. This is a 32-bit distribution running on Windows 7. Although PyQt is not installed by default by the OSGeo4W installer, we have installed it to the OSGeo4W Python…
James
  • 1,485
  • 2
  • 16
  • 21
3
votes
1 answer

Solution to installing GDAL/PROJ/GEOS in windows 10 for Django/Geodjango

Whether you are finding it difficult to install the GDAL library or have been able to install it but do not know how to make it work in Django for your geoDjango app, I would like to share how I was able to successfully get it to work for me. I hope…
james morgan
  • 123
  • 1
  • 1
  • 9
3
votes
0 answers

ERROR 1: PROJ: proj_create_from_database: Cannot find proj.db when using Pyinstaller

I have found some issues opened about this error but I cannot find a solution that works for me. I am getting errors related to proj.db when running an executable file I have created using pyinstaller. I have Windows 10, Python 3.5 and I have in my…
Javier
  • 31
  • 1
  • 2
3
votes
1 answer

Unable to replicate gdal output

I have a set of GRIB files that are fliped (longitude spans from 0 to 365), and I am using gdal to first transform the data to GeoTIFF, and then warp the gridded data to a standard WGS84 longitude (-180 to 180). So far, I have been using a…
topcat
  • 586
  • 1
  • 6
  • 30
3
votes
0 answers

Geodjango: OSError: [WinError 127] The specified procedure could not be found

Error Exception in thread django-main-thread: Traceback (most recent call last): File "e:\python\installation files\lib\threading.py", line 926, in _bootstrap_inner self.run() File "e:\python\installation files\lib\threading.py", line 870,…
1
2 3
9 10