diff --git a/pygeoapi/api/itemtypes.py b/pygeoapi/api/itemtypes.py index 042e26a..cb4ede8 100644 --- a/pygeoapi/api/itemtypes.py +++ b/pygeoapi/api/itemtypes.py @@ -576,7 +576,7 @@ def get_collection_items( content['missing_url'] = content['missing_url_href'] = "" content['requested_data_type'] = "polygons (default)" - content['preserve_attributes'] = "false (default)" + content['preserve_attributes'] = "true (default)" content['speckle_url'] = content['speckle_project_url'] = content['crs_authid'] = content['lat'] = content['lon'] = content['north_degrees'] = content['limit'] = "-" crsauthid = False for item in url_props: @@ -593,7 +593,7 @@ def get_collection_items( elif "preserveattributes=" in item: content['preserve_attributes'] = item.split("preserveattributes=")[1] if content['preserve_attributes'] not in ["true", "false"]: - content['preserve_attributes'] = "false (default)" + content['preserve_attributes'] = "true (default)" elif "crsauthid=" in item: content['crs_authid'] = item.split("crsauthid=")[1] crsauthid = True diff --git a/pygeoapi/provider/speckle.py b/pygeoapi/provider/speckle.py index 3442646..9273b12 100644 --- a/pygeoapi/provider/speckle.py +++ b/pygeoapi/provider/speckle.py @@ -125,7 +125,7 @@ class SpeckleProvider(BaseProvider): self.crs_dict = None self.requested_data_type: str = "polygons (default)" # points, lines, polygons, projectcomments - self.preserve_attributes: str = "false (default)" + self.preserve_attributes: str = "true (default)" self.lat: float = 48.76755913928929 #51.52486388756923 self.lon: float = 11.408741923664028 #0.1621445437168942 diff --git a/pygeoapi/provider/speckle_utils/url_utils.py b/pygeoapi/provider/speckle_utils/url_utils.py index 7365295..1f490c4 100644 --- a/pygeoapi/provider/speckle_utils/url_utils.py +++ b/pygeoapi/provider/speckle_utils/url_utils.py @@ -29,7 +29,7 @@ def get_set_url_parameters(self: "SpeckleProvider"): try: self.preserve_attributes = item.split("preserveattributes=")[1] if self.preserve_attributes not in ["true", "false"]: - self.preserve_attributes = "false (default)" + self.preserve_attributes = "true (default)" except: pass