-
Notifications
You must be signed in to change notification settings - Fork 0
Endpoints
If a new end_point type needs to be created, do the following
-
Add a new End_Point_Type to 'geoportal_manager/resources/models.py' with a 2 character abbreviation and long name
-
From the Terminal run
python manage.py makemigrationspython manage.py migrate -
Create file collection class for processing the file. This script will load the end_point, loop over the layers and create the parent and child records as appropriate. Follow one of the other custom FileCollection##.py files in the geoportal_manager/resources/harvester/ folder for guidance.
-
Create file parser class to parse the json file. Follow one of the other custom FileParser##.py files in the geoportal_manager/resources/harvester/ folder for guidance. For ArcGIS Map Services, the FilePArse_ARC may already be equipped for your needs.
-
Update the geoportal_manager/resources/harvester/FileManager.py file:
- Add lines to import both the new FileCollection and FileParser scripts
- Update the load method to include an 'elif'
Endpoint Logos
Adding an endpoint logo to appear beside listings can be done by including an absolute path to an image online.