andreacremaschi / SpatialDBKit

An Objective-C lightweight spatial RDBMS (based on SQLite/SpatiaLite)
Other
73 stars 67 forks source link

ShortestLine / ST_ShortestLine not valid SQL #16

Closed michealc closed 10 years ago

michealc commented 10 years ago

I have managed to compile the sample, download an extract of OSM, converted it using ogr2ogr into sqlite, and I can run queries using indexes. I am trying to find the closet road (line) to current location (point) but I need to use the ClosestLine function. SQL Error complains that function does not exist. The link to spatialite commands is broken so not sure how to debug further. Here is a log on startup 2014-08-15 18:40:41.194 SpatialDBKitIOSTest[10307:60b] sqlite version: 3.8.5 2014-08-15 18:40:41.204 SpatialDBKitIOSTest[10307:60b] spatialite version: 8561968 2014-08-15 18:40:41.205 SpatialDBKitIOSTest[10307:60b] Spatialite initialization SpatiaLite version ..: 4.1.1 Supported Extensions:

andreacremaschi commented 10 years ago

Hi, here is a link to the project's homepage: https://www.gaia-gis.it/fossil/libspatialite/index Maybe you would use ClosestPoint with spatialite