Re: [gdal-dev] Wrapping with SWIG

2013-05-16 Thread Hank Finley
Hi Ari, thanks for your time, yes I have tried the SWIG list a few times, however replies are 'far and few between', so I am stretching out to new sources of help. It is not what you would call an active list. At the moment I am just focusing on one header file that has 8 struct's that are coming

Re: [gdal-dev] Wrapping with SWIG

2013-05-16 Thread Ari Jolma
On 05/17/2013 03:43 AM, Hank Finley wrote: Hi All, I'm currently trying to create a wrapper for a C API with SWIG for use in Java. The API is for an open source spatial database called Spatialite. This is causing a few headaches and I need some help. My first question is did the SWIG wrapper

[gdal-dev] Wrapping with SWIG

2013-05-16 Thread Hank Finley
Hi All, I'm currently trying to create a wrapper for a C API with SWIG for use in Java. The API is for an open source spatial database called Spatialite. This is causing a few headaches and I need some help. My first question is did the SWIG wrappers for GDAL get created in-house or was it a pai

[gdal-dev] How to set GDAL/cs2cs/proj to use NTv2 grid shift file when using EPSG codes?

2013-05-16 Thread Thomas Campagne
Hi, I am using the GDAL API for Python for a script that takes only EPSG codes for inputs to specify source and target coordinate systems. While the cs2cs command seems to handle quite well transformation between NAD27 (EPSG:4267) and NAD83 (EPSG:4326) coordinates in North America, I would like

Re: [gdal-dev] What is the best way to test if a CPLString is not empty?

2013-05-16 Thread Jorge Arévalo
That sounds perfect. Thanks Frank! -- Jorge Arevalo Freelance developer http://www.krop.com/jorgearevalo http://about.me/jorgeas80 Enviado con Sparrow (http://www.sparrowmailapp.com/?sig) El jueves 16 de mayo de 2013 a las 20:07, Frank Warmerdam escribió: > > > Jorge, > > I don't be

Re: [gdal-dev] What is the best way to test if a CPLString is not empty?

2013-05-16 Thread Frank Warmerdam
Jorge, I don't believe oString.c_str() will ever be NULL. You can use the std::string empty() method to test if a string is empty (zero length). http://www.cplusplus.com/reference/string/string/empty/ CPLStrings have no equivelient to a NULL distinct from being a zero length string. Best reg

[gdal-dev] What is the best way to test if a CPLString is not empty?

2013-05-16 Thread Jorge Arévalo
If I define a CPLString this way: CPLString osString; And I want to check if osString is not empty, what would be the best way? My bet: if (osString.c_str() == NULL) But I find it a little rusty... Is there any other better way? Many thanks in advance -- Jorge Arevalo Freelance developer

Re: [gdal-dev] Google Maps Engine OGR Driver

2013-05-16 Thread Travis Kirstine
We would be interested in testing, and have access to a GME account. On 15 May 2013 21:12, Frank Warmerdam wrote: > Folks, > > I'm starting work on an OGR driver for Google Maps Engine (GME), focused > on it's use as a feature store. This should be somewhat similar to the > Fusion Tables drive

Re: [gdal-dev] [mapserver-dev] Wrong .prj file with SHAPEZIP Outputformat

2013-05-16 Thread Thomas Gratier
Hello, Just a guess: the Mapserver projection file comes maybe from GEOS and GDAL retrieve the wrong proj (deduce from the mapfile) after (although with your analysis it doesn't seem so) >> http://mapserver.org/faq.html#where-do-i-find-my-epsg-code Regards Thomas Gratier 2013/5/16 Guillaume Su

[gdal-dev] HDF4 and 1.10

2013-05-16 Thread Jose Gomez-Dans
Hi, I read with interest that gdal 1.10 has the following new addition: * Add ability to increase the maximum number of opened HDF4 files (from ). Does that mean that I can compile GDAL against a version of the HDF library that has MAX_FILE set

[gdal-dev] Wrong .prj file with SHAPEZIP Outputformat

2013-05-16 Thread Guillaume Sueur
Hi list(s), Sorry for cross-posting gdal and mapserver dev lists, but I don't know exactly where my problem comes from. When using a SHAPEZIP OUTPUTFORMAT with MapServer, I retrieve a prj file which is not exactly the correct projection definition (for EPSG:3946) : PROJCS["Lambert_Conformal