Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRA load failing #496

Open
smnorris opened this issue May 3, 2024 · 4 comments
Open

DRA load failing #496

smnorris opened this issue May 3, 2024 · 4 comments

Comments

@smnorris
Copy link
Owner

smnorris commented May 3, 2024

Scheduled loads are failing.

+ ogr2ogr -f PostgreSQL 'PG:***' --config PG_USE_COPY YES -lco GEOMETRY_NAME=geom -lco FID=transport_line_id -nln bcdata.transport_line /vsizip/tmp/dgtl_road_atlas.gdb.zip TRANSPORT_LINE
ERROR 1: Couldn't fetch requested layer 'TRANSPORT_LINE'!
Error: Process completed with exit code 1.

New data structure:

$ ogrinfo /vsizip/tmp/dgtl_road_atlas.gdb.zip
INFO: Open of `/vsizip/tmp/dgtl_road_atlas.gdb.zip'
      using driver `OpenFileGDB' successful.
Layer: VERSION (None)
Layer: DGTL_ROAD_ATLAS_MPAR_SP (Multi Line String)
Layer: DGTL_ROAD_ATLAS_DPAR_SP (Multi Line String)
@smnorris
Copy link
Owner Author

smnorris commented May 3, 2024

New layers have shortened, shapefile compatible names :(

@smnorris smnorris changed the title DRA download failing DRA load failing May 3, 2024
@smnorris
Copy link
Owner Author

smnorris commented May 3, 2024

@smnorris
Copy link
Owner Author

GeoBC confirms that what is currently posted is what we get:

the public DRA data model will not be changing any time soon. We will be updating the public data dictionary

This is unfortunate, given the shortened names in the posted data (that do not match the short names provided by the catalogue api) it is easier to just download from WFS using bcdata.

Download is straightforward but I'm not certain if it is simpler to update all DRA queries to use the new data model or add a script that maps WFS/BCGW column names to the existing column names based on the TRANSPORT_LINE layer.

@smnorris
Copy link
Owner Author

Current workaround is to use a cached DRA download from April, allowing modelled crossing rebuild with latest FTEN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant