Beispiel #1
0
    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)
Beispiel #2
0
 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) 
Beispiel #3
0
    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) 
Beispiel #4
0
    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) 
            
Beispiel #5
0
 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)
Beispiel #6
0
 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) 
Beispiel #7
0
 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)
Beispiel #8
0
 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)
Beispiel #9
0
 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)
Beispiel #10
0
 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)
Beispiel #11
0
 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) 
Beispiel #12
0
 def __init__(self, service):
     Request.__init__(self, service)
     self.callback = None
Beispiel #13
0
 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) 
         
Beispiel #14
0
 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)     
Beispiel #15
0
 def __init__(self, service):
     Request.__init__(self, service)
     self.callback = None