geosketch_data_extraction
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| geosketch_data_extraction [2023/01/11 08:11] – external edit 127.0.0.1 | geosketch_data_extraction [2023/01/12 03:06] (current) – removed jhagstrand | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Geosketch Data Extraction ====== | ||
| - | |||
| - | Plunder loads its data from static js files. | ||
| - | |||
| - | Those files are generated from the plunder database using the sql files in the | ||
| - | geosketch/ | ||
| - | |||
| - | psql -t -d voyc -U jhagstrand < | ||
| - | psql -t -d voyc -U jhagstrand < | ||
| - | psql -t -d voyc -U jhagstrand < | ||
| - | psql -t -d voyc -U jhagstrand < | ||
| - | psql -t -d voyc -U jhagstrand < | ||
| - | psql -t -d voyc -U jhagstrand < | ||
| - | psql -t -d voyc -U jhagstrand < | ||
| - | psql -t -d voyc -U jhagstrand < | ||
| - | psql -t -d voyccom_plunder -U voyccom_jhagstrand < | ||
| - | psql -t -d voyccom_plunder -U voyccom_jhagstrand < | ||
| - | psql -t -d voyc -U jhagstrand < | ||
| - | psql -t -d voyc -U jhagstrand < | ||
| - | |||
| - | Originally mountains were broken into three js files by scalerank. | ||
| - | * high scalerank 1,2 | ||
| - | * medium scalerank 3,4 | ||
| - | * low scalerank 4,5 | ||
| - | |||
| - | And rivers were broken into six js files by scalerank, 1 thru 6. | ||
| - | |||
| - | ==== OGR ==== | ||
| - | |||
| - | OGR can be used to generate geojson files directly from shapefiles, | ||
| - | but we found it more convenient to use a sql database as an interim. | ||
| - | |||
| - | Create one large geojson file from the shapefile. | ||
| - | ogr2ogr -f GeoJSON georegions.js 10m_geography_regions_polys.shp | ||
| - | |||
| - | Never figured out how to create multiple geojson files, one for each featurecla. | ||
| - | ogr2ogr -f GeoJSON -clipsrcwhere " | ||
| - | |||
| - | ==== Feature Class ==== | ||
| - | |||
| - | | alkaline lake | 40| | ||
| - | | basin | 9| | ||
| - | | canal | 4| | ||
| - | | coast | 36| | ||
| - | | continent | ||
| - | | delta | 12| | ||
| - | | depression | ||
| - | | desert | ||
| - | | drangons-be-here | 1| | ||
| - | | empire | ||
| - | | foothills | ||
| - | | geoarea | ||
| - | | gorge | 3| | ||
| - | | island | ||
| - | | island group | ||
| - | | isthmus | ||
| - | | lake | ||
| - | | lake centerline | ||
| - | | lowland | ||
| - | | pen/ | ||
| - | | peninsula | ||
| - | | plain | 30| | ||
| - | | plateau | ||
| - | | range/ | ||
| - | | reservoir | ||
| - | | river | 361| | ||
| - | | treasure | ||
| - | | tundra | ||
| - | | valley | ||
| - | | wetlands | ||
| - | |||
| - | |||
| - | ^ layer ^ featureclass ^ rowcount ^ | ||
| - | | terrain | ||
| - | | | basin | | ||
| - | | | desert | ||
| - | | | plain | 30 | | ||
| - | | | plateau | ||
| - | | | tundra | ||
| - | | mountains | ||
| - | | | range/ | ||
| - | | | foothills | ||
| - | | lakes | | ||
| - | | | lake | ||
| - | | | reservoir | ||
| - | | | delta | 12 | | ||
| - | | rivers | ||
| - | | | river | | ||
| - | | historical | ||
| - | | | empire | ||
| - | | | treasure | ||
geosketch_data_extraction.1673442670.txt.gz · Last modified: 2023/01/11 08:11 by 127.0.0.1