Quantcast
Channel: Question and Answer » gdal
Browsing latest articles
Browse All 397 View Live

Python GDAL open dataset in PostGIS with quotations

Error trying to use gdal to open a dataset in PostGIS with the following code: ds = gdal.Open("PG: dbname=nyc host=localhost user=postgres password=mypassword port=5432 mode=2 schema=public column=rast...

View Article


GDAL 2.0.1/QGIS 2.14.0 on OSX won't open MODIS HDF?

I’m on OSX 10.9.4, using GDAL 2.0.1 from the terminal. I want to mosaic MCD12Q1 HDFs together with GDAL but my build can’t even read them. The file:...

View Article


How to clip MrSID Files in R and export to GeoTiff?

I would like to use R to: Read in an MrSID raster (.sid format) Clip the extent using a shapefile Save the new clipped raster as a geotiff I am fine with steps #2 and 3, but I can’t find any...

View Article

Image may be NSFW.
Clik here to view.

Georeferencing files that are orthogonal to a point on a sphere

I have about 65000 photos, each of them a square where an inscribed circle is radius 1 degree. Each of these photos has an associated latitude and longitude of the center. I’m trying to figure out how...

View Article

Combining data in two projections?

The PAMAP dataset comes divided between two different projections: Pennsylvania North State Plane and Pennsylvania South State Plane. I’d like a great big DEM of the whole state of Pennsylvania....

View Article


How can I use gdal_retile on RGBI (4 band) GeoTIFFs while preserving band...

I want to retile large GeoTIFFs with 4 bands: R = Red, G = Green, B = Blue, NIR = Near Infra Read; in short “RGBI” if I understand correctly. gdalinfo on the input file prints as band information: Band...

View Article

Reverse colour-ramped DEM to its original elevation value?

A have a GeoTIFF LIDAR image which display DEM in its color-ramp version (color relief) from blue (minimum value) to red (maximum value) and green (in between). I don’t have the original elevation...

View Article

Is there a way to use the GDAL C++ API to find areas of overlap between two...

I have a bunch of SAR images (about 1 GB each) on which i need to do some image processing. Each image is georeferenced and there is significant overlap between each pair of images in the set ie. one...

View Article


Image may be NSFW.
Clik here to view.

How can I blend DEM rasters with GDAL?

I have several DEM rasters in different projections and at different resolutions. The rasters are not rectangular, but they have appropriate NoData values. They overlap enough that I should be able to...

View Article


How to create dataset in python with creation options like in ogr2ogr with...

In ogr2ogr there is dsco option (data source creation option). e.g. ogr2ogr -f DXF -dsco trailer=trailer_buildings.dxf -dsco header=header_buildings.dxf out.dxf test_buldings_shp.shp. It works well,...

View Article
Browsing latest articles
Browse All 397 View Live