Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm a newbie to Spatialite so forgive me if the answer to my question is obvious...(I tried looking online but couldn't find the answer to this question). I am trying to use the function ST_touches in Spatialite Gui but it says it does not recognize that function. Is there anything I need to install in order to use this function? And how? Thanks so much, Ana

share|improve this question
    
Do you have a very old version of spatialite? Can you try with just "Touches" (i.e. leave off the "ST_" part)? If that doesn't work, can you show exactly how you are using the function? –  BradHards Dec 31 '12 at 3:24
    
Was your version compiled with GEOS support? –  Sean Dec 31 '12 at 4:55

1 Answer 1

If you have ST_Touches function in your spatialite-gui the following query will return "1".

SELECT ST_Touches(GeomFromText("POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))"), GeomFromText("POLYGON((0 1, 0 2, 1 2, 2 1, 0 1))"));

If the error message tells that function is missing, believe it. Spatialite-gui 1.7.1 Windows build from the Spatialite site for sure has the function.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.