4

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

2
  • 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, 2012 at 3:24
  • Was your version compiled with GEOS support?
    – Sean
    Dec 31, 2012 at 4:55

1 Answer 1

2

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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