Dear Andrea, now it works!
Thank you and also dr. Furieri, who sent me an email just before yours. Best regards, Giovanna -----Messaggio originale----- Da: QGIS-Developer [mailto:[email protected]] Per conto di Andrea Giudiceandrea Inviato: mercoledì 1 gennaio 2020 02:37 A: [email protected] Oggetto: Re: [QGIS-Developer] no such function: InitSpatialMetadata Giovanna De Filippis wrote > cur.execute("SELECT InitSpatialMetaData(1);") > > Here I get the error "no such function: InitSpatialMetadata" Hi Giovanna, probably you need to load SpatiaLite as an extension module https://www.gaia-gis.it/fossil/libspatialite/wiki?name=mod_spatialite before the "SELECT InitSpatialMetaData(1);" statement: con.execute("SELECT load_extension('mod_spatialite')") Best regards. Andrea -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html _______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer _______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
