| 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 |
| 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.8721344157 | 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.9109 | POINT(955762.441021 4173082.511675) | 2 | POLYGON |
| 105 | 25391974998.0765 | POINT(414613.865386 4990738.194216) | 2 | POLYGON |
| 106 | 24069782849.5208 | POINT(560092.709693 5052167.502959) | 2 | POLYGON |
| 74 | 23962322618.287 | POINT(502694.575482 4437256.791656) | 2 | POLYGON |
| 53 | 22657959720.0959 | 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' 8101 POLYGON/MULTIPOLYGON rows fetched from table 8101 entities exported to shapefile |
[0.219 sec] |
| ======== Dumping SQLite table 'HighWays' into shapefile at 'shape_highways' 775 LINESTRING/MULTILINESTRING rows fetched from table 775 entities exported to shapefile |
[0.234 sec] |
| ======== Dumping SQLite table 'Regions' into shapefile at 'shape_regions' 109 POLYGON/MULTIPOLYGON rows fetched from table 109 entities exported to shapefile |
[0.016 sec] |
| 17/03/2008 | 17.10 | 4.716 | shape_highways.dbf |
| 17/03/2008 | 17.10 | 5.027.164 | shape_highways.shp |
| 17/03/2008 | 17.10 | 6.300 | shape_highways.shx |
| 17/03/2008 | 17.10 | 318.988 | shape_regions.dbf |
| 17/03/2008 | 17.10 | 226.928 | shape_regions.shp |
| 17/03/2008 | 17.10 | 64.908 | shape_regions.shx |
| 17/03/2008 | 17.10 | 648.306 | shape_towns.dbf |
| 17/03/2008 | 17.10 | 226.928 | shape_towns.shp |
| 17/03/2008 | 17.10 | 64.908 | shape_towns.shx |


|
======== Loading shapefile from 'shape_regions' into SQLite table 'NewRegions' ======== table 'NewRegions' created acquired 109 POLYGON/MULTIPOLYGON entities from shapefile inserted 109 rows | [0.281 sec] |
|
======== Loading shapefile from 'shape_highways' into SQLite table 'NewHighWays' ======== table 'NewHighWays' created acquired 775 LINESTRING/MULTILINESTRING entities from shapefile inserted 775 rows | [3.156 sec] |
|
======== Loading shapefile from 'shape_towns' into SQLite table 'NewTowns' ======== table 'NewTowns' created acquired 8101 POINT entities from shapefile inserted 8101 rows | [1.469 sec] |
| NewHighWays | NewRegions | NewTowns |
| 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 | Peoples | DOUBLE | 99 | NULL | 0 |
| 4 | LocalCounc | BOOLEAN | 99 | NULL | 0 |
| 5 | County | BOOLEAN | 99 | NULL | 0 |
| 6 | Region | BOOLEAN | 99 | NULL | 0 |
| 7 | geom | BLOB | 99 | NULL | 0 |
| count(*) | GeometryType(geom) |
|---|---|
| 8101 | POINT |
| count(*) | GeometryType(geom) |
|---|---|
| 775 | LINESTRINGS |
| count(*) | GeometryType(geom) |
|---|---|
| 109 | POLYGON |
| 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_test_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(*) |
|---|
| 295 |
| count(*) |
|---|
| 47 |
| count(*) |
|---|
| 47 |
| count(*) |
|---|
| 15 |
![]() 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 | name | proj_params |
|---|---|---|
| 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 | 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 | 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 | 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 | 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(GaiaGeometry) |
|---|
| 32632 |
| SRID(Towns.GaiaGeometry) | epsg.name |
|---|---|
| 32632 | WGS 84 / UTM zone 32N |
| AsText(GaiaGeometry) | Srid(GaiaGeometry) | 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 |
| Srid(geom) |
|---|
| –1 |
| Srid(geom) |
|---|
| 32632 |
| SRID(NewTowns.geom) | epsg.name |
|---|---|
| 32632 | WGS 84 / UTM zone 32N |
| 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) |