Closed sichen1234 closed 1 year ago
@sichen1234 If running from the project root you can use
npm run loadSeeds:OG
which will execute loadOGdata.sh from the /data workspace.
calling data/loadOGdata.sh will not work as the dataLoader script is not visible from project root
Thanks, but when I ran it, it just kept running like this forever.
Eventually it crashed my computer.
Is there a log that could show me what's going on?
@sichen1234 Looks like an issue when pulling oil and gas asset data from Oil_and_Natural_Gas_Wells.geojson ...
Made some changes in PR 674 that might resolve your issue.. The asset data is no longer loaded by default in loadOGdata.sh and the Readme have been modified
You can load the asset data manually with
cd data/
npm run dataLoader load_og_assets "./oil_and_gas/files/Oil_and_Natural_Gas_Wells.geojson" -- --format US_asset_data --source "https://hifld-geoplatform.opendata.arcgis.com/datasets/geoplatform::oil-and-natural-gas-wells/explore"
It can take a long time to load the +1.5 million assets. This might have caused the crash...
If still facing issue with the above cmd I added binary files to download.sh
script to avoid this long loading task.
The files can be used to seed/restore the following tables using postgres admin console (after setting up the DB schema with npm run pg:init
):
After populating these tables sh loadOGdata.sh
should behave as expected.
The problem was that ts-node needed to be installed first with
npm install -g ts-node
After that it is loading but very slowly:
=== Starting load_og_assets ...
Loading into PostgresDB |░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░| 0% | ETA: 764645s | 4318/1506238 records
I tried data/loadOGdata.sh but got the attached errors.
loadOGdata_error.log.zip