Skip to content

Commit 7c5ba67

Browse files
committed
Adding some CV getter methods to read service.
1 parent e507236 commit 7c5ba67

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

src/api/ODM2/services/readService.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,46 @@ def __init__(self, session):
2424
# CV
2525
# ################################################################################
2626

27+
def getCVSamplingFeatureTypes(self):
28+
"""Select all on Sampling Features
2729
30+
:return CVSamplingFeatureType Objects:
31+
:type list:
32+
"""
33+
return self._session.query(CVSamplingFeatureType).all()
34+
35+
def getCVSiteTypes(self):
36+
"""Select all on Sampling Features
37+
38+
:return CVSiteType Objects:
39+
:type list:
40+
"""
41+
return self._session.query(CVSiteType).all()
42+
43+
def getCVSpacialReferenceTypes(self):
44+
"""Select all on SpatialReferences
45+
46+
:return CVSpacialReferenceType Objects:
47+
:type list:
48+
"""
49+
return self._session.query(SpatialReferences).all()
2850

51+
def getCVSamplingFeatureGeoTypes(self):
52+
"""Select all on Sampling Features
53+
54+
:return CVSamplingFeatureGeoType Objects:
55+
:type list:
56+
"""
57+
return self._session.query(CVSamplingFeatureGeoType).all()
58+
59+
def getCVElevationDatums(self):
60+
"""Select all on CVElevationDatum
61+
62+
:return CVElevationDatum Objects:
63+
:type list:
64+
"""
65+
return self._session.query(CVElevationDatum).all()
66+
2967

3068

3169
# ################################################################################

0 commit comments

Comments
 (0)