コード例 #1
0
    def _construct(self):
        NGWResource._construct(self)
        self.ngw_wms_connection_url = None
        self.ngw_wms_layers = []

        wms_layer_desc = self._json.get(self.type_id, {})
        wms_connection_id = wms_layer_desc.get("connection", {}).get("id")
        if wms_connection_id is not None:
            wms_connection = self._res_factory.get_resource(wms_connection_id)
            self.ngw_wms_connection_url = wms_connection.get_connection_url()
        self.ngw_wms_layers = wms_layer_desc.get("wmslayers").split(",")
コード例 #2
0
 def _construct(self):
     NGWResource._construct(self)
     #wfsserver_service
     self.wfs = DICT_TO_OBJ(self._json['wfsserver_service'])
     if self.wfs.layers:
         self.wfs.layers = LIST_DICT_TO_LIST_OBJ(self.wfs.layers)
コード例 #3
0
 def _construct(self):
     NGWResource._construct(self)
     #wfsserver_service
     self.wfs = DICT_TO_OBJ(self._json[self.type_id])
     if hasattr(self.wfs, "layers"):
         self.wfs.layers = LIST_DICT_TO_LIST_OBJ(self.wfs.layers)