Skyline TerraExplorer -二次开发- 加载外部数据的各种连接串
Skyline 可以连接外部的数据源,包括SQL Server,Oracle ,excel,mySQL,SQlite,WFS.......
连接字符串如下:例如连接shp文件,为“FileName=C:\\sample.shp;TEPlugName=OGR;“
§ TEPlugName=OGR –
· Shapefile:
“FileName=FullPathToShapeFile”
Where
FullPathToShapeFile defines a full path to the shapefile.
·
DGN file:
“FileName=FullPathToShapeFile”
Where
FullPathToShapeFile defines a full path to the DGN file.
·
DXF file:
“FileName=FullPathToShapeFile”
Where
FullPathToShapeFile defines a full path to the DXF file.
·
Oracle Spatial:
“OGRConnectionString=
OCI:userid/password@database_instance:table,table”.
Where
userid/password defines respectively the user name and password required
for connecting to the server, database_instance defines the Oracle Net
Service name, and table defines the table to access.
·
PostgreSQL extended with the PostGIS spatial data
support:
“LayerName=LayerName;OGRConnectionString={
PG:dbname=’databasename’}”
Where databasename defines the
database name.
Additional parameters may be provided as required, e.g. {
PG:dbname=’databasename’ host='addr' port='5432' user='userid'
password='password'}.
·
MS SQL Spatial:
“OGRConnectionString={
MSSQL:server=servername;database=databasename;UID=userid;PWD=password;Tables=table}”
Where
servername defines the server name, databasename defines the
database to connect to, userid and password define the user name
and password respectively, and table defines the table to access.
·
SQLite:
“FileName=FullPathToShapeFile;LayerName=LayerName”
Where
FullPathToShapeFile defines a full path to the SQLite file,
LayerName defines the name of the layer to be loaded.
§
TEPlugName= WFS – Used to load layers from Web Feature Server
(WFS). Additional parameters are required (mandatory fields are bolded):
·
Server:
“Server=ServerURL”
Where ServerURL
defines a full URL to the server.
·
WFSVersion:
“WFSVersion =Version”
Supported
Version values are “1.0.0” and “1.1.0”.
·
LayerName:
“LayerName=LayerName”
Where
LayerName defines the name of the layer to be loaded.
·
User:
“User =UserName”
Where UserName defines
the user name required to connect to the server.
·
Password:
“Password=Password”
Where Password
defines the user name required to connect to the server.
·
Lat-Long or Long-Lat coordinate
format:
“CRS_XY_OR_YX=Format”
Supported Format
values are “1” for Long-Lat and “2” for Lat-Long.
§
TEPlugName=GeoDatabase – Used to load layers from a Personal Geodatabase
file. Additional parameters are required (mandatory fields are bolded):
·
LayerName:
“LayerName=ServerURL”
Where
LayerName defines a full path to the GeoDatabase file.
·
TableName:
“TableName =TableName”
Where
LayerName defines the name of the table containing the layer to be
loaded.
§
TEPlugName= DSN – Used to load layers from an ODBC database
connection. Additional parameters are required (mandatory fields are
bolded):
·
DSNPlugName:
“DSNPlugName=PlugName”
Where
PlugName defines the ODBC driver. For example: “Microsoft
Access(*.mdb)”.
·
DSNConnectionString:
“DSNConnectionString=ConnectionString”
Where
ConnectionString defines the DSN connection string as required by the
defined driver.
·
DSN_X_Field:
“DSN_X_Field=X”
Where X defines
the database field name containing the X coordinate.
·
DSN_Y_Field:
“DSN_Y_Field=Y”
Where Y defines
the database field name containing the Y coordinate.
·
DSN_AltitudeField:
“DSN_AltitudeField=Altitude”
Where
Altitude defines the database field name containing the altitude
value.
·
TableName:
“TableName =TableName”
Where
LayerName defines the name of the table containing the layer to be
loaded
重点来了。实际的例子:
excel: "FileName=D:
\\demo.xls;LayerName=test;DSN_X_Field=L;DSN_Y_Field=B;DSN_AltitudeField=H;TEPlugName=OGR;"
Skyline TerraExplorer -二次开发- 加载外部数据的各种连接串的更多相关文章
- Android 插件化开发(二):加载外部Dex文件
在学习Java反射的技术后,我们可以开始更深一步的探究插件化开发了.首先先讲一下Android App的打包流程,然后我们通过一个简单的例子 —— 实现插件化加载外部Dex来完成初级的插件化开发的探索 ...
- SkylineGlobe 如何实现二次开发加载KML文件
示例代码如下: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www ...
- Flink 中定时加载外部数据
社区中有好几个同学问过这样的场景: flink 任务中,source 进来的数据,需要连接数据库里面的字段,再做后面的处理 这里假设一个 ETL 的场景,输入数据包含两个字段 “type, useri ...
- 【Java Web开发学习】Spring加载外部properties配置文件
[Java Web开发学习]Spring加载外部properties配置文件 转载:https://www.cnblogs.com/yangchongxing/p/9136505.html 1.声明属 ...
- 【Win 10 应用开发】加载外部的 srt 字幕
据说系统内置的多媒体功能支持 srt. ssa 等字幕,老周测试过几种格式的字幕均能加载. SRT 字幕是最简单的字幕结构,甚至你用记事本都能做出来,就是分为几行来写. 第一行是字幕的编号,应该是从1 ...
- FusionCharts简单教程(六)------加载外部Logo
一.加载外部文件Logo 在使用FusionCharts时,我们可能需要在加载图像的时候需要在图表中显示标识.图片等等.这里我们可以使用logoURL属性来实现.如: <chart ...
- PhoneGap 白名单安全机制 navigator.app 加载外部页面返回以及退出介绍
一. Phonegap 白名单安全机制 Phonegap应用的页面大多存在于本地,但有时需要加载外部的Web页面到应用内置的浏览器 视图中已完成特定的应用功能,出于安全性考虑,PhoneGap 设立了 ...
- [iTyran原创]iPhone中OpenGL ES显示3DS MAX模型之二:lib3ds加载模型
[iTyran原创]iPhone中OpenGL ES显示3DS MAX模型之二:lib3ds加载模型 作者:u0u0 - iTyran 在上一节中,我们分析了OBJ格式.OBJ格式优点是文本形式,可读 ...
- Spark动态加载外部资源文件
Spark动态加载外部资源文件 1.spark-submit --files 动态加载外部资源文件 之前做一个关于Spark的项目时,因项目中需要读取某个静态资源文件,然后在本地IDEA测试一切皆正常 ...
随机推荐
- matlab函数每天进步一点点
1. 读mp4视频 : xyloObj = VideoReader('su35.mp4'); 链接 2. 查看有几个相同的函数和当前使用的函数是哪个路径下的: which -all xxx; w ...
- HDU - 5755:Gambler Bo (开关问题,%3意义下的高斯消元)
pro:给定N*M的矩阵,每次操作一个位置,它会增加2,周围4个位置会增加1.给定初始状态,求一种方案,使得最后的数都为0:(%3意义下. sol:(N*M)^3的复杂度的居然过了. ...
- Ubuntu19.04配置SS+pac非全局代理
1.先安装shadowsocks-qt5 sudo apt install shadowsocks-qt5 2.因为ss是sock5代理,而shell不支持socks5代理,只支持http/https ...
- Go语言切片
切片 Go 语言切片相当于是对数组的抽象. 由于Go 数组的长度不可改变,在特定场景中这样的集合就不太适用,Go中提供了一种灵活,功能强悍的内置类型切片("动态数组"),与数组相比 ...
- Win10激活密钥key(可激活所有版本)
Win10激活密钥key(可激活所有版本) Win10一年的免费升级服务已经到期,用户要使用Win10系统,就需要最新Win10密钥来激活Win10,一般激活Win10系统有两种方式,一个是使用Win ...
- tensorflow模型ckpt转pb以及其遇到的问题
使用tensorflow训练模型,ckpt作为tensorflow训练生成的模型,可以在tensorflow内部使用.但是如果想要永久保存,最好将其导出成pb的形式. tensorflow已经准备好c ...
- MySQL-02-进阶
大纲 1)数据约束 2)数据库设计(表设计) 3)存储过程 4)触发器 5)mysql权限问题 数据约束 2.1什么数据约束 对用户操作表的数据进行约束 2.2 默认值 作用: 当用户对使用默认值的字 ...
- python画高斯分布图形
高斯分布,也叫正态分布,是一个在数学.物理及工程等领域都非常重要的概率分布,在统计学的许多方面有着重大的影响力. 若随机变量X服从一个数学期望为μ.方差为σ^2的正态分布,记为N(μ,σ^2).其概率 ...
- Unity安卓打包遇到的问题。
1, android asset packinging tool failed. "路径" package -v -f -F assets.ap_ - Assets found X ...
- Python基础:三、Python的解释器
当我们编写python代码的时候,我们得到的是一个包含python代码的以.py为拓展名的文本文件,要运行代码,就需要python解释器去执行.py文件. 由于整个python语言从规范到解释器都是开 ...