Skip to content

Commit dbd25d7

Browse files
committed
Fallback to service_name if wfs service title is undefined
1 parent d32f669 commit dbd25d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/config_generator/capabilities_reader.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,8 @@ def read_wfs_service_capabilities(self, service_name, item):
506506
service_title = root.find('%sServiceIdentification/%sTitle' % (np_ows, np_ows), ns)
507507
if service_title is not None:
508508
capabilities['title'] = service_title.text
509+
if capabilities['title'] == "Untitled":
510+
capabilities['title'] = re.sub('.*/', '', service_name)
509511

510512
# get service abstract
511513
service_abstract = root.find('%sServiceIdentification/%sAbstract' % (np_ows, np_ows), ns)

0 commit comments

Comments
 (0)