geojson

Using Elastic Search Geo Functionality To Find Most Common Locations?

╄→尐↘猪︶ㄣ 提交于 2020-01-14 04:54:05
问题 I have a geojson file containing a list of locations each with a longitude, latitude and timestamp. Note the longitudes and latitudes are multiplied by 10000000. { "locations" : [ { "timestampMs" : "1461820561530", "latitudeE7" : -378107308, "longitudeE7" : 1449654070, "accuracy" : 35, "junk_i_want_to_save_but_ignore" : [ { .. } ] }, { "timestampMs" : "1461820455813", "latitudeE7" : -378107279, "longitudeE7" : 1449673809, "accuracy" : 33 }, { "timestampMs" : "1461820281089", "latitudeE7" :

How to display geojson data with meters on javascript google map API

狂风中的少年 提交于 2020-01-14 03:35:07
问题 GeoJson file coordinates are in [X, Y] meters not in [lng, lat]. How to display it on google map? GeoJson data { "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 360590, 555610 ], [ 360590, 555555.0128 ], [ 360590, 555540 ], [ 360592.4439, 555540 ], [ 360600, 555540 ], [ 360600, 555518.8277 ] ] ] ] } } ] } here, [360590, 555610] - [X, Y] coordinates is in meters, Now we need to display this coordinates on google map,

How to use Leaflet flyTo() with unproject() and GeoJSON data on a large raster image?

假装没事ソ 提交于 2020-01-14 03:18:07
问题 I'm building a story map with Leaflet using a large image sliced into tiles rather than 'real world' map data. I'm using this plugin: https://commenthol.github.io/leaflet-rastercoords/ and this repo: https://github.com/jackdougherty/leaflet-storymap Loading my GeoJSON data and unprojecting the coordinates correctly plots them on my image map: $.getJSON('map.geojson', function(data) { var geojson = L.geoJson(data, { // correctly map the geojson coordinates on the image coordsToLatLng: function

Export leaflet map to geojson

穿精又带淫゛_ 提交于 2020-01-13 10:14:10
问题 Is it possible to export geojson from leaflet to save the map state? I want to store the markers, zoom & map center to load it later. There is plenty of ways to load geojson on leaflet, but I can't figure out any option to export the map to geojson... 回答1: There's no "out-of-the-box" option to export all the markers on the map to GeoJSON but it's something you can do easily do yourself. Leaflet's L.Marker has a toGeoJSON method: Returns a GeoJSON representation of the marker (GeoJSON Point

Export leaflet map to geojson

妖精的绣舞 提交于 2020-01-13 10:14:08
问题 Is it possible to export geojson from leaflet to save the map state? I want to store the markers, zoom & map center to load it later. There is plenty of ways to load geojson on leaflet, but I can't figure out any option to export the map to geojson... 回答1: There's no "out-of-the-box" option to export all the markers on the map to GeoJSON but it's something you can do easily do yourself. Leaflet's L.Marker has a toGeoJSON method: Returns a GeoJSON representation of the marker (GeoJSON Point

聊聊GIS数据的四个分层与GIS服务

时光怂恿深爱的人放手 提交于 2020-01-13 04:48:11
本篇不讨论矢量栅格数据的结构,也不讨论矢量与栅格的区别(即设定读者有这方面的基础)。 版权声明:原创。博客园/B站/小专栏/知乎/CSDN @秋意正寒 转载请标注原地址并声明转载: https://www.cnblogs.com/onsummer/p/12082568.html 本文系概念性很强的博客,但对GIS项目有帮助,对在读的学生也有一定帮助。 尽管从物理的角度,只有独立数据文件(shp、geojson、tif等)或者数据库(esri geodatabase的gdb、geopackage等)这两种 但是,从学科角度,即从GIS的视角看,地理数据并没有那么简单。 为解释简便,使用shapefile、geojson、tif栅格和gdb、postgis,辅助ArcMap/QGIS 3.10做解说。 1. 术语及概念定义 ① 地理数据 地理数据=空间数据+非空间数据;也叫地理信息。例如:一座医院;一所学校;一条道路;一条河流 ② 空间数据 即几何数据,描述坐标、形状的数据;也叫空间信息。例如:形状、坐标 ③ 非空间数据 即属性数据,描述与空间位置无关的一类数据。例如:成绩单、医院名称列表 这类数据的特点是,如果脱离了地理位置也有它本身自己的含义。 2. 矢量数据的四个分层 [暂空,过年前写完] 不妨这样想:每一层均为子一层的容器。大鱼吃小鱼,小鱼吃虾米。 2.1. 几何/属性层

Store GeoJSON polygons in MongoDB

两盒软妹~` 提交于 2020-01-12 03:33:10
问题 I have the following problem with MongoDB. I got some geo data from my home country and i have to store them into mongodb to set up a simple Web Feature Service. This service will mostly do bounding box queries using the $within operator. The data is in GeoJSON format. Therefore i imported at first the Villages and Cities which are represented as points ( [1,2] ) in this format. No problem. Next step rivers and streets which are LineStrings and according to GeoJSON represented this way [[1,2]

Store GeoJSON polygons in MongoDB

一曲冷凌霜 提交于 2020-01-12 03:32:09
问题 I have the following problem with MongoDB. I got some geo data from my home country and i have to store them into mongodb to set up a simple Web Feature Service. This service will mostly do bounding box queries using the $within operator. The data is in GeoJSON format. Therefore i imported at first the Villages and Cities which are represented as points ( [1,2] ) in this format. No problem. Next step rivers and streets which are LineStrings and according to GeoJSON represented this way [[1,2]

Export geoJSON data from Google Maps

别说谁变了你拦得住时间么 提交于 2020-01-12 02:37:07
问题 Is there built-in support or any library to export geoJSON data from the google.maps.Data layer or google.maps.Data.Feature or google.maps.Data.Geometry or even using Marker , Polyline and Polygon .I have code like this,for example: var point=new google.maps.Data.Point(m.getPosition()); activeFeature.setGeometry(point); console.log(activeFeature.getGeometry()); equiLayer.add(activeFeature); I would like to export this data to the server as geojson.Something like the toGeoJson method in

How to set the radius of a circle marker to be proportional to an attribute value?

天大地大妈咪最大 提交于 2020-01-11 14:31:07
问题 So I am making a Leaflet map. I am using a json which lists countries as Latlng points, and their corresponding attribute (called CTH values). I am trying to use this value to set the radius of circle markers on these Latlng points, but I am struggling to figure out how. This is what I've written function addCTHValueMarkers () { CTHValueLayer = L.geoJSON(CTHValue, { pointToLayer: function (feature, latlng) { return new L.circleMarker(latlng, { fillOpacity: 0.6, radius: setRadius(feature