def parse(self, params, path_info, host, post_data, request_method): self.host = host try: self.get_layer(path_info, params) except NoLayerException: a = Action() if params.has_key('service') and params['service'] == 'WFS': for layer in self.service.datasources: self.datasources.append(layer) if params.has_key('request'): a.request = params['request'] else: a.request = "GetCapabilities" else: a.method = "metadata" self.actions.append(a) return wfsrequest = WFSRequest() Request.parse(self, params, path_info, host, post_data, request_method, format_obj=wfsrequest)
def parse(self, params, path_info, host, post_data, request_method): try: self.get_layer(path_info, params) except NoLayerException: ''' ''' kml = vectorformats.Formats.KML.KML(url=self.host, layername=self.datasources[0]) Request.parse(self, params, path_info, host, post_data, request_method, format_obj=kml)
def parse(self, params, path_info, host, post_data, request_method): try: self.get_layer(path_info, params) except NoLayerException: ''' ''' atom = vectorformats.Formats.GeoRSS.GeoRSS(url=self.host, feedname=self.datasources[0]) Request.parse(self, params, path_info, host, post_data, request_method, format_obj = atom)
def parse(self, params, path_info, host, post_data, request_method): kml = vectorformats.Formats.KML.KML(url=self.host, layername=self.datasource) Request.parse(self, params, path_info, host, post_data, request_method, format_obj=kml)
def parse(self, params, path_info, host, post_data, request_method): try: self.get_layer(path_info, params) except NoLayerException: action = Action() action.method = "metadata" self.host = host self.actions.append(action) return Request.parse(self, params, path_info, host, post_data, request_method)
def parse(self, params, path_info, host, post_data, request_method, format_obj=None): if 'callback' in params: self.callback = params['callback'] g = vectorformats.Formats.GeoJSON.GeoJSON() Request.parse(self, params, path_info, host, post_data, request_method, format_obj=g)
def parse(self, params, path_info, host, post_data, request_method): atom = vectorformats.Formats.GeoRSS.GeoRSS(url=self.host, feedname=self.datasource) Request.parse(self, params, path_info, host, post_data, request_method, format_obj=atom)
def parse(self, params, path_info, host, post_data, request_method): atom = vectorformats.Formats.GeoRSS.GeoRSS(url=self.host, feedname=self.datasource) Request.parse(self, params, path_info, host, post_data, request_method, format_obj = atom)