# From http://eric.clst.org/Stuff/USGeoJSON and
# https://en.wikipedia.org/wiki/List_of_United_States_counties_and_county_equivalents
nycounties <- geojsonio::geojson_read("json/nycounties.geojson",
我正在嘗試將彈性搜索中的geoshape查詢集成到我的angularjs代碼中,以便發出http請求來獲取駐留在elasticsearch本地實例上的數據,但控制檯拋出錯誤無效XMLhttp參數。我想這與我如何將URL添加到geojson有關。以下是我在哪裏創建http請求 function spatialsearch() {
var _url = '127.0.0.1:9201/_
下面我有我期望的方法來創建一個帶有一個多邊形的GeoJSON MultiPolygon object,其中有兩個「孔」。 當我使用服務http://geojson.io/驗證此對象時,它返回錯誤each element in a position must be a number並且它不呈現,但是,如果我刪除「洞」巢,刪除其中一個然後它的工作。 我正在尋找一種方法來描述多邊形可以有多個孔的Mult