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.

120 questions
38
votes
48 answers

Survey of GIS Programming

How many programmers on this site work with GIS? What middleware do you work with? ESRI? Mapguide? Google? What kind of projects do you work on? Are you focused on web work, making desktop applications or intranet projects? What kind of industries…
Dan Monego
  • 7,638
  • 6
  • 31
  • 64
15
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,328
  • 2
  • 20
  • 39
11
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 崔鹏飞
  • 7,124
  • 4
  • 38
  • 79
6
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
  • 345
  • 2
  • 13
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,127
  • 18
  • 36
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
  • 680
  • 1
  • 6
  • 17
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
  • 680
  • 1
  • 6
  • 17
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,275
  • 2
  • 16
  • 20
3
votes
0 answers

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
  • 536
  • 7
  • 20
3
votes
0 answers

Incompatible library version when importing GDAL on macOS

I am trying to install import a gdal library. from osgeo import ogr but I get the following error ImportError: dlopen(/anaconda3/lib/python3.6/site-packages/osgeo/_gdal.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libtiff.5.dylib …
emax
  • 4,629
  • 6
  • 41
  • 86
3
votes
1 answer

Error on libcurl.dll when using GDAL of OSGeo4W in Django

I'm trying to install GeoDjango in my Django project and got weird errors with GDAL. Following Django documentation, I installed GDAL, GEOS, PROJ using OSGeo4W64, for specific, these are packages I selected to install on OSGeo4W64 setup: gdal…
phuctm97
  • 106
  • 1
  • 8
3
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
  • 9,076
  • 6
  • 22
  • 24
3
votes
1 answer

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 georeferenced raster in a format suitable for use in a…
EricVonB
  • 226
  • 3
  • 10
3
votes
0 answers

can't get pyinstaller hooks to work with gdal

I have a python script which I would like to package with pyinstaller. It uses osgeo.ogr and osgeo.osr. Using the basic build command (python pyinstaller.py --onefile c:\path\to\my\file.py) it creates the spec file and the exe. When I run the exe, I…
rudivonstaden
  • 6,405
  • 4
  • 21
  • 36
1
2 3 4 5 6 7 8