Hi John,
both spatialite_tool and .loadshp (and the same is for spatialite_gui)
absolutely require to create a new table for each SHP being imported.
this can be easily explained: checking if a table of the given name
already exist isn't obviously enough; in this case we'll have to check
if all column definitions correctly match, if the geometry column
strictly
have identical type, dimensions and SRID and so on.
in other worlds: supporting the capability to append further features
into an already existing table will add a lot of complexity.
Anyway you can easily use Spatialite in the most painless way so
to import many different Shapefiles sharing the same schema into
a single DB table:
a) manually create the DB target table using CREATE TABLE and
AddGeometryColumn
b) connect a single Shapefile at each time as a VirtualShape
c) then copy all features from the Shapefile into the DB Table;
you simply have to use an SQL statement like this one:
INSERT INTO dbtable (col1, col2, col3, ...., geometry)
SELECT col1, col2, col3, ...., geometry
FROM virtual_shp;
d) drop the VirtualShape
e) repeat steps b), c) and d) until you've imported any SHP;
at the end of the process you'll have a single DB table
corresponding to all re-aggregated Shapefiles.
hint: if you actually have lots of SHP to be imported writing
a simple SQL script will probably help
bye Sandro
--
Il messaggio e' stato analizzato alla ricerca di virus o
contenuti pericolosi da MailScanner, ed e'
risultato non infetto.