Quantcast
Channel: Question and Answer » gdal
Browsing all 397 articles
Browse latest View live

Issues installing GDAL with PostgreSQL

I’m trying to install gdal-1.11.0 on CentOS 6 machine. Following the instructions, this is my config ./configure --prefix /usr/local --with-fgdb=/usr/local/FileGDB_API...

View Article


GDAL C++ API: How to create PNG or JPEG from scratch

I’m new to GIS and GDAL. My question probably is very basic, but I couldn’t find answer. May be I don’t understand GDAL ideology. I need to create raster images from scratch, for example, JPEG or PNG....

View Article


Reprojection error

I have a lidar file (file.las) with the following spatial reference: Spatial Reference: PROJCS["NAD83 / UTM zone 11N", GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS...

View Article

Using gdal-java of OSGeo4W

I would like to use gdal_polygonize and gdalinfo in java. This site says: “Note that OSGeo4W includes a gdal-java package and a Java runtime making it fairly easily to build local Java applications...

View Article

Image may be NSFW.
Clik here to view.

How to create a mosaic in QGIS with cutline and feathering for Landsat-8 imagery

1 – I have two scenes Landsat-8 RGB 6/5/4 and I need to mosaic them: 2- This is my cutline in polygon format that will smooth the overlapping area: 3 – So, I need to create a mosaic with feathering...

View Article


Georeferencing using Liblas error

I am trying to write georeferencing information to a ‘.las’ file using liblas and c++. Here is my code: ofstream ofs; ofs.open("test.las", ios::out | ios::binary); liblas::Header header; liblas::Writer...

View Article

downsample raster map with average algorithm

I need to downsample map to new map with less resolution NOT for overview BUT to new map file with smaller size I need to do that with gdal Utils thanks!

View Article

Downsample raster average map with control on the average algorithm

I need to downsample raster average map with control on the average algorithm to 1/4 from original size

View Article


How to crop Geotiff image in C++ (GDAL or other possibilities)?

I am developing a code to process a geotiff image. But firsly I need to crop a geotiff image preserving its metadata (projection…) in C++. My idea it’s to provide the corners and the geotiff image to a...

View Article


Load the raster image which is in TIF format using QGIS API

I am quite new inthe field of GIS. I am interested in is to load the raster image which is in TIF format using QGIS API I have followed the steps given the in the follwing link to load shape file enter...

View Article

specifying extent in GDAL's WriteArray

Is it possible to specify the extent when creating an empty raster in GDAL? I looked everywhere, but can’t seem to find anything. The portion of my script where I write the raster would look something...

View Article

Using GDAL to get vertices of a multipolygon

I am successfully using GDAL to get the vertices of a polygon from a ShapeFile using .NET code. This link showed me how to do that:...

View Article

Georeferencing uneven/irregularly gridded rasters

I’m trying to take a set of NetCDFs and turn them into georeferenced datasets using GDAL. However, the only Geospatial data is a set of 2-D lat/lon arrays. The projection type is not lat/lon. THe...

View Article


specifying extent in GDAL's WriteArray

Is it possible to specify the extent when creating an empty raster in GDAL? I looked everywhere, but can’t seem to find anything. The portion of my script where I write the raster would look something...

View Article

Can I export overview with gdal?

How can I export overview for example 1/4 from the orginal raster map to a geotiff file using gdal?

View Article


Converting in batch into 8 unsigned bit format using GDAL?

Could you please correct my batch command? I had 100 img images which need to be converted into 8 unsigned bit format for further use in TIMESAT. mkdir test for %%f in (*.img) do gdal_translate -of...

View Article

gdal ReadAsArray returning NoneType

I’m trying to read in several rasters as array using gdal in a python script, but I keep getting NoneType returned and can’t figure out why. The process is this: 1. Use gdalbuildvrt...

View Article


How to convert SPOT NDVI hdf file to tiff file using gdal_translate command

I have SPOT NDVI images. I want to convert NDVI hdf to tiff. I have used the following code to get the information of hdf file: gdalinfo 20060501_NDVI.HDF I get the following output Driver:...

View Article

ogr2ogr unable to open KML datasource

I downloaded some Wikimapia data using the wikimapia.api. Everything is A-OK since I’ve opened this in Google Earth and everything is in place. However, I need to turn it into a shapefile, or get the...

View Article

QGIS Polygonize (GDAL) problem – Null value in attribute

Is it possible to use Polygonize in QGIS (GDAL) so that a line shapefile is converted to a polygon shapefile with an attribute(s) in the line file carried into the polygon file. I am trying to build an...

View Article
Browsing all 397 articles
Browse latest View live