Skip to content

Commit

Permalink
feat: working updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobdadams committed Oct 30, 2023
1 parent 6bbcd22 commit d5820d0
Show file tree
Hide file tree
Showing 6 changed files with 1,233 additions and 23 deletions.
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": false
}
]
}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
keywords=['gis'],
install_requires=[
# 'arcgis==2.1.*',
'ugrc-palletjack==3.*',
'ugrc-palletjack==4.*',
'agrc-supervisor==3.0.*',
],
extras_require={
Expand Down
53 changes: 43 additions & 10 deletions src/nfhl/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,54 @@
import logging
import socket

SKID_NAME = ''
SKID_NAME = 'nfhl_skid'

AGOL_ORG = 'https://utah.maps.arcgis.com'
AGOL_ORG = 'https://utah-em.maps.arcgis.com'
SENDGRID_SETTINGS = { #: Settings for SendGridHandler
'from_address': 'noreply@utah.gov',
'to_addresses': '',
'to_addresses': 'jdadams@utah.gov',
'prefix': f'{SKID_NAME} on {socket.gethostname()}: ',
}
LOG_LEVEL = logging.DEBUG
LOG_LEVEL = logging.INFO
LOG_FILE_NAME = 'log'

FEATURE_LAYER_ITEMID = ''
JOIN_COLUMN = ''
ATTACHMENT_LINK_COLUMN = ''
ATTACHMENT_PATH_COLUMN = ''
FIELDS = {

TIMEOUT = 20
SERVICE_URL = 'https://hazards.fema.gov/gis/nfhl/rest/services/public/NFHL/MapServer'
FEMA_LAYERS = {
# 'S_LOMR': {
# 'number': 1,
# 'itemid': '647c5dfc31044b0aba7611f0b7b3ed62',
# 'name': 'S_LOMR',
# 'date_fields': ['eff_date']
# },
# 'S_FIRM_Pan': {
# 'number': 3,
# 'itemid': 'cb041caea3ad4b48bef4502e10e14368',
# 'name': 'S_FIRM_Pan',
# 'date_fields': ['pre_date', 'eff_date']
# },
# 'S_XS': {
# 'number': 14,
# 'itemid': '4c87be2e986643e2b82b787d630c83a6',
# 'name': 'S_XS',
# 'double_fields': ['stream_stn', 'wsel_reg', 'strmbed_el'],
# 'int_fields': ['seq']
# },
# 'S_BFE': {
# 'number': 16,
# 'itemid': '8cab946b96d94167bd75314c32584d1a',
# 'name': 'S_BFE',
# 'double_fields': ['elev']
# },
# 'S_Wtr_Ln': {
# 'number': 20,
# 'itemid': 'f784f6c8b32a4f7abe180c4e37ffb8d6',
# 'name': 'S_Wtr_Ln',
# },
'S_Fld_Haz_Ar': {
'number': 28,
'itemid': 'b2c606f13a4c4a59b3c253647883833f',
'name': 'S_Fld_Haz_Ar',
'double_fields': ['static_bfe', 'depth', 'velocity', 'bfe_revert', 'dep_revert'],
},
}
Loading

0 comments on commit d5820d0

Please sign in to comment.