Skip to content

Commit 27640ae

Browse files
authored
Merge pull request #108 from gicait/dev
advertise featurestore option close #81
2 parents 2c65f9f + 25749bc commit 27640ae

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

geo/Geoserver.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -1974,6 +1974,7 @@ def publish_featurestore(
19741974
pg_table: str,
19751975
workspace: Optional[str] = None,
19761976
title: Optional[str] = None,
1977+
advertised: Optional[bool] = True,
19771978
):
19781979
"""
19791980
@@ -1983,6 +1984,7 @@ def publish_featurestore(
19831984
pg_table : str
19841985
workspace : str, optional
19851986
title : str, optional
1987+
advertised : bool, optional
19861988
19871989
Returns
19881990
-------
@@ -2003,8 +2005,12 @@ def publish_featurestore(
20032005
)
20042006

20052007
layer_xml = (
2006-
"<featureType><name>{}</name><title>{}</title></featureType>".format(
2007-
pg_table, title
2008+
"""<featureType>
2009+
<name>{0}</name>
2010+
<title>{1}</title>
2011+
<advertised>{2}</advertised>
2012+
</featureType>""".format(
2013+
pg_table, title, advertised
20082014
)
20092015
)
20102016
headers = {"content-type": "text/xml"}

0 commit comments

Comments
 (0)