首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > stcode

stcode

  • 资源大小:22.19 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

STCode is tiny library for spatio-temporal indexing by using string codes. It uses oct-tree and trie-based structure. It is deigned for data streams and for their effective online simplification. Example: ``` double lat = 50.12; //latitude double lon = 14.3; //longitude String date = "2001-07-04 12:08:56.23"; //time SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date d = df.parse(date); /** * Date is split to the minutes within two weeks * and start of this two weeks period from first Monday in 1970 */ STCodeTime sttime = new STCodeTime(d); Cube q1 = new Cube(lat, lon, (new STCodeTime(d)).getMinutes()); /** Print out STCode String */ System.out.println(q1.getCode()); /** Construct the Cube from the STCode String */ Cube q2 = new Cube(q1.getCode()); ``` The code look like this: m0Yu:Ws The default precision (7 characters long String) is about 100m in position and one minute in

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP