kikita & Maps

GIS,spatial and artificial intellegence learning and share

这是一部老片。

年少无知的时候,看到题目《闻香识女人》,暗自以为这是一部有关调情高手的电影,完全无感,从此错过。

在没有很多电影可以走入内心的今天,翻看旧电影真的是种享受。竟然有几句台词可以让我记住和感动。


Now I’ve come to the crossroad in my life. I always knew what the right path was. Without exception. I knew, but I never took it. You know why. It’s was too damn hard.


But there is nothing like the sight of an amputated spirit. There is no prosthetic for that.


我虽不是很相信人有灵魂,但我确信看到过人性的高贵。

说到免费开放的数据,自然会想到 Open Street Map,这里分享下在 ArcGIS 产品线中osm数据的使用实践。

环境:ArcGIS Desktop 10.6, Esri CityEngine 2017.1

在ArcMap中使用osm数据

一般情况下,我们可以在 Open Street Map 官网可以通过指定范围直接下载osm格式数据,然后在 ArcMap中直接读取。如下,以Esri中国所在的金泰大厦为中心的数据:

ArcMap直读OSM

osm数据是基于xml的数据格式,ArcMap不能直接编辑。如果希望导入地理数据库中编辑,可以利用插件,这是Esri额外提供的一个桌面端的免费开源的osm插件,ArcGIS Editor for OSM 10.6.x Desktop。 通过这个插件可以下载、更新OSM数据有关这个插件的源码、文档,可以在Github上获得。

OSM is an XML-based format used to describe vector data in a map. It defines three basic data types—nodes, ways, and closed ways—which are used to describe all the other elements:

  • Nodes—Points between which segments are drawn.
  • Ways—Ordered list of nodes, displayed as connected by line segments in the editor.
  • Closed Ways—Ways that go in a complete loop. They are used to describe areas such as parks, lakes, or islands.

以前10.3年代的时候,整理过一次简单的说明,点这里直达。通过测试,相同的网络环境下,官网下载osm数据,之后再使用 Load OSM File 导入GDB,效率明显优于直接使用 Download OSM Data导入GDB。

在CityEngine中使用osm数据

Read more »

​ CityEngine 中的Map Layer可以参与到批量建模当中,根据角色的不同可以分为Terrain,Texture,Obstacle,Mapping,Function几个类型的图层。

Terrain Map Layer

​ 顾名思义,用于表示场景的地表结构和底图图层,这个图层可以由一个DEM和一个影像共同构成。 这类图层在创建的时候,可以设置影像取值的通道、高程的拉伸范围、影像的尺寸、锚点位置、偏移量等参数。

​ 在图层创建之后,我们可以看到属性窗口中,有这样一段代码表述了上面的一些设置:

1
attr elevation = map_01(brightness, 0.0, 150.0) + elevationDelta

这时,有个疑问,elevationDelta 是什么?如何体现出来的?带着这个疑问我们来看看CE对于场景高程的作用机制。

导入CE场景中的道路线数据一般被识别为Graph Segment,静态模型一般为Static Shape,这两种类型数据可以通过 Align graph to terrain,Align shapes to terrain 来向地形数据对齐。在实际应用中,很多建筑物或道路的底面是个平面,需要将地形整平到与模型底面完美贴合,这时再使用工具 Align terrain to shape 来解决这个问题。

这时保存场景,在CE的工程目录的data文件夹下,就会出现一个场景同名的文件夹,并在其下自动生成一个16bit的栅格数据,储存地形变化量,这个栅格数据即为 elevationDelta。当预览数据时,从渲染方案上可以得到直观印象,灰色为无变化,黑色为减低,白色为增加。

在开始如下部署之前,一定要注意下版本对应的情况,否则会部署失败:

版本
Portal 10.6 Portal 10.5.1 Portal 10.5 Portal10.4.1
Pro 2.1 LM 10.6 不支持 不支持 不支持
Pro 2.0 LM 10.6 LM 10.5.1、10.6 LM 10.5.1、10.6 不支持
Pro 1.4 LM 10.6 LM 10.5.1、10.6 LM 10.5、10.5.1、10.6 LM 10.4.1

LM : License Manager, Portal: Portal for ArcGIS; Pro: ArcGIS Pro


如果您购买并已经部署了 Portal for ArcGIS,搭建了您的组织门户, 并且您希望在内网环境中通过 Named User 方式使用 ArcGIS Pro,那么您可以选择通过Portal for ArcGIS为组织成员配置Named User许可的方式。

1 为组织配置 ArcGIS Pro 许可

1) 首先您需要确定哪个组织门户将用于管理ArcGIS Pro的许可(这个指定的组织门户称为“许可门户”), 尤其当您的组织有多个门户的时候,请确保您指定的门户是您想要用来管理许可的那个门户。此种许可模式,需要安装ArcGIS License Server Administrator 程序。

2) 完成安装后,打开 ArcGIS License Server Administrator,并单击“计算机 ID…” 按钮。

3) 复制并保存计算机标识符对话框中的 MAC 地址

Read more »

主题安装

Maupassant 主题
安装主题和渲染器:

1
2
3
4
$ git clone https://github.com/tufu9441/maupassant-hexo.git themes/maupassant
$ npm install hexo-renderer-pug --save
$ npm install hexo-renderer-sass --save

编辑Hexo目录下的 _config.yml,将theme的值改为maupassant

功能配置

默认配置:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
_config.yml_config.ymlfancybox: true ## If you want to use fancybox please set the value to true.
disqus: ## Your disqus_shortname, e.g. username
gitment:
enable: false ## If you want to use Gitment comment system please set the value to true.
owner: ## Your GitHub ID, e.g. username
repo: ## The repository to store your comments, make sure you're the repo's owner, e.g. imsun.github.io
client_id: ## GitHub client ID, e.g. 75752dafe7907a897619
client_secret: ## GitHub client secret, e.g. ec2fb9054972c891289640354993b662f4cccc50
uyan: ## Your uyan_id. e.g. 1234567
livere: ## Your livere data-uid, e.g. MTAyMC8zMDAxOC78NTgz
changyan: ## Your changyan appid, e.g. cyrALsXc8
changyan_conf: ## Your changyan conf, e.g. prod_d8a508c2825ab57eeb43e7c69bba0e8b
valine: ## https://valine.js.org
enable: false ## If you want to use Valine comment system, please set the value to true.
appid: ## Your LeanCloud application App ID, e.g. pRBBL2JR4N7kLEGojrF0MsSs-gzGzoHsz
appkey: ## Your LeanCloud application App Key, e.g. tjczHpDfhjYDSYddzymYK1JJ
notify: false ## Mail notifier, see https://github.com/xCss/Valine/wiki/Valine-评论系统中的邮件提醒设置
verify: false ## Validation code.
placeholder: Just so so ## Comment box placeholders.
avatar: 'mm' ## Gravatar type, see https://github.com/xCss/Valine/wiki/avatar-setting-for-valine
pageSize: 10 ## Number of comments per page.
guest_info: nick,mail,link ## Attributes of reviewers.

google_search: true ## Use Google search, true/false.
baidu_search: false ## Use Baidu search, true/false.
swiftype: ## Your swiftype_key, e.g. m7b11ZrsT8Me7gzApciT
tinysou: ## Your tinysou_key, e.g. 4ac092ad8d749fdc6293
self_search: false ## Use a jQuery-based local search engine, true/false.
google_analytics: ## Your Google Analytics tracking id, e.g. UA-42425684-2
baidu_analytics: ## Your Baidu Analytics tracking id, e.g. 8006843039519956000
show_category_count: false ## If you want to show the count of categories in the sidebar widget please set the value to true.
toc_number: true ## If you want to add list number to toc please set the value to true.
shareto: false ## If you want to use the share button please set the value to true, you must have hexo-helper-qrcode installed.
busuanzi: false ## If you want to use Busuanzi page views please set the value to true.
widgets_on_small_screens: false ## Set to true to enable widgets on small screens.
canvas_nest:
enable: false ## If you want to use dynamic background please set the value to true, you can also fill the following parameters to customize the dynamic effect, or just leave them blank to keep the default effect.
color: ## RGB value of the color, e.g. "100,99,98"
opacity: ## Transparency of lines, e.g. "0.7"
zIndex: ## The z-index property of the background, e.g. "-1"
count: ## Quantity of lines, e.g. "150"
donate:
enable: false ## If you want to show the donate button after each post, please set the value to true and fill the following items according to your need. You can also enable donate button in a page by adding a "donate: true" item to the front-matter.
github: ## GitHub URL, e.g. https://github.com/Kaiyuan/donate-page
alipay_qr: ## Path of Alipay QRcode image, e.g. /img/AliPayQR.png
wechat_qr: ## Path of Wechat QRcode image, e.g. /img/WeChatQR.png
btc_qr: ## Path of Bitcoin QRcode image, e.g. /img/BTCQR.png
btc_key: ## Bitcoin key, e.g. 1KuK5eK2BLsqpsFVXXSBG5wbSAwZVadt6L
paypal_url: ## Paypal URL, e.g. https://paypal.me/tufu9441

menu:
- page: home
directory: .
icon: fa-home
- page: archive
directory: archives/
icon: fa-archive
- page: about
directory: about/
icon: fa-user
- page: rss
directory: atom.xml
icon: fa-rss

widgets: ## Six widgets in sidebar provided: search, category, tag, recent_posts, rencent_comments and links.
- search
- category
- tag
- recent_posts
- recent_comments
- links

links:
- title: site-name1
url: http://www.example1.com/
- title: site-name2
url: http://www.example2.com/
- title: site-name3
url: http://www.example3.com/

timeline:
- num: 1
word: 2014/06/12-Start
- num: 2
word: 2014/11/29-XXX
- num: 3
word: 2015/02/18-DDD
- num: 4
word: More

# Static files
js: js
css: css

# Theme version
version: 0.0.0

  • fancybox - 是否启用Fancybox图片灯箱效果
  • disqus - Disqus评论 shortname
  • gitment - Gitment评论相关参数
  • uyan - 友言评论 id
  • livere - 来必力评论 data-uid
  • changyan - 畅言评论 appid
  • valine - Valine评论相关参数
  • google_search - 默认使用Google搜索引擎
  • baidu_search - 若想使用百度搜索,将其设定为true
  • swiftype - Swiftype 站内搜索key
  • tinysou - 微搜索 key
  • self_search - 基于jQuery的本地搜索引擎,需要安装hexo-generator-search插件使用。
  • google_analytics - Google Analytics 跟踪ID
  • baidu_analytics - 百度统计 跟踪ID
  • show_category_count - 是否显示侧边栏分类数目
  • toc_number - 是否显示文章中目录列表自动编号
  • shareto - 是否使用分享按鈕,需要安装hexo-helper-qrcode插件使用
  • busuanzi - 是否使用不蒜子页面访问计数
  • widgets_on_small_screens - 是否在移动设备屏幕底部显示侧边栏
  • canvas_nest - 是否使用canvas动态背景
  • donate - 是否启用捐赠按钮
  • menu - 自定义页面及菜单,依照已有格式填写。填写后请在source目录下建立相应名称的文件夹,并包含index.md文件,以正确显示页面。导航菜单中集成了FontAwesome图标字体,可以在这里选择新的图标,并按照相关说明使用。
  • widgets - 选择和排列希望使用的侧边栏小工具。
  • links - 友情链接,请依照格式填写。
  • timeline - 网站历史时间线,在页面front-matter中设置layout: timeline可显示。
  • Static files - 静态文件存储路径,方便设置CDN缓存。
  • Theme version - 主题版本,便于静态文件更新后刷新CDN缓存。

主题特性

网站图标

Read more »
0%