Re: [gdal-dev] GDALColorTable - can't delete it

2013-10-30 Thread Even Rouault
Le mercredi 30 octobre 2013 16:23:34, David Strip a écrit : > I'm having trouble with the GDALColorTable in C++ on WIn7 using Visual > Studio 2010 > With a function as simple as > void foo() > { > GDALColorTable * ct = new GDALColorTable; > delete ct; > } > > I've als

Re: [gdal-dev] gdal get geolocation array in HDF5 dataset

2013-10-30 Thread Ivan Lucena
Hi Laura, In that particular product the geolocation is not a metadata item but a field (two images with latitude values in one image and longitude values in the other). "The swath structure consists of Data Fields and Geolocation Fields, but we start with StructMetadata.0, since this holds in

[gdal-dev] GDALColorTable - can't delete it

2013-10-30 Thread David Strip
I'm having trouble with the GDALColorTable in C++ on WIn7 using Visual Studio 2010 With a function as simple as void foo() { GDALColorTable * ct = new GDALColorTable; delete ct; } I've also tried void foo() { GDALColorTable ct; } and void foo

Re: [gdal-dev] gdal get geolocation array in HDF5 dataset

2013-10-30 Thread laura0
Unfortunately it does not. GDALGetMetadata( dataset, "GEOLOCATION" ) return NULL -- View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-get-geolocation-array-in-HDF5-dataset-tp5086505p5086612.html Sent from the GDAL - Dev mailing list archive at Nabble.com. _

Re: [gdal-dev] Colors and KML output

2013-10-30 Thread Jukka Rahkonen
Tim Keitt utexas.edu> writes: > > > Brilliant. That works. The problem was that I was using the -sql switch to query from postgis directly into KML. Apparently that does not work at lest with my query string. Dumping with psql2shape and then ogr2ogr to convert to KML did the trick. Thanks. > >

Re: [gdal-dev] gdal get geolocation array in HDF5 dataset

2013-10-30 Thread Etienne Tourigny
geolocation is stored in the GEOLOCATION metadata domain, so this should probably work: GDALGetMetadata( dataset, "GEOLOCATION" ) see http://trac.osgeo.org/gdal/wiki/rfc4_geolocate On Wed, Oct 30, 2013 at 6:38 AM, laura0 wrote: > Hi all, > I would like to know I can I read with gdal the geolo

Re: [gdal-dev] Colors and KML output

2013-10-30 Thread Tim Keitt
Brilliant. That works. The problem was that I was using the -sql switch to query from postgis directly into KML. Apparently that does not work at lest with my query string. Dumping with psql2shape and then ogr2ogr to convert to KML did the trick. Thanks. Now to figure out how to switch the drawing

Re: [gdal-dev] Motion: Adopt RFC 42 : OGR Layer laundered field lookup

2013-10-30 Thread Jürgen E . Fischer
Hi, On Wed, 23. Oct 2013 at 21:16:22 +0200, Jürgen E. Fischer wrote: > I propose a motion to formally adopt RFC 42 : OGR Layer laundered field > lookup I declare this motion passed with support from Daniel, Even, Frank, Tamas, Jukka and myself. Jürgen -- Jürgen E. Fischer norBIT GmbH

Re: [gdal-dev] Trying to get a WMS image with GDAL

2013-10-30 Thread Adri CS
Hi, I tried just to register the driver but got some nasty compilation errors: #include "gdal.h" #include "gdal_priv.h" #include "cpl_conv.h" #include "wms/wmsdriver.h" #include "wms/wmsmetadataset.h" int main() { GDALRegister_WMS(); return 0; } The errors: *..\..\..\..\gdal-1.9.2\f

Re: [gdal-dev] Using a MapQuest TMS via GDAL

2013-10-30 Thread Jukka Rahkonen
Chris Hanson alphapixel.com> writes: > > > Followup with one additional question. > MapQuest apparently now requires an API key be specified: > > http://developer.mapquest.com/web/products/open/forums/-/message_boards/view_message/459733 > > > I didn't at a glance see any way to specify this

[gdal-dev] gdal get geolocation array in HDF5 dataset

2013-10-30 Thread laura0
Hi all, I would like to know I can I read with gdal the geolocation array stored inside an O3MSAF HDF5 data. With GDALGetMetadata( dataset, "" ); I get the list of metadata (es. Fill Value, Title, Unit but not the array with the latitude and longitude values), with GDALGetMetadata( dataset, "SUBDAT