> To create the table spatial_ref_sys I downloaded
> the init_spatialite-2.4.sql file
> from
http://www.gaia-gis.it/spatialite-2.4.0/
>
>
> I noticed by executing the command
>
>
> spatialite geodjango.db < init_spatialite-2.4.sql
>
>
>
> that I am getting the error
>
>
> spatialite geodjango.db < init_spatialite-2.4.sql
> SpatiaLite version ..: 4.0.0 Supported Extensions:
> - 'VirtualShape' [direct Shapefile access]
> - 'VirtualDbf' [direct DBF access]
> - 'VirtualXL' [direct XLS access]
> - 'VirtualText' [direct CSV/TXT access]
> - 'VirtualNetwork' [Dijkstra shortest path]
> - 'RTree' [Spatial Index - R*Tree]
> - 'MbrCache' [Spatial Index - MBR cache]
> - 'VirtualSpatialIndex' [R*Tree metahandler]
> - 'VirtualFDO' [FDO-OGR interoperability]
> - 'SpatiaLite' [Spatial SQL - OGC]
> PROJ.4 version ......: Rel. 4.8.0, 6 March 2012
> GEOS version ........: 3.3.8-CAPI-1.7.8
> the SPATIAL_REF_SYS table already contains some row(s)
> InitSpatiaMetaData() error:"table spatial_ref_sys already exists"
> 0
> Error: near line 22: PRIMARY KEY must be unique
>