久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <i id='bHNt3'><tr id='bHNt3'><dt id='bHNt3'><q id='bHNt3'><span id='bHNt3'><b id='bHNt3'><form id='bHNt3'><ins id='bHNt3'></ins><ul id='bHNt3'></ul><sub id='bHNt3'></sub></form><legend id='bHNt3'></legend><bdo id='bHNt3'><pre id='bHNt3'><center id='bHNt3'></center></pre></bdo></b><th id='bHNt3'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='bHNt3'><tfoot id='bHNt3'></tfoot><dl id='bHNt3'><fieldset id='bHNt3'></fieldset></dl></div>
      <bdo id='bHNt3'></bdo><ul id='bHNt3'></ul>

    <small id='bHNt3'></small><noframes id='bHNt3'>

      1. <legend id='bHNt3'><style id='bHNt3'><dir id='bHNt3'><q id='bHNt3'></q></dir></style></legend>

        <tfoot id='bHNt3'></tfoot>

        如何在mysql查詢中找到所選對角線區(qū)域之間的準確

        how to find exactly data between selected diagonal area in mysql query(如何在mysql查詢中找到所選對角線區(qū)域之間的準確數(shù)據(jù))

        <small id='zCttR'></small><noframes id='zCttR'>

        <tfoot id='zCttR'></tfoot>
            <i id='zCttR'><tr id='zCttR'><dt id='zCttR'><q id='zCttR'><span id='zCttR'><b id='zCttR'><form id='zCttR'><ins id='zCttR'></ins><ul id='zCttR'></ul><sub id='zCttR'></sub></form><legend id='zCttR'></legend><bdo id='zCttR'><pre id='zCttR'><center id='zCttR'></center></pre></bdo></b><th id='zCttR'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='zCttR'><tfoot id='zCttR'></tfoot><dl id='zCttR'><fieldset id='zCttR'></fieldset></dl></div>

              • <bdo id='zCttR'></bdo><ul id='zCttR'></ul>
                    <tbody id='zCttR'></tbody>

                • <legend id='zCttR'><style id='zCttR'><dir id='zCttR'><q id='zCttR'></q></dir></style></legend>

                  本文介紹了如何在mysql查詢中找到所選對角線區(qū)域之間的準確數(shù)據(jù)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  這些是我選擇的對角線點的坐標,選擇的點越多就會越多.

                  These are my coordinates of Selected diagonal points, will be more when selected points are more.

                  1: 25.312063043186914  2: 55.30672073364258
                  1: 25.24096949112138   2: 55.40525436401367
                  1: 25.224509592006314  2: 55.3462028503418
                  1: 25.22513076073063   2: 55.281314849853516
                  1: 25.27822894908031   2: 55.25899887084961
                  

                  下面是我當前的 mysql 查詢在選定的對角線之間沒有給我完美的結果.有幫助嗎??

                  below is my current mysql query not giving me perfect result between selected diagonal.any help??

                  SELECT 
                    * 
                  FROM
                    tbl_custom 
                  WHERE latitude <= 25.312063043186914 
                    AND latitude >= 25.224509592006314 
                    AND longitude <= 55.40525436401367 
                    AND longitude >= 55.25899887084961 
                  

                  推薦答案

                  要消除邊界框查詢內(nèi)但不在多邊形內(nèi)的點,您需要使用 多邊形中的點 算法.

                  To eliminate the points within your bounding box query but not within polygon you require to use Point in Polygon algorithm.

                  最簡單的方法是使用數(shù)組中的坐標.這些可用于查找查詢的最大和最小坐標以及 pointInPolygon() 函數(shù)的參數(shù).

                  The easiest way to do this is to have the coordinates in arrays. These can be used to find max and min coordinates for the query and for parameters for pointInPolygon() function.

                  function pointInPolygon(polySides,polyX,polyY,x,y) {
                   var j = polySides-1 ;
                    oddNodes = 0;
                    for (i=0; i<polySides; i++) {
                      if (polyY[i]<y && polyY[j]>=y  ||  polyY[j]<y && polyY[i]>=y) {
                          if (polyX[i]+(y-polyY[i])/(polyY[j]-polyY[i])*(polyX[j]-polyX[i])<x)  {
                              oddNodes=!oddNodes; 
                          }
                      }
                     j=i; }
                  
                    return oddNodes;
                  }
                  

                  在您的地圖代碼中使用 jQuery getJSON()

                  In your Map code using jQuery getJSON()

                  var polySides = 4;//number of points in polygon
                  //horizontal Latitude coordinates of polygon  
                  var polyLat = new Array();
                  polyLat[0] = 51.5;
                  polyLat[1] = 51.5;
                  polyLat[2] = 52.5;
                  polyLat[3] = 53;
                  polyLat[4] = 51.5;//First point repeated to close polygon
                  //vertical Longitude coordinates of polygon 
                  var polyLng =  new Array();
                  polyLng[0] = 0.5;
                  polyLng[1] = -1.9;
                  polyLng[2] = -1;
                  polyLng[3] = 0.6;
                  polyLng[4] = 0.5;
                  //Coordinates for bounding box
                  var maxLat = Math.max.apply(null,polyLat);
                  var minLat = Math.min.apply(null,polyLat);
                  var maxLng = Math.max.apply(null,polyLng);
                  var minLng = Math.min.apply(null,polyLng);
                  
                  //Using jQuery
                  var url = "yourFile .php";
                   url +="?maxLat="+maxLat +"&minLat="+minLat +"&maxLng="+maxLng +"&minLng="+minLng;
                   $.getJSON(url,function(data) {
                      $.each(data.marker,function(i,dat){
                          if (pointInPolygon(polySides,polyLat,polyLng,dat.lat,dat.lng)){
                              var latlng = new google.maps.LatLng(dat.lat,dat.lng); 
                              addMarker(latlng,dat.name);
                              bounds.extend(latlng);
                          }
                      });
                      map.fitBounds(bounds);
                  });
                  

                  使用邊界框和多邊形中的點獲得的地圖.

                  Map obtained using Bounding Box and Point in Polygon.

                  這篇關于如何在mysql查詢中找到所選對角線區(qū)域之間的準確數(shù)據(jù)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅(qū)動程序)
                    <bdo id='PWsM6'></bdo><ul id='PWsM6'></ul>

                      <legend id='PWsM6'><style id='PWsM6'><dir id='PWsM6'><q id='PWsM6'></q></dir></style></legend>
                        <tbody id='PWsM6'></tbody>
                    1. <i id='PWsM6'><tr id='PWsM6'><dt id='PWsM6'><q id='PWsM6'><span id='PWsM6'><b id='PWsM6'><form id='PWsM6'><ins id='PWsM6'></ins><ul id='PWsM6'></ul><sub id='PWsM6'></sub></form><legend id='PWsM6'></legend><bdo id='PWsM6'><pre id='PWsM6'><center id='PWsM6'></center></pre></bdo></b><th id='PWsM6'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='PWsM6'><tfoot id='PWsM6'></tfoot><dl id='PWsM6'><fieldset id='PWsM6'></fieldset></dl></div>

                      • <small id='PWsM6'></small><noframes id='PWsM6'>

                          1. <tfoot id='PWsM6'></tfoot>
                            主站蜘蛛池模板: 日韩成人影院在线观看 | 成人性视频在线 | 久久av一区二区三区 | 久久最新精品视频 | 久久99精品久久久久婷婷 | 亚洲精品久久久蜜桃 | 啪一啪| 欧美精三区欧美精三区 | 亚洲欧美在线视频 | 日韩电影一区 | 精品国产乱码久久久 | 正在播放国产精品 | 欧美日韩国产一区二区 | 一区二区三区四区国产精品 | 亚洲一区二区三区在线免费 | 亚洲乱码一区二区三区在线观看 | 亚洲日本中文 | 中文字幕成人 | 国产精品美女久久久 | 亚洲人人 | 日韩精品免费在线观看 | 午夜在线精品偷拍 | 超碰人人做 | 欧美性久久 | 成人欧美一区二区三区视频xxx | 国产成人免费视频 | 国产亚洲欧美在线视频 | 激情五月婷婷在线 | 亚洲免费在线观看 | 国产精品爱久久久久久久 | 免费成人av | 国产免费一二三区 | 美女天堂 | 久久亚洲一区 | 日韩一区二区三区在线 | 国产91在线精品 | 偷拍第一页| 亚洲欧美中文日韩在线v日本 | 国产综合久久 | 国产欧美精品一区二区三区 | 欧美一级淫片免费视频黄 |