1 | =================================== | ||
2 | dga-spatialingestor | ||
3 | =================================== | ||
4 | |||
5 | Provides ingestion capability for data.gov.au that can be triggered on dataset update with https://github.com/datagovuk/ckanext-os | ||
6 | |||
7 | |||
8 | CKAN Configuration: | ||
9 | |||
10 | ckan.plugins = os_wfs_server | ||
11 | |||
12 | ckanext-os.spatial-datastore.jdbc.url = {"dbname":"geodatastore", "user":"user", "password":"password", "host":"localhost"} | ||
13 | |||
14 | ckanext-os.spatial-ingester.filepath = /home/co/pyenv_dgu/src/os-spatialingester/spatial.ingester | ||
15 | |||
16 | Creating the PostGIS database: | ||
17 | |||
18 | owner=user | ||
19 | |||
20 | db=geodatastore | ||
21 | |||
22 | sudo -u postgres createdb -E UTF8 -O $owner $db | ||
23 | |||
24 | sudo -u postgres psql $db -c "CREATE EXTENSION postgis;" | ||
25 | |||
26 | sudo -u postgres psql $db -c "ALTER TABLE geometry_columns OWNER TO $owner; ALTER TABLE spatial_ref_sys OWNER TO $owner;" | ||
CKAN data.gov.au | 27 | ||
28 | INSERT into spatial_ref_sys (srid, auth_name, auth_srid, proj4text, srtext) values ( 96643, 'sr-org', 6643, '', 'PROJCS["Albers134",GEOGCS["GCS_GDA_1994",DATUM["D_GDA_1994",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.017453292519943295]],PROJECTION["Albers"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",134.0],PARAMETER["Standard_Parallel_1",-18.0],PARAMETER["Standard_Parallel_2",-36.0],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]'); | ||
29 |