Workflow
The crawler CLI will bulk-download feature data from pre-defined sources. The sequence is a follows:
Sequence Diagram
Annotations
Launch CLI tool
Connect to NLDI master database, requesting the list of configured feature sources.
Returns a list of feature sources. The crawler can either: * list all sources and exit * Proceed to ‘crawl’ one of the sources in the table
For the identified feature source, make a GET request via HTTP. The URI is taken from the crawler_sources table.
The feature source returns GeoJSON. Among the returned data is a list of ‘features’.
[Per-Feature] Use the ORM to map the feature data to the schema reflected from the features table
[Per-Feature] Insert the new feature to the master NLDI database
“Relate” features – build the relationships matching features to their adjacent features in the NLDI topology.