[gdal-dev] GDAL query creation options?

2015-06-11 Thread jramm
Is there a way to programatically query what dataset creation/layer creation options are available for a driver?I'd like to be able to do something like: driver-listDCO(*options) -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GDAL-query-creation-options-tp5210356.html

Re: [gdal-dev] GDAL query creation options?

2015-06-11 Thread Even Rouault
Selon jramm jamessr...@gmail.com: Is there a way to programatically query what dataset creation/layer creation options are available for a driver?I'd like to be able to do something like: driver-listDCO(*options) driver-GetMetadataItem(GDAL_DMD_CREATIONOPTIONLIST) for raster drivers, and

[gdal-dev] Overlay shapefile onto Geotiff image

2015-06-11 Thread Graeme B. Bell
Hi, I have been working on this issue for quite a while. I currently have a GeoTiff image and a shapefile. I would like to overlay the shapefile on the Geotiff, is this possible with Gdal? I looked into gdal_rasterize but I just don't know how to incorporate it with what I need. A code

[gdal-dev] Creating a transparent GeoTIFF, writing shape data over it, reading GeoTIFF writing as PNG with transparency.

2015-06-11 Thread Mark Johnson
I have attempted to answer Questions 1 and 3 here: https://github.com/geopaparazzi/Spatialite-Tasks-with-Sql-Scripts/wiki/Project-1811-gdal_question I will start on Question 2 now, since I have not used gdal_rasterize that often. A quick answer is however, 1) gdal_translate -of PNG -a_nodata

Re: [gdal-dev] GDALWarp API and paletted images

2015-06-11 Thread Thomas Sevaldrud
Great, thanks! I tried this, but got only a red image as result, so I guess only the first channel was used. This is the relevant code, where _ds is the input paletted data set vrtDS = vrtDriver-Create(, origW, origH, 3, GDT_Byte, NULL); double geoTransform[6];

[gdal-dev] PostgreSQL drivers

2015-06-11 Thread Robert Inder
I have PostgreSQL 9.4 running on a 64-bit Centos 6.4 machine, I have then used yum to install gdal.x86_641.9.2-6.rhel6 gdal-devel.x86_64 1.9.2-6.rhel6 gdal-java.x86_64 1.9.2-6.rhel6 gdal-libs.x86_64 1.9.2-6.rhel6 all from the pgdg94 repository. And

[gdal-dev] Creating a transparent GeoTIFF, writing shape data over it, reading GeoTIFF writing as PNG with transparency.

2015-06-11 Thread Mark Johnson
Question 2 is now finished: https://github.com/geopaparazzi/Spatialite-Tasks-with-Sql-Scripts/wiki/Project-1811-gdal_question-02 Short version: gdal_rasterize -tr 0.475211759942328 0.475212956422887 -te 24800 20700 25800 21300 -ot Byte -init 192 -a_nodata 192 -burn 0 -burn 173 -burn 83 -sql

[gdal-dev] gdalwarp on a .vrt: Using internal nodata values (eg 0) for image (?)

2015-06-11 Thread Ari Simmons
I am experimenting with using 'gdalwarp' on a .vrt (first time), but I'm not sure what I'm doing wrong. I've been running this: gdalwarp -s_srs EPSG:4326 -t_srs EPSG:3857 -r bilinear -of VRT merged.vrt srtm_merged_3857.vrt and it processes fast (far far *too fast* for this global file) and

Re: [gdal-dev] gdalwarp on a .vrt: Using internal nodata values (eg 0) for image (?)

2015-06-11 Thread Ari Simmons
One notably huge difference is that there is a huge jump in pixel size (from 0.0008323 to 205.686440189378940)... ah, duh. Unit change. On Thu, Jun 11, 2015 at 2:26 PM, Ari Simmons ari.ucb.f...@gmail.com wrote: I am experimenting with using 'gdalwarp' on a .vrt (first time), but I'm

Re: [gdal-dev] gdalwarp on a .vrt: Using internal nodata values (eg 0) for image (?)

2015-06-11 Thread Eli Adam
On Thu, Jun 11, 2015 at 2:38 PM, Ari Simmons ari.ucb.f...@gmail.com wrote: One notably huge difference is that there is a huge jump in pixel size (from 0.0008323 to 205.686440189378940)... ah, duh. Unit change. On Thu, Jun 11, 2015 at 2:26 PM, Ari Simmons ari.ucb.f...@gmail.com

[gdal-dev] is there a vector testfile with Integer64 values?

2015-06-11 Thread Roger Bivand
Hi, In adapting rgdal for GDAL 2.0.0, it would be useful to know that clamping, etc, and workarounds for integers in Integer64 fields that exceed INT_MAX or INT_MIN actually work. Which of the autotest vector files include Integer64 fields that test reading with Integer or String? The files

[gdal-dev] gdal_rasterize does not burn polygon attributes

2015-06-11 Thread jramm
I'm running gdal_rasterize, trying to make it create a new tif from polygons, using an attribute field as the burn value. Here is my command: gdal_rasterize -tr 5 5 -a SOP -l test -a_nodata 0 test.shp test.tif I end up with an image that is all 0's. The shapefile is correct and can be read by

Re: [gdal-dev] GDALWarp API and paletted images

2015-06-11 Thread Even Rouault
Selon Thomas Sevaldrud tho...@silentwings.no: Great, thanks! I tried this, but got only a red image as result, so I guess only the first channel was used. This is the relevant code, where _ds is the input paletted data set vrtDS = vrtDriver-Create(, origW, origH, 3, GDT_Byte, NULL);