Best Python code snippet using localstack_python
ows.py
Source:ows.py
...122 srs=res.native_srs,123 bbox=res.bounding_box,124 schema=namespace + '/' + res.slug125 )126 def list_stored_queries(self, request):127 """list all the queries associated with drivers"""128 sq = super(WFSAdapter, self).list_stored_queries(request)129 return sq130 def get_features(self, request, parms):131 if parms.cleaned_data['stored_query_id']:132 squid = "SQ_" + parms.cleaned_data['stored_query_id']133 slug = parms.cleaned_data['type_names'] if isinstance(parms.cleaned_data['type_names'], basestring) else \134 parms.cleaned_data['type_names'][0]135 try:136 return models.DataResource.driver_instance.query_operation(squid)(request, **parms.cleaned_data)137 except:138 raise wfs.OperationNotSupported.at('GetFeatures', 'stored_query_id={squid}'.format(squid=squid))139 else:140 return self.AdHocQuery(request, **parms.cleaned_data)141 def AdHocQuery(self, req,142 type_names=None,...
wfs_helper.py
Source:wfs_helper.py
...16 """ Sets the urls for the wfs 1.1.0 version."""17 pass18 def set_2_0_0_urls(self):19 """ Sets the urls for the wfs 2.0.0 version."""20 self.list_stored_queries = self.get_list_stored_queries()21 def set_2_0_2_urls(self):22 """ Sets the urls for the wfs 2.0.2 version."""23 self.list_stored_queries = self.get_list_stored_queries()24 def get_get_capabilities_url(self):25 """ Creates the url for the wfs GetCapabilities request.26 Returns:27 str: URL for GetCapabilities request.28 """29 uri = self.parent_service.operation_urls.filter(30 operation=OGCOperationEnum.GET_CAPABILITIES.value,31 method="Get"32 )33 uri = uri.first()34 if uri is None:35 return36 uri = uri.url37 request_type = OGCOperationEnum.GET_CAPABILITIES.value38 service_version = self.parent_service.service_type.version39 service_type = OGCServiceEnum.WFS.value40 queries = [41 ('REQUEST', request_type),42 ('VERSION', service_version),43 ('SERVICE', service_type)44 ]45 url = UrlHelper.build(uri, queries)46 return url47 def get_list_stored_queries(self):48 """ Creates the url for the wfs ListStoredQueries request.49 Returns:50 str: URL for ListStoredQueries request.51 """52 uri = self.service.operation_urls.filter(53 operation=OGCOperationEnum.LIST_STORED_QUERIES.value,54 method="Get"55 ).first()56 if uri is None:57 return58 uri = uri.url59 request_type = OGCOperationEnum.LIST_STORED_QUERIES.value60 service_version = self.service.service_type.version61 service_type = OGCServiceEnum.WFS.value...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!