geosketch_data_extraction
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| geosketch_data_extraction [2022/12/05 05:16] – jhagstrand | 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 voyc -U jhagstrand < | ||
| - | psql -t -d voyc -U 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 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 " | ||
| - | |||
| - | update plunder.plunder set featureclass = lower(featureclass); | ||
| - | |||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | lake centerline | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | |||
| - | | ||
| - | ------------------+------- | ||
| - | |||
| - | water | ||
| - | |||
| - | land | ||
| - | |||
| - | terrain | ||
| - | basin | 9 | ||
| - | desert | ||
| - | plain | 30 | ||
| - | plateau | ||
| - | tundra | ||
| - | |||
| - | mountains | ||
| - | range/ | ||
| - | foothills | ||
| - | |||
| - | lakes | ||
| - | lake | ||
| - | reservoir | ||
| - | |||
| - | rivers | ||
| - | river | 361 | ||
| - | delta | 12 | ||
| - | |||
| - | historical | ||
| - | empire | ||
| - | treasure | ||
| - | |||
geosketch_data_extraction.1670235394.txt.gz · Last modified: 2022/12/05 05:16 by jhagstrand