mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
Document SQL to reassign Crimea to the Ukraine
This commit is contained in:
parent
1c7d903c8c
commit
6bfc29603e
@ -42,6 +42,12 @@ crossing the 180˚ meridian. Those would be rendered as large invalid polygons c
|
||||
This layer was created by importing data source [2] as-is.
|
||||
|
||||
##### Manual clean-up of attribute tables (all layers)
|
||||
Finally, in the GeoPackage the less meaningful fields in the attribute tables were dropped.
|
||||
In the GeoPackage the less meaningful fields in the attribute tables were dropped.
|
||||
|
||||
And finally Crimea and Sevastopol were restored to belong to the Ukraine using
|
||||
|
||||
```sql
|
||||
update states_provinces set iso_a2='UA',sov_a3='UA',adm0_a3='UA',admin='Ukraine',gu_a3='UKR' where name IN ('Crimea','Sevastopol');
|
||||
update countries set geom=st_union(geom, (select st_union(geom) from states_provinces where name IN ('Crimea','Sevastopol'))) where name='Ukraine';
|
||||
update countries set geom=st_difference(geom, (select st_union(geom) from states_provinces where name IN ('Crimea','Sevastopol'))) where name='Russia';
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user