Page 776 - NGTU_paper_withoutVideo
P. 776

کیتاموئژ نیون یاهدربراک و اه یروآ نف یلم سنارفنک

                           "bbox":Object.values(map.getExtent().transform(map.projection, new
           OpenLayers.Projection("EPSG:4326"))).join()
                           }),
                       dataType: 'text',
                       success: function(result) {
                           $("#popup-identify").html(result)
                           $("#popup-identify").dialog({
                             modal: true
                             });
                       }
                   });
           }



                                           Identify  تيلباق یارب یکيفارگ هجيتن  5 -     لکش


                                                                               :    WMS  هيال یور وجتسج تيلباق ندوزفا

                         .دشاب یم   2,0,0  نآ نژرو هک دریکیم تروص   1 WFe  هیال طسوت وج و تسج .میسیونیم ارریز دک   views.py  تمسق رد
           def search(request):
               if request.user.is_authenticated():
                   data = json.load(request)
            SERVER = "http://127.0.0.1:8080/geoserver"
                   SERVICE = "wfs"
                   VERSION = "2.0.0"
                   REQUEST = "getfeature"
                   OUTPUTFORMAT = 'application/json'
                   query = data['q']
                   layer = data['layer']
                   workspace = data['workspace']
                   typeName = workspace + ":" + layer
                   CQL_FILTER = "NAME='" + query + "'"
              url_request = SERVER + "/" + SERVICE + "?" + "SERVICE=" + SERVICE + "&VERSION=" + VERSION + \
                                 "&REQUEST=" + REQUEST + "&OUTPUTFORMAT=" + OUTPUTFORMAT + "&typeName=" +
           typeName + \
                                 "&CQL_FILTER=" + CQL_FILTER
               UserOwnersOfLayer = layers.objects.filter(layer_name=layer).values_list("userOwner", flat=True)
                   if request.user.id in UserOwnersOfLayer:
                       resJSON = requests.get(url_request)
                   else:
                 resJSON = "Access Denied. Eror403!"

                   return HttpResponse(resJSON, content_type='text/html')
               else:
                   return HttpResponse("Access Denied. Eror403", content_type='text/html')
                                                    و
            کی دنا هدش تیاس دراو هک یناربراک یاربSearchbox   SearchBottun.مینک یم هفاضا
           {% if user.is_authenticated %}
               <button id="searchBtn" class="icon-top-right"></button>
               <input type="text" id="searchBox" pattern="[A-Za-z0-9]{1,20}"  />
           {% endif %}



           1  secSaWSI FStatWSa eSW
   771   772   773   774   775   776   777   778   779   780   781