Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to include the GDAL extension in my project (to read all types of raster files)

See original GitHub issue

I have created a console application project with DotSpatial examples, taken from the documentation page:

A strong limitation is that, with the “out of the box” utilities provided by the NuGet packages, I could only use .bgd raster files (extensive explanation about this issue here).

From the examples: “Be sure to install the GDAL extension if you want to view different types of files”. So I have been trying to integrate the GDAL extensions so I can load other types of raster files, with no success so far…

Things I’ve tried:

  1. Tutorial “Accessing GDAL data provider in DotSpatial” (from the codeplex page)

  2. Blog post: “How to support extensions in dotspatial”

  3. Using the project DotSpatial.Data.Rasters.GdalExtension from your project and adding it as a project in my solution (I made it compile, which wasn’t easy, but it wouldn’t load new raster extensions either)

Are there any hints that could let me succeed in reading those other kinds of raster files in my c# project?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:23 (12 by maintainers)

github_iconTop GitHub Comments

MonamiMarkcommented, Jan 31, 2017

Hi, I have the same problem. Tried tutorial for windows forms application and have not succeed in including GDAL extension. Have anybody found the solution?

VectorZitacommented, Mar 13, 2020

For future reference, this answer to a relevant question might be of help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

List of GDAL raster file extensions
To get a list of format names and common extensions use: from osgeo import gdal for i in range(gdal.GetDriverCount()): drv = gdal.
Read more >
gdalwarp — GDAL documentation
The gdalwarp utility is an image mosaicing, reprojection and warping utility. The program can reproject to any supported projection, and can also apply...
Read more >
Reading raster files with GDAL — GeoPython
With GDAL, you can read and write several different raster formats in Python. ... Most common file formats include for example TIFF and...
Read more >
vsimem, /vsizip, /vsitar, /vsicurl
To view a gzipped file as uncompressed by GDAL, you must use the /vsigzip/path/to/the/file. gz syntax, where path/to/the/file. gz is relative or absolute....
Read more >
Raster file formats—ArcGIS Pro | Documentation
Format Description Read / Write IDRISI Raster Format (RST) File format native to IDRISI . Read‑only (Write—developer only) IDRISI Raster Format (RST) File format native...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found