Skip to content

Instantly share code, notes, and snippets.

def get_group_file(self, srs, name, path):
import ogr, os
drv = ogr.GetDriverByName( "SQLite" )
options = ['SPATIALITE=YES', 'INIT_WITH_EPSG=YES','OGR_SQLITE_SYNCHRONOUS=OFF']
if os.path.exists(path):
os.remove(path)
ds = drv.CreateDataSource(path, options=options)