Created
August 20, 2016 16:58
-
-
Save kokes/a2b35e4c8132c036150b59abcd9f4274 to your computer and use it in GitHub Desktop.
neusporadany poznamky z mapovani eurostatu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data | |
http://ec.europa.eu/eurostat/web/gisco/geodata/reference-data/administrative-units-statistical-units | |
stats | |
http://ec.europa.eu/eurostat/web/nuts/national-structures-eu | |
best data: communes (or NUTS, if okay with regions at best) | |
COMM_AT - only names - necessary | |
COMM_RG - shapes and ids (to match up with names) | |
COMM_LB - useless | |
COMM_BN - like RG? | |
use ogr2ogr to cut down | |
ogr2ogr -where 'column like "foo%"' to.shp from.shp | |
# pro Cesko z CENSUS datasetu | |
ogr2ogr -where 'CENSUS_ID like "CZ%"' cesko.shp CENSUS_UNIT_RG_01M_2011.shp | |
dbf files have metadata | |
topojson from geojson to topojson | |
commands https://bost.ocks.org/mike/map/ | |
ogr2ogr \ | |
-f GeoJSON \ | |
-where "ISO_A2 = 'GB' AND SCALERANK < 8" \ | |
places.json \ | |
ne_10m_populated_places.shp | |
topojson \ | |
-o uk.json \ | |
--id-property SU_A3 \ | |
--properties name=NAME \ | |
-- \ | |
subunits.json \ | |
places.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment