You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Folks at LimnoTech have a version with custom attributes that connects the streams to the basins and allows for quick watershed delineation. We need to replace the current version with that, so that each stream has the necessary attributes for that work.
@ptomasula will upload the dataset to s3://data.mmw.azavea.com/.
Once the dataset is available:
Ingest it locally into postgres using ogr2ogr
Export it into sql using pg_dump
Import it on staging
The text was updated successfully, but these errors were encountered:
After ingest, run the following to shape the table:
-- Step 1: Drop the existing primary key constraintALTERTABLE tdxstreams DROP CONSTRAINT tdxstreams_pkey;
-- Step 2: Drop the `ogc_fid` columnALTERTABLE tdxstreams DROP COLUMN ogc_fid;
-- Step 3: Add a new primary key constraint on `linkno`ALTERTABLE tdxstreams ADD CONSTRAINT tdxstreams_pkey PRIMARY KEY (linkno);
-- Step 4: Rename columns to match other stream tablesALTERTABLE tdxstreams RENAME COLUMN strmorder TO stream_order;
ALTERTABLE tdxstreams RENAME COLUMN geometry TO geom;
-- Step 5: Create stream order indexCREATEINDEXtdxstreams_stream_order_idxON tdxstreams USING btree (stream_order);
-- Step 6: Create index on root_id, discover_time, finish_time combinationCREATEINDEXidx_tdxstreams_root_discover_finishON tdxstreams (root_id, discover_time, finish_time);
Folks at LimnoTech have a version with custom attributes that connects the streams to the basins and allows for quick watershed delineation. We need to replace the current version with that, so that each stream has the necessary attributes for that work.
@ptomasula will upload the dataset to
s3://data.mmw.azavea.com/
.Once the dataset is available:
ogr2ogr
pg_dump
The text was updated successfully, but these errors were encountered: