附近的土桥

proximityhash的Python项目详细描述


http://donatecoins.org/btc/1HeMeMU2qUFDRZpRQMJ2v27Dw3h3gShJ5b.svg

邻近HASH:Geohashes接近(用Georaptor压缩的选项)

geohash是gustavo niemeyer发明的一个地理编码系统,被置于公共领域。它是一个层次结构 空间数据结构将空间细分为网格形状的桶,这是 所谓的z阶曲线,通常是空间填充曲线。

^ {STR 1 } $接近HASH 生成一组覆盖中心区域和半径的GHHASH,覆盖圆形区域。 它还有一个附加选项,可以使用georaptor来创建跨各种类型的geohash的最佳组合 代表圆的级别,从最高级别开始迭代,直到酿制出最佳混合。结果 精度与起始geohash级别的精度相同,但数据大小会大大减小,从而提高 速度和性能。

使用量

$ proximityhash -h
usage: proximityhash [-h] [--georaptor GEORAPTOR] [--minlevel MINLEVEL]
                   [--maxlevel MAXLEVEL]
                   latitude longitude radius precision_level

positional arguments:
    latitude              latitude of the center point
    longitude             longitude of the center point
    radius                radius of coverage in metres
    precision_level       geohash precision level

optional arguments:
    -h, --help            show this help message and exit
    --georaptor GEORAPTOR georaptor flag to compress the output (default: false)
    --minlevel MINLEVEL   minimum level of geohash if georaptor set to true(default: 1)
    --maxlevel MAXLEVEL   maximum level of geohash if georaptor set to true(default: 12)

示例

$ proximityhash 48.858156 2.294776 1000 7
https://raw.github.com/ashwin711/proximityhash/master/images/proximityhash.png
$ proximityhash 48.858156 2.294776 2000 7 --georaptor true
https://raw.github.com/ashwin711/proximityhash/master/images/proximityhash_georaptor.png
$ proximityhash 48.858156 2.294776 2000 7 --georaptor true --minlevel 3 --maxlevel 6
https://raw.github.com/ashwin711/proximityhash/master/images/proximityhash_georaptor_limited.png

安装

安装近邻散列,简单地说:

$ pip install proximityhash

许可证:

在2.0版apache许可下授权。

 Copyright 2017 Ashwin Nair <https://www.linkedin.com/in/nairashwin7>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

贡献者:

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java在JSP中添加自定义隐式对象   java MasterMindResource泄漏?   不同的c#java结果加密   java为什么安卓 studio显示“constraintlayout中缺少约束”错误?   java Make Logback将日志打印到文件中   java如何在Google应用程序引擎中设置日期时间?   jeditorpane如何阻止java HTMLEditorKit自动关闭我的标记   返回到Activity onCreate()时,不会调用java函数   java为什么我在这个对象上得到一个NullPointerException?   在java中,如何使用包含数组的参数调用图形方法?   java如何在Play framework 2应用程序中存储Akka参与者列表?   ssh使用java将文件从一个solaris 9复制到另一个solaris 9   网络Java服务器正在等待客户端响应   java Spring mvc从formBackingObject()重定向到页面   java Spark:JavaRDD<Tuple2>到javapairdd<>   java如何动态调用基类中由字符串值指定的子类方法?