bcgov / BCHeritage

Branch level repository for documentation and product issues.
Apache License 2.0
4 stars 0 forks source link

Implement replication of BCRHP data to Data BC #708

Closed bferguso closed 2 months ago

bferguso commented 10 months ago

Need to replace the current replication process of the BCRHP data from HRIA with a new process from Arches

Some issues/questions that have come up in the implementation:

Epic

This view is now less restrictive to allow a larger dataset to be used by RAAD. Data BC to apply additional filters. Filter for the view is:

bcrhp_submission_status in ('Approved - Basic Record','Approved - Full Record')
and registration_status in ('Federal Jurisdiction', 'Recorded/Unprotected', 'Registered', 'Legacy')
and not restricted
bferguso commented 9 months ago
So far we have the following. I will update as we progress: column_name datatype nullable default
site_id uuid
borden_number text
is_officially_recognized text
registration_status text
common_name text
other_name text
parcel_id text
street_address text
city text
province text
locality text
location_description text
government_name text
government_level text
protection_type text
protection_start_date date
reference_number text
construction_date numeric
construction_date_qualifier text
significance_type text
physical_description text
heritage_value text
defining_elements text
document_location text
architect_name text
builder_name text
current_function text
historic_function text
dimensions_area_sqm numeric(19,2)
gis_latitude numeric(10,6)
gis_longitude numeric(10,6)
utm_zone numeric(2,0)
utm_northing numeric(10,0)
utm_easting numeric(10,0)
site_url text
site_boundary geometry
emjohnst commented 9 months ago

@bferguso

bferguso commented 8 months ago

@emjohnst - Updated the table definition in my comment above and added a comment to the unchecked task in your last comment. I will send you a spreadsheet by email of the data exposed by the view for your review.

emjohnst commented 8 months ago

@bferguso reviewed the data exposed view and have a couple questions/edits, some of these may just be data issues: @bferguso I'm updating this comment with some additions as of Feb 1:

Data Questions

bferguso commented 8 months ago

For point 1 above:

  1. I believe this filter is done on the DataBC side, I'm not sure we need to do it in our views. ok
  2. I'm currently filtering records by:
    • [x] BCRHP Submission Status in: ('Approved - Basic Record','Approved - Full Record')
    • [x] Registration Status in ('Federal Jurisdiction', 'Legacy', 'Registered') - Please remove Legacy sites and add Recorded/Unprotected
  3. For the multi-line SoS information - what kind of formats do you want? They're currently stored as HTML for the rich formatting. What is the desired output in the view? Just text, ideally no <,> characters
bferguso commented 8 months ago

Current data maximum column lengths. Some fields are numbers - We can work on scale and precision:

[2024-02-06 12:49:47] site_id: 36
[2024-02-06 12:49:47] borden_number: 9
[2024-02-06 12:49:47] is_officially_recognized: 1
[2024-02-06 12:49:47] registration_status: 20
[2024-02-06 12:49:47] common_name: 120
[2024-02-06 12:49:47] other_name: 311
[2024-02-06 12:49:47] parcel_id: 9
[2024-02-06 12:49:47] street_address: 33
[2024-02-06 12:49:47] city: 50
[2024-02-06 12:49:47] province: 16
[2024-02-06 12:49:47] locality: 416
[2024-02-06 12:49:47] location_description: 1925
[2024-02-06 12:49:47] government_name: 38
[2024-02-06 12:49:47] government_level: 10
[2024-02-06 12:49:47] protection_type: 34
[2024-02-06 12:49:47] protection_start_date: 4
[2024-02-06 12:49:47] reference_number: 25
[2024-02-06 12:49:47] construction_date: 4
[2024-02-06 12:49:47] construction_date_qualifier: 5
[2024-02-06 12:49:47] significance_type: 16
[2024-02-06 12:49:47] physical_description: 1336
[2024-02-06 12:49:47] heritage_value: 3988
[2024-02-06 12:49:47] defining_elements: 3961
[2024-02-06 12:49:47] document_location: 300
[2024-02-06 12:49:47] architect_name: 106
[2024-02-06 12:49:47] builder_name: 80
[2024-02-06 12:49:47] current_function: 133
[2024-02-06 12:49:47] historic_function: 138
[2024-02-06 12:49:47] dimensions_area_sqm: 18
[2024-02-06 12:49:47] gis_latitude: 18
[2024-02-06 12:49:47] gis_longitude: 19
[2024-02-06 12:49:47] utm_zone: 2
[2024-02-06 12:49:47] utm_northing: 7
[2024-02-06 12:49:47] utm_easting: 7
[2024-02-06 12:49:47] site_url: 80