Add site whiter

From PTAGISWiki

Jump to: navigation, search

Contents

Procedure for adding a new site to the ALRS database

4/3/2009

Using the ALRS webapp for this site entry.

Release	WHITER	White River, Wenatchee River Basin	754.094	17060106	WENATR	94	47.9215°	-120.8971°	63	158

Here are the tables and fields I needed to populate:

location (new)

loc_id: 777
location_name: White River, Wenatchee River Basin
Lat: 47.9215
Lon: -120.8971
ElevationMsl: 0
ycoord: 63
xcoord: 158

river_segment (new)

SegId: 357
HUC: 17060106
Name: WHITER
SegNbr: 1
RKM: 754.094
Description: White River, Wenatchee River Basin
ReachMin: 0
ReachMax: 0

location_in_segment (new)

site_id: WHITER
loc_id: 777 (from location table)
seg_id: 357 (from river_segment table)
site_type: riverbed (Adult fish facility, dam, fish hatchery, highway bridge, diversion screens, fish trap, hybrid, island, riverbed, juvenile bypass)
site_description: natural environment
locality_radius: 500
general_locality_site:
km_in_reach: 0
km_total: 0

activity_location (new)

site_code: WHITER
site_id: WHITER (key to location-in-segment)
activity_category: hands-on (hands-on, remote)
activity_code: release (one record for each activity)
activity_suffix: (con or non continuous flow)
contact_id: -1
activity_loc_description: White River, Wenatchee River Basin
from_km: 0
to_km: 0
from_date: 01/01/2009 (from Data > Reports > Interactive > Interrogation sites)
to_date:

update

Please update the definition with the following values.

Updates to White River (WHITER)
Parent offset: 90km
RKM: 754.090
HUC: 17020011

The ALRS utility was unable to make changes to this row in the river_segment table. It gave the error that the row had been deleted by another user. I tried to use eclipse to edit the row and it gave the error:

com.ingres.gcf.util.SqlEx: ADF routine found DB_DATA_VALUE with an invalid length.

I was able to make the changes with plain sql statements like this:

update river_segment set river_km = '754.090' where seg_id = '357';
update river_segment set huc_code='17020011' where seg_id = '357';
Personal tools