| GaiaPrimaryKey | GaiaGeometry | 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(GaiaGeometry) |
|---|---|---|
| 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(GaiaGeometry) |
|---|---|---|
| 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(GaiaGeometry) | Y(GaiaGeometry) |
|---|---|---|
| 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) |
| GaiaPrimaryKey | AsText(GaiaGeometry) |
|---|---|
| 883 | LINESTRING(689001.702718 4798988.808442, 689027.602471 4798996.686619, 689029.54214 4798989.585948, 689029.54214 4798989.585948) |
| GaiaPrimaryKey | NumPoints(GaiaGeometry) | GLength(GaiaGeometry) | Dimension(GaiaGeometry) | GeometryType(GaiaGeometry) |
|---|---|---|---|---|
| 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 |
| GaiaPrimaryKey | NumPoints(GaiaGeometry) | AsText(StartPoint( GaiaGeometry)) | AsText(EndPoint( GaiaGeometry)) |
X(PointN( GaiaGeometry, 2)) | Y(PointN( GaiaGeometry, 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(GaiaGeometry) |
|---|---|
| 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)) |
| GaiaPrimaryKey | Area(GaiaGeometry) | AsText(Centroid(GaiaGeometry)) | Dimension(GaiaGeometry) | GeometryType(GaiaGeometry) |
|---|---|---|---|---|
| 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 |
| GaiaPrimaryKey | NumInteriorRings(GaiaGeometry) | NumPoints(ExteriorRing(GaiaGeometry)) | NumPoints(InteriorRingN(GaiaGeometry, 1)) |
|---|---|---|---|
| 60 | 3 | 912 | 17 |
| 55 | 1 | 602 | 9 |
| 1 | 0 | 6 | NULL |
| 2 | 0 | 12 | NULL |
| 3 | 0 | 20 | NULL |
| AsText(InteriorRingN(GaiaGeometry, 1)) | AsText(PointN(InteriorRingN( GaiaGeometry, 1), 4)) |
X(PointN(InteriorRingN( GaiaGeometry, 1), 5)) | Y(PointN(InteriorRingN( GaiaGeometry, 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(GaiaGeometry)) |
|---|---|
| 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(GaiaGeometry) = 'POINT' OR GeometryType(GaiaGeometry) = 'MULTIPOINT'; Exported 8101 rows into shapefile ======== |
| ======== Dumping SQLite table 'HighWays' into shapefile at 'shape_highways' SELECT * FROM HighWays WHERE GeometryType(GaiaGeometry) = 'LINESTRING' OR GeometryType(GaiaGeometry) = 'MULTILINESTRING'; Exported 775 rows into shapefile ======== |
| ======== Dumping SQLite table 'Regions' into shapefile at 'shape_regions' SELECT * FROM Regions WHERE GeometryType(GaiaGeometry) = 'POLYGON' OR GeometryType(GaiaGeometry) = '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, GaiaPrimar INTEGER NOT NULL, Name TEXT NOT NULL, Geometry BLOB NOT NULL); INSERT INTO NewRegions ( PK_UID,GaiaPrimar,Name,Geometry) VALUES (1,1,'VENETO', GeomFromWkb(X'01030000000100000006000000ECE8268020FA2641139C...', -1)); ... COMMIT; ANALYZE NewRegions; VACUUM; 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, GaiaPrimar INTEGER NOT NULL, Geometry BLOB NOT NULL); INSERT INTO NewHighWays ( PK_UID,GaiaPrimar,Geometry) VALUES (1,1, GeomFromWkb(X'01020000006A00000018AEEA69F9662441BD4DE2F66688...', -1)); ... COMMIT; ANALYZE NewHighWays; VACUUM; Inserted 775 rows into 'NewHighWays' from SHAPEFILE ======== |
| NewHighWays | NewRegions |
| cid | name | type | notnull | dflt_value | pk |
|---|---|---|---|---|---|
| 0 | PK_UID | INTEGER | 0 | NULL | 1 |
| 1 | GaiaPrimar | INTEGER | 99 | NULL | 0 |
| 2 | Name | TEXT | 99 | NULL | 0 |
| 3 | 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, GaiaPrimar 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,GaiaPrimar,Name,Peoples,LocalCounc,County,Region,geom) VALUES (1,1,'Brozolo',435,1,0,0, GeomFromWkb(X'010100000048E17A14EB0F1A4152B81E55420F5341', 32632)); ... COMMIT; ANALYZE NewHighWays; VACUUM; Inserted 8101 rows into 'NewTowns' from SHAPEFILE ======== |
| NewHighWays | NewTowns | spatial_ref_sys |
| NewRegions | geometry_columns |
| f_table_name | f_geometry_column | type | coord_dimension | srid | spatial_index_enabled |
|---|---|---|---|---|---|
| NewTowns | geom | POINT | 2 | 32632 | 0 |
| f_table_name | f_geometry_column | srid | auth_name | ref_sys_name | proj4text |
|---|---|---|---|---|---|
| NewTowns | geom | 32632 | epsg | WGS 84 / UTM zone 32N | +proj=utm +zone=32 +ellps=WGS84 +datum=WGS84 +units=m +no_defs |
| 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.db 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 | PKUID | INT | 0 | 0 | |
| 1 | Geometry | BLOB | 0 | 0 | |
| 2 | GaiaPrimar | INT | 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 |
| PKUID | 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) |
| 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 |
| 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 |