<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>On 22.05.2013, at 10:20, Even Rouault wrote:</div><div><div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Le vendredi 17 mai 2013 09:38:31, Hank Finley a écrit :<br><blockquote type="cite">Hi Tamas,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">thanks for the advice, I would still like to continue with my goal, down<br></blockquote><blockquote type="cite">the track I'm going to be using this to fuel my OpenGL graphical map. The<br></blockquote><blockquote type="cite">SQL API level was far too slow, so I am going to the C API level.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Is it possible to contact Even somehow?<br></blockquote><br>Done now ;-)<br><br>I'm afraid that your goal - as far as I've understood it - is not achievable. <br>You will have to use the SQLite API at some point since Spatialite is "no <br>more" than a set of C functions (and triggers) that can do <br>serialization/deserialization of geometry blobs, spatial operations, etc... <br>But you have to access the SQLite database through the SQL SQLite API.<br></div></blockquote></div><br></div><div>It is my understanding also that even if Spatialite has C API, then it is more for internal things, and you area supposed to use SQL API instead. It might be possible to generate wrapper for C functions and datatypes also, but it would be pain with not much gain. Swig is no good for any more complex datatypes, you'd need to manually redefine them. I would suggest to use Java stuff instead, like JTS, and SQL wrappers for gaiageo functions.</div><div><br></div><div>This reminds me that I patched (more like hotfixed) GDAL Java Swig wrapper to get it to run on Android. I found one snag, now reported with the fix as <a href="http://trac.osgeo.org/gdal/ticket/5107">http://trac.osgeo.org/gdal/ticket/5107</a>, it seems to be unfixed in the latest version. Review/comments are welcome, as this is my first and only Swig adventure.</div><div><br></div><div>Jaak</div><div><br></div></body></html>