0

I downloaded three windows binary files (executable, library and gui) and put them in the same folder. When I execute this spatialite command in command line prompt:

INSERT INTO Highways_Buffer (PK_UID, Name, Geometry) 
SELECT NULL, PK_UID, CastToMultiPolygon(Buffer(Geometry, 300))
FROM HighWays WHERE PK_UID = 1;

It gives me this err:

SQL error: no such function: CastToMultiPolygon

How can I enable cast functions?

1

Answers from the comments that solved the problem (credits to @user30184 & @zhangjinzhou) :

You are using version 2.3 and the current version is 4.3. Update your version by going to this website : https://www.gaia-gis.it/fossil/libspatialite/index

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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