WarningThis document is obsolete and contains outdated information. It's still available only to preserve full historical record.The updated documentation supporting recent versions of SpatiaLite is now published at the following URLs: Tutorials: https://www.gaia-gis.it/fossil/libspatialite/wiki?name=misc-docs Cookbook: http://www.gaia-gis.it/gaia-sins/spatialite-cookbook/index.html |
PK_UID | Geometry | Name | Peoples | LocalCouncil | County | Region |
---|---|---|---|---|---|---|
1 | Brozolo | 435 | 1 | 0 | 0 | |
2 | Campiglione-Fenile | 1284 | 1 | 0 | 0 | |
3 | Canischio | 274 | 1 | 0 | 0 | |
4 | Cavagnolo | 2281 | 1 | 0 | 0 | |
5 | Magliano Alfieri | 1674 | 1 | 0 | 0 |
Town | Population |
---|---|
Abano Terme | 18206 |
Abbadia Cerreto | 276 |
Abbadia Lariana | 3151 |
Abbadia San Salvatore | 6832 |
Abbasanta | 2815 |
TownName | Population |
---|---|
Roma | 2546804 |
Milano | 1256211 |
Napoli | 1004500 |
Torino | 865263 |
Palermo | 686722 |
Genova | 610307 |
Bologna | 371217 |
Firenze | 356118 |
# Towns | Smaller | Bigger | Total peoples | mean peoples for town |
---|---|---|---|---|
8101 | 33 | 2546804 | 57006147 | 7036 |
Number | AbsoluteValue |
---|---|
-2 | 2 |
Name | Peoples | HEX(Geometry) |
---|---|---|
Roma | 2546804 | 0001787F00003D0AD723BF11284133333313C1B851413D0AD723BF11284133333313C1B851417C010000003D0AD723BF11284133333313C1B85141FE |
Milano | 1256211 | 0001787F00005C8FC2F5116C1F413D0AD7A3893453415C8FC2F5116C1F413D0AD7A3893453417C010000005C8FC2F5116C1F413D0AD7A389345341FE |
Napoli | 1004500 | 0001787F00003333333358C42C4133333323FA4C51413333333358C42C4133333323FA4C51417C010000003333333358C42C4133333323FA4C5141FE |
Torino | 865263 | 0001787F000052B81E85862418419A999939C60A534152B81E85862418419A999939C60A53417C0100000052B81E85862418419A999939C60A5341FE |
Palermo | 686722 | 0001787F0000713D0A5766DC2A4152B81E05F41F5041713D0A5766DC2A4152B81E05F41F50417C01000000713D0A5766DC2A4152B81E05F41F5041FE |
Genova | 610307 | 0001787F0000295C8FC24A0D1E4148E17A6462C35241295C8FC24A0D1E4148E17A6462C352417C01000000295C8FC24A0D1E4148E17A6462C35241FE |
Bologna | 371217 | 0001787F00005C8FC2756EF124419A999949DFCD52415C8FC2756EF124419A999949DFCD52417C010000005C8FC2756EF124419A999949DFCD5241FE |
Firenze | 356118 | 0001787F00000AD7A3F055CC244114AE4701207F52410AD7A3F055CC244114AE4701207F52417C010000000AD7A3F055CC244114AE4701207F5241FE |
If you are using the spatialite.exe executable, you don't need to load any extension, because SpatiaLite is automatically included |
Name | Peoples | AsText(Geometry) |
---|---|---|
Roma | 2546804 | POINT(788703.57 4645636.3) |
Milano | 1256211 | POINT(514820.49 5034534.56) |
Napoli | 1004500 | POINT(942636.1 4535272.55) |
Torino | 865263 | POINT(395553.63 4991768.9) |
Palermo | 686722 | POINT(880179.17 4227024.08) |
Genova | 610307 | POINT(492370.69 4918665.57) |
Bologna | 371217 | POINT(686263.23 4929405.15) |
Firenze | 356118 | POINT(681514.97 4848768.02) |
Name | X(Geometry) | Y(Geometry) |
---|---|---|
Roma | 788703.57 | 4645636.3 |
Milano | 514820.49 | 5034534.56 |
Napoli | 942636.1 | 4535272.55 |
Torino | 395553.63 | 4991768.9 |
Palermo | 880179.17 | 4227024.08 |
Genova | 492370.69 | 4918665.57 |
Bologna | 686263.23 | 4929405.15 |
Firenze | 681514.97 | 4848768.02 |
hex(GeomFromText('POINT(10 20)')) |
---|
0001FFFFFFFF00000000000024400000000000003440000000000000244000000000000034407C0100000000000000000024400000000000003440FE |
hex(AsBinary(GeomFromText('POINT(10 20)'))) |
---|
010100000000000000000024400000000000003440 |
AsText(GeomFromWKB(X'010100000000000000000024400000000000003440')) |
---|
POINT(10 20) |
PK_UID | AsText(Geometry) |
---|---|
883 | LINESTRING(689001.702718 4798988.808442, 689027.602471 4798996.686619, 689029.54214 4798989.585948, 689029.54214 4798989.585948) |
PK_UID | NumPoints(Geometry) | GLength(Geometry) | Dimension(Geometry) | GeometryType(Geometry) |
---|---|---|---|---|
1062 | 6758 | 94997.8721344156 | 1 | LINESTRING |
1063 | 5120 | 75453.1247726708 | 1 | LINESTRING |
273 | 4325 | 69052.1024677445 | 1 | LINESTRING |
343 | 3109 | 46831.3235596409 | 1 | LINESTRING |
1061 | 2755 | 60165.9776174597 | 1 | LINESTRING |
PK_UID | NumPoints(Geometry) | AsText(StartPoint( Geometry)) | AsText(EndPoint( Geometry)) |
X(PointN( Geometry, 2)) | Y(PointN( Geometry, 2)) |
---|---|---|---|---|---|
1062 | 6758 | POINT(632090.156998 4835616.546126) | POINT(663300.737479 4795631.803342) | 632086.009664884 | 4835625.74875358 |
1063 | 5120 | POINT(663292.190654 4795627.307765) | POINT(632085.166691 4835620.171885) | 663295.992495453 | 4795626.48941986 |
273 | 4325 | POINT(668247.593086 4862272.349444) | POINT(671618.13304 4854179.734158) | 668232.529284954 | 4862273.56196672 |
343 | 3109 | POINT(671613.424233 4854121.472532) | POINT(654264.259259 4855357.41189) | 671610.523614303 | 4854129.55436818 |
1061 | 2755 | POINT(619601.675367 4855174.599496) | POINT(668724.797158 4862015.941886) | 619593.711539685 | 4855174.74398836 |
name | AsText(Geometry) |
---|---|
EMILIA-ROMAGNA | POLYGON((761808.155309 4966649.458816, 762432.549628 4966393.94736, 764168.27812 4966137.407299, 763486.212544 4966081.379442, 762462.485356 4966252.975485, 761808.155309 4966649.458816)) |
PK_UID | Area(Geometry) | AsText(Centroid(Geometry)) | Dimension(Geometry) | GeometryType(Geometry) |
---|---|---|---|---|
101 | 25779695636.9131 | POINT(955762.441021 4173082.511675) | 2 | POLYGON |
105 | 25391974998.079 | POINT(414613.865386 4990738.194216) | 2 | POLYGON |
106 | 24069782849.5217 | POINT(560092.709693 5052167.502959) | 2 | POLYGON |
74 | 23962322618.2869 | POINT(502694.575482 4437256.791656) | 2 | POLYGON |
53 | 22657959720.0999 | POINT(672979.667565 4814145.593235) | 2 | POLYGON |
PK_UID | NumInteriorRings(Geometry) | NumPoints(ExteriorRing(Geometry)) | NumPoints(InteriorRingN(Geometry, 1)) |
---|---|---|---|
60 | 3 | 912 | 17 |
55 | 1 | 602 | 9 |
1 | 0 | 6 | NULL |
2 | 0 | 12 | NULL |
3 | 0 | 20 | NULL |
AsText(InteriorRingN(Geometry, 1)) | AsText(PointN(InteriorRingN( Geometry, 1), 4)) |
X(PointN(InteriorRingN( Geometry, 1), 5)) | Y(PointN(InteriorRingN( Geometry, 1), 5)) |
---|---|---|---|
LINESTRING(756881.706704 4850692.62625, 760361.595005 4852743.267975, 759582.880944 4855493.610807, 757549.382306 4855414.551183, 755734.189332 4856112.118807, 755020.910885 4855996.887913, 754824.031873 4854723.577451, 756021.000385 4850937.420842, 756881.706704 4850692.62625) |
POINT(757549.382306 4855414.551183) | 755734.189332257 | 4856112.11880693 |
Name | AsText(Envelope(Geometry)) |
---|---|
VENETO | POLYGON((752912.250297 5027429.54477, 753828.826422 5027429.54477, 753828.826422 5028928.677375, 752912.250297 5028928.677375, 752912.250297 5027429.54477)) |
VENETO | POLYGON((751455.937063 5026778.301798, 752928.785333 5026778.301798, 752928.785333 5029157.835014, 751455.937063 5029157.835014, 751455.937063 5026778.301798)) |
VENETO | POLYGON((759461.944608 5026112.935302, 766247.780711 5026112.935302, 766247.780711 5036802.775999, 759461.944608 5036802.775999, 759461.944608 5026112.935302)) |
VENETO | POLYGON((750183.233817 5025314.495578, 750842.445895 5025314.495578, 750842.445895 5026793.815968, 750183.233817 5026793.815968, 750183.233817 5025314.495578)) |
LIGURIA | POLYGON((378359.802362 4848919.510676, 584633.642747 4848919.510676, 584633.642747 4947990.084988, 378359.802362 4947990.084988, 378359.802362 4848919.510676)) |
======== Dumping SQLite table 'Towns' into shapefile at 'shape_towns' SELECT * FROM Towns WHERE GeometryType(Geometry) = 'POINT'; Exported 8101 rows into shapefile ======== |
======== Dumping SQLite table 'HighWays' into shapefile at 'shape_highways' SELECT * FROM HighWays WHERE GeometryType(Geometry) = 'LINESTRING' OR GeometryType(Geometry) = 'MULTILINESTRING'; Exported 775 rows into shapefile ======== |
======== Dumping SQLite table 'Regions' into shapefile at 'shape_regions' SELECT * FROM Regions WHERE GeometryType(Geometry) = 'POLYGON' OR GeometryType(Geometry) = 'MULTIPOLYGON'; Exported 109 rows into shapefile ======== |
21/06/2008 | 13.19 | 7.816 | shape_highways.dbf |
21/06/2008 | 13.19 | 5.027.164 | shape_highways.shp |
21/06/2008 | 13.19 | 6.300 | shape_highways.shx |
21/06/2008 | 13.19 | 4.240 | shape_regions.dbf |
21/06/2008 | 13.19 | 318.988 | shape_regions.shp |
21/06/2008 | 13.19 | 972 | shape_regions.shx |
21/06/2008 | 13.19 | 875.134 | shape_towns.dbf |
21/06/2008 | 13.19 | 226.928 | shape_towns.shp |
21/06/2008 | 13.19 | 64.908 | shape_towns.shx |
======== Loading shapefile at 'shape_regions' into SQLite table 'NewRegions' BEGIN; CREATE TABLE NewRegions ( PK_UID INTEGER PRIMARY KEY AUTOINCREMENT, PK_UID_X0 INTEGER NOT NULL, Name TEXT NOT NULL, Geometry BLOB NOT NULL); INSERT INTO NewRegions ( PK_UID,PK_UID_X0,Name,Geometry) VALUES (1,1,'VENETO', GeomFromWkb(X'01030000000100000006000000ECE8268020FA2641139C...', -1)); ... COMMIT; Inserted 109 rows into 'NewRegions' from SHAPEFILE ======== |
======== Loading shapefile at 'shape_highways' into SQLite table 'NewHighWays' BEGIN; CREATE TABLE NewHighWays ( PK_UID INTEGER PRIMARY KEY AUTOINCREMENT, PK_UID_X0 INTEGER NOT NULL, Geometry BLOB NOT NULL); INSERT INTO NewHighWays ( PK_UID,PK_UID_X0,Geometry) VALUES (1,1, GeomFromWkb(X'01020000006A00000018AEEA69F9662441BD4DE2F66688...', -1)); ... COMMIT; Inserted 775 rows into 'NewHighWays' from SHAPEFILE ======== |
NewHighWays | NewRegions |
cid | name | type | notnull | dflt_value | pk |
---|---|---|---|---|---|
0 | PK_UID | INTEGER | 0 | NULL | 1 |
1 | PK_UID_X0 | INTEGER | 99 | 0 | |
3 | Name | TEXT | 99 | NULL | 0 |
4 | Geometry | BLOB | 99 | NULL | 0 |
count(*) | GeometryType(Geometry) |
---|---|
775 | LINESTRING |
count(*) | GeometryType(Geometry) |
---|---|
109 | POLYGON |
InitSpatialMetaData() |
---|
1 |
NewHighWays | NewRegions | geometry_columns | spatial_ref_sys |
======== Loading shapefile at 'shape_highways' into SQLite table 'NewHighWays' BEGIN; CREATE TABLE NewTowns ( PK_UID INTEGER PRIMARY KEY AUTOINCREMENT, PK_UID_X0 INTEGER NOT NULL, Name TEXT NOT NULL, Peoples INTEGER NOT NULL, LocalCounc INTEGER NOT NULL, County INTEGER NOT NULL, Region INTEGER NOT NULL); SELECT AddGeometryColumn('NewTowns', 'geom', 32632, 'POINT', 2); INSERT INTO NewTowns ( PK_UID,PK_UID_X0,Name,Peoples,LocalCounc,County,Region,geom) VALUES (1,1,'Brozolo',435,1,0,0, GeomFromWkb(X'010100000048E17A14EB0F1A4152B81E55420F5341', 32632)); ... COMMIT; Inserted 8101 rows into 'NewTowns' from SHAPEFILE ======== |
NewHighWays | NewTowns | geometry_columns |
NewRegions | geom_cols_ref_sys | spatial_ref_sys |
f_table_name | f_geometry_column | type | coord_dimension | srid | spatial_index_enabled |
---|---|---|---|---|---|
NewTowns | geom | POINT | 2 | 32632 | 0 |
srid | auth_name | auth_srid | ref_sys_name | proj4text |
---|---|---|---|---|
32632 | epsg | 32632 | WGS 84 / UTM zone 32N | +proj=utm +zone=32 +ellps=WGS84 +datum=WGS84 +units=m +no_defs |
f_table_name | f_geometry_column | type | coord_dimension | srid | auth_name | auth_srid | ref_sys_name | proj4text |
---|---|---|---|---|---|---|---|---|
NewTowns | geom | POINT | 2 | 32632 | epsg | 32632 | WGS 84 / UTM zone 32N | +proj=utm +zone=32 +ellps=WGS84 +datum=WGS84 +units=m +no_defs |
type | name | tbl_name | rootpage | sql |
---|---|---|---|---|
view | geom_cols_ref_sys | geom_cols_ref_sys | 0 | CREATE VIEW geom_cols_ref_sys AS SELECT f_table_name, f_geometry_column, type, coord_dimension, spatial_ref_sys.srid AS srid, auth_name, auth_srid, ref_sys_name, proj4text FROM geometry_columns, spatial_ref_sys WHERE geometry_columns.srid = spatial_ref_sys.srid |
type | name | tbl_name | rootpage | sql |
---|---|---|---|---|
trigger | gti_NewTowns_geom | NewTowns | 0 | CREATE TRIGGER gti_NewTowns_geom BEFORE INSERT ON NewTowns FOR EACH ROW BEGIN SELECT RAISE(ROLLBACK, '''NewTowns.geom'' violates Geometry constraint [geom-type not allowed]') WHERE ( SELECT type FROM geometry_columns WHERE f_table_name = 'NewTowns' AND f_geometry_column = 'geom' AND (type = GeometryType(NEW.geom) OR type = GeometryAliasType(NEW.geom))) IS NULL; END |
trigger | gsi_NewTowns_geom | NewTowns | 0 | CREATE TRIGGER gsi_NewTowns_geom BEFORE INSERT ON NewTowns FOR EACH ROW BEGIN SELECT RAISE(ROLLBACK, '''NewTowns.geom'' violates Geometry constraint [SRID not allowed]') WHERE ( SELECT srid FROM geometry_columns WHERE f_table_name = 'NewTowns' AND f_geometry_column = 'geom' AND srid = SRID(NEW.geom)) IS NULL; END |
trigger | gtu_NewTowns_geom | NewTowns | 0 | CREATE TRIGGER gtu_NewTowns_geom BEFORE UPDATE ON NewTowns FOR EACH ROW BEGIN SELECT RAISE(ROLLBACK, '''NewTowns.geom'' violates Geometry constraint [geom-type not allowed]') WHERE ( SELECT type FROM geometry_columns WHERE f_table_name = 'NewTowns' AND f_geometry_column = 'geom' AND (type = GeometryType(NEW.geom) OR type = GeometryAliasType(NEW.geom))) IS NULL; END |
trigger | gsu_NewTowns_geom | NewTowns | 0 | CREATE TRIGGER gsu_NewTowns_geom BEFORE UPDATE ON NewTowns FOR EACH ROW BEGIN SELECT RAISE(ROLLBACK, '''NewTowns.geom'' violates Geometry constraint [SRID not allowed]') WHERE ( SELECT srid FROM geometry_columns WHERE f_table_name = 'NewTowns' AND f_geometry_column = 'geom' AND srid = SRID(NEW.geom)) IS NULL; END |
RecoverGeometryColumn('NewRegions', 'Geometry',32632, 'MULTIPOLYGON', 2) |
---|
1 |
f_table_name | f_geometry_column | type | coord_dimension | srid | spatial_index_enabled |
---|---|---|---|---|---|
NewTowns | geom | POINT | 2 | 32632 | 0 |
NewRegions | Geometry | MULTIPOLYGON | 2 | 32632 | 0 |
name | tbl_name |
---|---|
fkd_refsys_geocols | spatial_ref_sys |
fki_geocols_refsys | geometry_columns |
fku_geocols_refsys | geometry_columns |
gti_NewTowns_geom | NewTowns |
gsi_NewTowns_geom | NewTowns |
gtu_NewTowns_geom | NewTowns |
gsu_NewTowns_geom | NewTowns |
gti_NewRegions_Geometry | NewRegions |
gsi_NewRegions_Geometry | NewRegions |
gtu_NewRegions_Geometry | NewRegions |
gsu_NewRegions_Geometry | NewRegions |
count(*) |
---|
42 |
count(*) |
---|
42 |
count(*) |
---|
8101 |
count(*) |
---|
42 |
count(*) |
---|
42 |
name | AsText(geom) |
---|---|
one | POINT(1 1) |
two | POINT(2 2) |
three | POINT(3 3) |
PK_UID | Name | Peoples | AsText(geom) |
---|---|---|---|
8006 | Monza | 120204.0 | POINT(521332.99 5047818.45) |
PK_UID | Name | Peoples | AsText(geom) |
---|---|---|---|
8006 | MONZA | 150000.0 | POINT(10 10) |
The following examples requires the original my_new_db.sqlite database. Thus it's better if you rebuilt it now, to avoid any misalignment due to DELETEs and UPDATEs we have just performed. |
count(*) |
---|
845 |
Name | Population | AsText(geometry) |
---|---|---|
Roma | 2546804 | POINT(788703.57 4645636.3) |
Milano | 1256211 | POINT(514820.49 5034534.56) |
Napoli | 1004500 | POINT(942636.1 4535272.55) |
N1 | N2 | N3 | Str |
---|---|---|---|
10 | 11 | 111.1111 | first |
NULL | 12 | NULL | second |
aaaa | bbbb | cccc | 1234 |
A | B | C | 1234.6789 |
count(*) |
---|
8101 |
count(*) |
---|
480 |
count(*) |
---|
480 |
count(*) |
---|
295 |
count(*) |
---|
47 |
count(*) |
---|
47 |
count(*) |
---|
15 |
Equal(g1, g2) | |
Disjoint(g1, g2) | |
Touches(g1, g2) | |
Within(g1, g2) | |
Overlaps(g1, g2) | |
Crosses(g1, g2) | |
Contains(g1, g2) |
Name | COUNT(*) |
---|---|
BASILICATA | 133 |
CALABRIA | 409 |
LOMBARDIA | 1548 |
MARCHE | 248 |
MOLISE | 136 |
PIEMONTE | 1201 |
UMBRIA | 91 |
VALLE D'AOSTA | 74 |
Name | Peoples | Distance |
---|---|---|
Bagno a Ripoli | 25232 | 5794.81919712765 |
Impruneta | 14637 | 9196.22864616252 |
Fiesole | 14085 | 5001.54448646674 |
Scandicci | 50136 | 8106.97263099484 |
Sesto Fiorentino | 46054 | 8674.74855857514 |
Firenze | 356118 | 0.0 |
g3 = Intersection(g1, g2) | |
g3 = Difference(g1, g2) | |
g3 = GUnion(g1, g2) | |
g3 = SymDifference(g1, g2) |
g2 = ConvexHull(g1) | the convex hull may be easily visualized by imagining an elastic band stretched open to encompass the given object; when released, it will assume the shape of the required convex hull. | |
g2 = Buffer(g1, radius) | A GIS buffer operation creates a zone of a specified width around a POINT or a LINESTRING or a POLYGON. it is also referred to as a zone of specified distance around any generic geometry (this late being of complex type as well, such as MULTIPOINT, MULTILINESTRING and so on). this example shows how you can obtain different buffers repeatedly applying an increasing radius on the same geometries. | |
g2 = Simplify(g1, tolerance) | the aim of Douglas Peuker algorithm is to simplify geometries. this algorithm tries to preserve directional trends in a line using a tolerance factor which may be varied according to the amount of simplification required. |
When you try to use two GIS datasets belonging to different Coordinate Reference Systems, entities falls very far because numeric values for coordinates are obviously in two different spaces. |
But if you apply some opportune coordinate reprojection for one dataset, so to put it in the same Coordinate Reference Systems of the other one, entities will correctly overlap as expected. |
srid | auth_name | auth_srid | ref_sys_name | proj4text |
---|---|---|---|---|
2000 | epgs | 2000 | Anguilla 1957 / British West Indies Grid | +proj=tmerc +lat_0=0 +lon_0=-62 +k=0.9995000000000001 +x_0=400000 +y_0=0 +ellps=clrk80 +units=m +no_defs |
2001 | epgs | 2001 | Antigua 1943 / British West Indies Grid | +proj=tmerc +lat_0=0 +lon_0=-62 +k=0.9995000000000001 +x_0=400000 +y_0=0 +ellps=clrk80 +units=m +no_defs |
2002 | epgs | 2002 | Dominica 1945 / British West Indies Grid | +proj=tmerc +lat_0=0 +lon_0=-62 +k=0.9995000000000001 +x_0=400000 +y_0=0 +ellps=clrk80 +towgs84=725,685,536,0,0,0,0 +units=m +no_defs |
2003 | epgs | 2003 | Grenada 1953 / British West Indies Grid | +proj=tmerc +lat_0=0 +lon_0=-62 +k=0.9995000000000001 +x_0=400000 +y_0=0 +ellps=clrk80 +towgs84=72,213.7,93,0,0,0,0 +units=m +no_defs |
2004 | epgs | 2004 | Montserrat 1958 / British West Indies Grid | +proj=tmerc +lat_0=0 +lon_0=-62 +k=0.9995000000000001 +x_0=400000 +y_0=0 +ellps=clrk80 +towgs84=174,359,365,0,0,0,0 +units=m +no_defs |
Srid(geom) |
---|
32632 |
SRID(NewTowns.geom) | spatial_ref_sys.ref_sys_name |
---|---|
32632 | WGS 84 / UTM zone 32N |
AddGeometryColumn('NewTowns', 'wgs84', 4326, 'POINT', 2) |
---|
1 |
AsText(geom) | Srid(geom) | AsText(wgs84) | Srid(wgs84) |
---|---|---|---|
POINT(427002.77 4996361.33) | 32632 | POINT(8.071929 45.116952) | 4326 |
POINT(367470.48 4962414.5) | 32632 | POINT(7.324219 44.802838) | 4326 |
POINT(390084.12 5025551.73) | 32632 | POINT(7.596214 45.374854) | 4326 |
POINT(425246.99 5000248.3) | 32632 | POINT(8.049028 45.151753) | 4326 |
POINT(426418.89 4957737.37) | 32632 | POINT(8.070136 44.769244) | 4326 |
cid | name | type | notnull | dflt_value | pk |
---|---|---|---|---|---|
0 | PK_UID | INT | 0 | 0 | |
1 | Geometry | BLOB | 0 | 0 | |
3 | Name | VARCHAR(62) | 0 | 0 | |
4 | Peoples | DOUBLE | 0 | 0 | |
5 | LocalCounc | VARCHAR(1) | 0 | 0 | |
6 | County | VARCHAR(1) | 0 | 0 | |
7 | Region | VARCHAR(1) | 0 | 0 |
PK_UID | Name | Peoples | AsText(Geometry) |
---|---|---|---|
8078 | Bologna | 371217.0 | POINT(686263.23 4929405.15) |
7980 | Firenze | 356118.0 | POINT(681514.97 4848768.02) |
203 | Genova | 610307.0 | POINT(492370.69 4918665.57) |
8003 | Milano | 1256211.0 | POINT(514820.49 5034534.56) |
8072 | Napoli | 1004500.0 | POINT(942636.1 4535272.55) |
7922 | Palermo | 686722.0 | POINT(880179.17 4227024.08) |
7918 | Roma | 2546804.0 | POINT(788703.57 4645636.3) |
8012 | Torino | 865263.0 | POINT(395553.63 4991768.9) |
cid | name | type | notnull | dflt_value | pk |
---|---|---|---|---|---|
0 | ROWNO | INTEGER | 0 | 0 | |
1 | Author | TEXT | 0 | 0 | |
2 | Book | TEXT | 0 | 0 | |
3 | Lang | TEXT | 0 | 0 | |
4 | Category | TEXT | 0 | 0 | |
5 | Price | DOUBLE | 0 | 0 |
ROWNO | Author | Book | Lang | Category | Price |
---|---|---|---|---|---|
15 | Darwin, Charles | Origin of the Species | English | Biology | 9.50 |
20 | Dawkins, Richard | The selfish gene | English | Biology | 12.50 |
21 | Dickens, Charles | Our mutual friend | English | Literature | 9.30 |
16 | Gibson, Henry W. | The decline and fall of the Roman Empire | English | History | 18.50 |
6 | Gould, Stephen Jay | Wonderful life | English | Biology | 12.60 |
2 | Hobbes, Thomas | The Leviathan | English | Philosophy | 18.75 |
11 | Kerningham, Brian : Ritchie, Dennis | The C programming Language | English | Computing | 17.50 |
4 | Knut, Donald | The art of computer programming | English | Computing | 35.50 |
10 | Morris, Desmond | The naked ape | English | Biology | 8.75 |
3 | Shakespeare, William | Julius Cesar | English | Literature | 8.25 |
18 | Thackeray, William M. | Vanity fair | English | Literature | 10.00 |
7 | Diderot, Denis | Jacques le fataliste | French | Literature | 6.50 |
5 | Stendhal | Le rouge et le noir | French | Literature | 8.50 |
13 | Voltaire | Traité sur la tolérance | French | Philosophy | 12.00 |
19 | Zola, Emile | Germinal | French | Literature | 8.40 |
8 | Mann, Heinrich | Der blaue Engel | German | Literature | 6.60 |
14 | Mann, Thomas | Der Zauberberg | German | Literature | 11.00 |
22 | Marx, Karl | Grundrisse der Kritik der politischen OEkonomie | German | Philosophy | 10.00 |
1 | Alighieri, Dante | Divina commedia | Italian | Literature | 12.50 |
23 | Manzoni, Alessandro | I promessi sposi | Italian | Literature | 15.00 |
9 | Caesar, Caius Julius | Commentarii de bello gallico | Latin | History | 15.00 |
17 | Flaubert, Gustave | L'éducation sentimentale | Literature | French | 7.50 |
12 | de Cervantes, Miguel | Don Quichote | Spanish | Literature | 14.20 |
Book | Author |
---|---|
Julius Cesar | Shakespeare, William |
Our mutual friend | Dickens, Charles |
f_table_name | f_geometry_column | type | coord_dimension | srid | spatial_index_enabled |
---|---|---|---|---|---|
NewTowns | geom | POINT | 2 | 32632 | 0 |
NewRegions | Geometry | MULTIPOLYGON | 2 | 32632 | 0 |
NewTowns | wgs84 | POINT | 2 | 4326 | 0 |
CreateSpatialIndex('NewTowns', 'geom') |
---|
1 |
f_table_name | f_geometry_column | type | coord_dimension | srid | spatial_index_enabled |
---|---|---|---|---|---|
NewTowns | geom | POINT | 2 | 32632 | 1 |
NewRegions | Geometry | MULTIPOLYGON | 2 | 32632 | 0 |
NewTowns | wgs84 | POINT | 2 | 4326 | 0 |
NewHighWays | idx_NewTowns_geom | spatial_ref_sys |
NewRegions | idx_NewTowns_geom_node | test_shape |
NewTowns | idx_NewTowns_geom_parent | |
geometry_columns | idx_NewTowns_geom_rowid |
cid | name | type | notnull | dflt_value | pk |
---|---|---|---|---|---|
0 | pkid | 0 | NULL | 0 | |
1 | xmin | 0 | NULL | 0 | |
2 | xmax | 0 | NULL | 0 | |
3 | ymin | 0 | NULL | 0 | |
4 | ymax | 0 | NULL | 0 |
pkid | xmin | xmax | ymin | ymax |
---|---|---|---|---|
7695 | 319224.0 | 319224.0 | 4994219.0 | 4994219.0 |
3442 | 322716.71875 | 322716.71875 | 4978712.0 | 4978712.0 |
3436 | 325736.90625 | 325736.90625 | 4980018.5 | 4980018.5 |
69 | 332594.65625 | 332594.65625 | 4980547.0 | 4980547.0 |
3477 | 333373.40625 | 333373.40625 | 4993133.0 | 4993133.0 |
name | tbl_name | sql |
---|---|---|
gii_NewTowns_geom | NewTowns | CREATE TRIGGER gii_NewTowns_geom AFTER INSERT ON NewTowns FOR EACH ROW BEGIN INSERT INTO idx_NewTowns_geom (pkid, xmin, xmax, ymin, ymax) VALUES (NEW.ROWID, MbrMinX(NEW.geom), MbrMaxX(NEW.geom), MbrMinY(NEW.geom), MbrMaxY(NEW.geom)); END |
giu_NewTowns_geom | NewTowns | CREATE TRIGGER giu_NewTowns_geom AFTER UPDATE ON NewTowns FOR EACH ROW BEGIN UPDATE idx_NewTowns_geom SET xmin = MbrMinX(NEW.geom), xmax = MbrMaxX(NEW.geom), ymin = MbrMinY(NEW.geom), ymax = MbrMaxY(NEW.geom) WHERE pkid = NEW.ROWID; END |
gid_NewTowns_geom | NewTowns | CREATE TRIGGER gid_NewTowns_geom AFTER DELETE ON NewTowns FOR EACH ROW BEGIN DELETE FROM idx_NewTowns_geom WHERE pkid = NEW.ROWID; END |
Name |
---|
Capolona |
Chitignano |
Subbiano |
Arezzo |
Name |
---|
Capolona |
Chitignano |
Subbiano |
Arezzo |
NewRegions.Name | COUNT(*) |
---|---|
BASILICATA | 133 |
CALABRIA | 409 |
LOMBARDIA | 1548 |
MARCHE | 248 |
MOLISE | 136 |
PIEMONTE | 1201 |
UMBRIA | 91 |
VALLE D'AOSTA | 74 |
NewHighWays | idx_NewTowns_geom | spatial_ref_sys |
NewRegions | idx_NewTowns_geom_node | test_shape |
NewTowns | idx_NewTowns_geom_parent | |
geometry_columns | idx_NewTowns_geom_rowid |
NewHighWays | NewTowns | spatial_ref_sys |
NewRegions | geometry_columns | test_shape |
CreateMbrCache('Towns', 'Geometry') |
---|
1 |
f_table_name | f_geometry_column | type | coord_dimension | srid | spatial_index_enabled |
---|---|---|---|---|---|
Regions | Geometry | MULTIPOLYGON | 2 | 32632 | 0 |
HighWays | Geometry | MULTILINESTRING | 2 | 32632 | 0 |
Towns | Geometry | POINT | 2 | 32632 | 2 |
HighWays | cache_Towns_Geometry | spatial_ref_sys |
Regions | geom_cols_ref_sys | |
Towns | geometry_columns |
cid | name | type | notnull | dflt_value | pk |
---|---|---|---|---|---|
0 | rowid | INTEGER | 0 | 0 | |
1 | mbr | BLOB | 0 | 0 |
rowid | mbr |
---|---|
1 | POLYGON((427002.77 4996361.33, 427002.77 4996361.33, 427002.77 4996361.33, 427002.77 4996361.33, 427002.77 4996361.33)) |
2 | POLYGON((367470.48 4962414.50, 367470.48 4962414.50, 367470.48 4962414.50, 367470.48 4962414.50, 367470.48 4962414.50)) |
3 | POLYGON((390084.12 5025551.73, 390084.12 5025551.73, 390084.12 5025551.73, 390084.12 5025551.73, 390084.12 5025551.73)) |
4 | POLYGON((425246.99 5000248.30, 425246.99 5000248.30, 425246.99 5000248.30, 425246.99 5000248.30, 425246.99 5000248.30)) |
5 | POLYGON((426418.89 4957737.37, 426418.89 4957737.37, 426418.89 4957737.37, 426418.89 4957737.37, 426418.89 4957737.37)) |
name | tbl_name | sql |
---|---|---|
gci_Towns_Geometry | Towns | CREATE TRIGGER gci_Towns_Geometry AFTER INSERT ON Towns FOR EACH ROW BEGIN INSERT INTO cache_Towns_Geometry (rowid, mbr) VALUES (NEW.ROWID, BuildMbrFilter(MbrMinX(NEW.Geometry), MbrMinY(NEW.Geometry), MbrMaxX(NEW.Geometry), MbrMaxY(NEW.Geometry))); END |
gcu_Towns_Geometry | Towns | CREATE TRIGGER gcu_Towns_Geometry AFTER UPDATE ON Towns FOR EACH ROW BEGIN UPDATE cache_Towns_Geometry SET mbr = BuildMbrFilter(MbrMinX(NEW.Geometry), MbrMinY(NEW.Geometry), MbrMaxX(NEW.Geometry), MbrMaxY(NEW.Geometry)) WHERE rowid = NEW.ROWID; END |
gcd_Towns_Geometry | Towns | CREATE TRIGGER gcd_Towns_Geometry AFTER DELETE ON Towns FOR EACH ROW BEGIN DELETE FROM cache_Towns_Geometry WHERE rowid = OLD.ROWID; END |
Name |
---|
Capolona |
Chitignano |
Subbiano |
Arezzo |
Name |
---|
Capolona |
Chitignano |
Subbiano |
Arezzo |
ARMSCII-8 | Armenian |
---|---|
ASCII | US-ASCII |
BIG5 | Chinese/Traditional |
BIG5-HKSCS BIG5-HKSCS:1999 BIG5-HKSCS:2001 | Chinese/Hong Kong |
CP850 | DOS/OEM Western Europe |
CP862 | DOS/OEM Hebrew |
CP866 | DOS/OEM Cyrillic |
CP874 | DOS/OEM Thai |
CP932 | DOS/OEM Japanese |
CP936 | DOS/OEM Chinese |
CP949 | DOS/OEM Korean |
CP950 | DOS/OEM Chinese/Big5 |
CP1133 | Laotian |
CP1250 | Windows Central Europe |
CP1251 | Windows Cyrillic |
CP1252 | Windows Latin 1 |
CP1253 | Windows Greek |
CP1254 | Windows Turkish |
CP1255 | Windows Hebrew |
CP1256 | Windows Arabic |
CP1257 | Windows Baltic |
CP1258 | Windows Vietnamese |
EUC-CN | Chinese |
EUC-JP | Japanese |
EUC-KR | Korean |
EUC-TW | Taiwan |
GB18030 | Chinese/National Standard |
GBK | Chinese/Simplified |
Georgian-Academy | Georgian |
Georgian-PS | Georgian |
HZ | Chinese |
ISO-2022-CN ISO-2022-CN-EXT | Chinese |
ISO-2022-JP ISO-2022-JP-1 ISO-2022-JP-2 | Japanese |
ISO-2022-KR | Korean |
ISO-8859-1 | Latin-1 Western European |
ISO-8859-2 | Latin-2 Central European |
ISO-8859-3 | Latin-3 South European |
ISO-8859-4 | Latin-4 North European |
ISO-8859-5 | Latin/Cyrillic |
ISO-8859-6 | Latin/Arabic |
ISO-8859-7 | Latin/Greek |
ISO-8859-8 | Latin/Hebrew |
ISO-8859-9 | Latin-5 Turkish |
ISO-8859-10 | Latin-6 Nordic |
ISO-8859-11 | Latin/Thai |
ISO-8859-13 | Latin-7 Baltic Rim |
ISO-8859-14 | Latin-8 Celtic |
ISO-8859-15 | Latin-9 |
ISO-8859-16 | Latin-10 South-Eastern European |
JOHAB | Korean |
KOI8-R | Russian |
KOI8-U | Ukrainian |
KOI8-RU | Belarusian |
KOI8-T | Tajik |
MacArabic | MAC Arabic |
MacCentralEurope | MAC Central Europe |
MacCroatian | MAC Croatian |
MacCyrillic | MAC Cyrillic |
MacGreek | MAC Greek |
MacHebrew | MAC Hebrew |
MacIceland | MAC Iceland |
Macintosh | MAC |
MacRoman | MAC European/Western languages |
MacRomania | MAC Romania |
MacThai | MAC Thai |
MacTurkish | MAC Turkish |
MacUkraine | MAC Ukraine |
MuleLao-1 | Laotian |
PT154 | Kazakh |
RK1048 | Kazakh |
SHIFT_JIS | Japanese |
TCVN | Vietnamese |
TIS-620 | Thai |
UTF-8 | UNICODE/Universal |
VISCII | Vietnamese |
PK_UID | Name |
---|---|
7749 | Vi+¦ |
PK_UID | Name |
---|---|
7749 | Viù |
PK_UID | Name |
---|---|
644 | Palù del Fersina |
1689 | Viggiù |
1878 | Montù Beccaria |
3217 | Temù |
4289 | Cefalù |
5051 | Carrù |
5333 | Palù |
6684 | Patù |
7553 | Cantù |
7749 | Viù |