<div dir="ltr">>> <span style="font-size:12.8px">My second implementation uses Spatialite DB but I found it surprisingly</span><br style="font-size:12.8px"><span style="font-size:12.8px">slower than shapefile and the file created is very big (more than 5 MB)</span><br style="font-size:12.8px"><span style="font-size:12.8px">also for empty tables. Requirements number 2 and 3 are successfully</span><br style="font-size:12.8px"><span style="font-size:12.8px">satisfied.</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">One reason a default spatialite Database is so big, is because 'spatial_ref_sys' is filled with all know projections (At present 4924 entries).</span></div><div><span style="font-size:12.8px">- this is done with 'SELECT InitSpatialMetaData()'</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">You can can create a </span><span style="font-size:12.8px">'spatial_ref_sys' that is smaller:</span></div><div><span style="font-size:12.8px">-  'SELECT InitSpatialMetaData('WGS84')'</span></div><div><span style="font-size:12.8px">-> would create a </span><span style="font-size:12.8px">'spatial_ref_sys'</span><span style="font-size:12.8px">  with only one entry (Wsg84)</span></div><div><span style="font-size:12.8px">-  'SELECT InitSpatialMetaData('NONE')'</span><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">-> would create a </span><span style="font-size:12.8px">'spatial_ref_sys'</span><span style="font-size:12.8px"> that is empty</span><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">You <b>must</b> fill </span><span style="font-size:12.8px">'spatial_ref_sys' with entries for:</span></div><div><span style="font-size:12.8px">- the geometries that you are <b>using/filling</b> in the Database</span></div><div><span style="font-size:12.8px">- or where you wish to <b>transform</b> to another projection (i.e. ST_Transform(geometry,3068)</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">With "SELECT InsertEpsgSrid(3068)"</span></div><div><span style="font-size:12.8px">- you would add an 'EPSG:3068' entry to </span><span style="font-size:12.8px">'spatial_ref_sys'</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><a href="http://www.gaia-gis.it/gaia-sins/spatialite-sql-latest.html#p16">http://www.gaia-gis.it/gaia-sins/spatialite-sql-latest.html#p16</a></span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Mark Johnson, Berlin Germany</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div></div>