根据[纬度,经度,密度]的给定数据集生成KML热图 [英] Generating a KML heatmap from given data set of [lat, lon, density]

查看:97
本文介绍了根据[纬度,经度,密度]的给定数据集生成KML热图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个静态的KML(Google地球标记)文件,该文件以[纬度,经度,密度]元组的形式显示一些给定数据集的热图样式渲染.

我拥有一个非常简单的数据集,用于人口密度.

我的要求是:

  • 必须能够输入给定纬度,经度的数据
  • 必须能够指定该纬度lon处的数据密度
  • 必须导出到KML

该要求与该项目的语言无关,因为我将离线生成这些文件以构建在其他地方使用的KML.

我查看了一些项目,其中最著名的是 heatmap.py ,它是<具有KML导出功能的Python中的href ="http://code.google.com/p/gheat/" rel ="nofollow noreferrer"> gheat .从某种意义上说,我碰到了一堵砖墙,因为到目前为止,我发现的项目都依赖于根据输入到算法中的纬度,经度点的密度来构建热图.

如果我缺少一种明显的方式来使我的数据集仅输入[lat,lon]元组,但是使用我拥有的密度值来调整如何输入它们,我很想知道!

解决方案

嘿,威尔, heatmap.py 是我.您的要求是足够的,并且在我要解决的事情清单上.我还不确定如何以一般方式进行操作;用heatmap.py的话来说,使用每个点dotsize而不是像现在这样使用全局点大小将是很简单的,但是我不确定这是否能满足真正的需求.我的目标是2010年夏季发布,但您可以自己制作此mod.

您可以尝试搜索内核密度估算器工具;这就是统计学家所说的热图. R 具有一些不错的内置工具,可以更快地满足您的需求. /p>

祝你好运!

I am looking to build a static KML (Google Earth markup) file which displays a heatmap-style rendering of a few given data sets in the form of [lat, lon, density] tuples.

A very straightforward data set I have is for population density.

My requirements are:

  • Must be able to feed in data for a given lat, lon
  • Must be able to specify the density of the data at that lat, lon
  • Must export to KML

The requirements are language agnostic for this project as I will be generating these files offline in order to build the KML used elsewhere.

I have looked at a few projects, most notably heatmap.py, which is a port of gheat in Python with KML export. I have hit a brick wall in the sense that the projects I have found to date all rely on building the heatmap from the density of [lat, lon] points fed into the algorithm.

If I am missing an obvious way to adapt my data set to feed in just the [lat, lon] tuples but adjusting how I feed them using the density values I have, I would love to know!

解决方案

Hey Will, heatmap.py is me. Your request is a common-enough one and is on my list of things to address. I'm not quite sure yet how to do so in a general fashion; in heatmap.py parlance, it would be straightforward to have a per-point dotsize instead of a global dotsize as it is now, but I'm not sure that will address the true need. I'm aiming for a summer 2010 release, but you could probably make this mod yourself.

You may try searching for Kernel Density Estimator tools; that's what the statisticians call heatmaps. R has some good built-in tools you can use that might satisfy your need more quickly.

good luck!

这篇关于根据[纬度,经度,密度]的给定数据集生成KML热图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆