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 -二次开发- 加载外部数据的各种连接串的更多相关文章

  1. Android 插件化开发(二):加载外部Dex文件

    在学习Java反射的技术后,我们可以开始更深一步的探究插件化开发了.首先先讲一下Android App的打包流程,然后我们通过一个简单的例子 —— 实现插件化加载外部Dex来完成初级的插件化开发的探索 ...

  2. SkylineGlobe 如何实现二次开发加载KML文件

    示例代码如下: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www ...

  3. Flink 中定时加载外部数据

    社区中有好几个同学问过这样的场景: flink 任务中,source 进来的数据,需要连接数据库里面的字段,再做后面的处理 这里假设一个 ETL 的场景,输入数据包含两个字段 “type, useri ...

  4. 【Java Web开发学习】Spring加载外部properties配置文件

    [Java Web开发学习]Spring加载外部properties配置文件 转载:https://www.cnblogs.com/yangchongxing/p/9136505.html 1.声明属 ...

  5. 【Win 10 应用开发】加载外部的 srt 字幕

    据说系统内置的多媒体功能支持 srt. ssa 等字幕,老周测试过几种格式的字幕均能加载. SRT 字幕是最简单的字幕结构,甚至你用记事本都能做出来,就是分为几行来写. 第一行是字幕的编号,应该是从1 ...

  6. FusionCharts简单教程(六)------加载外部Logo

    一.加载外部文件Logo       在使用FusionCharts时,我们可能需要在加载图像的时候需要在图表中显示标识.图片等等.这里我们可以使用logoURL属性来实现.如: <chart ...

  7. PhoneGap 白名单安全机制 navigator.app 加载外部页面返回以及退出介绍

    一. Phonegap 白名单安全机制 Phonegap应用的页面大多存在于本地,但有时需要加载外部的Web页面到应用内置的浏览器 视图中已完成特定的应用功能,出于安全性考虑,PhoneGap 设立了 ...

  8. [iTyran原创]iPhone中OpenGL ES显示3DS MAX模型之二:lib3ds加载模型

    [iTyran原创]iPhone中OpenGL ES显示3DS MAX模型之二:lib3ds加载模型 作者:u0u0 - iTyran 在上一节中,我们分析了OBJ格式.OBJ格式优点是文本形式,可读 ...

  9. Spark动态加载外部资源文件

    Spark动态加载外部资源文件 1.spark-submit --files 动态加载外部资源文件 之前做一个关于Spark的项目时,因项目中需要读取某个静态资源文件,然后在本地IDEA测试一切皆正常 ...

随机推荐

  1. 【leetcode】476. Number Complement

    problem 476. Number Complement solution1: class Solution { public: int findComplement(int num) { //正 ...

  2. Python学习之路基础篇--10Python基础,函数进阶

    1 命名空间 对于Python 来说命名空间一共有三种 1 内置命名空间 —— Python 解释器 就是Python 解释器一启动就可以使用的名字,储存在内置命名空间中.内置的名字在启动解释器的时候 ...

  3. 使用min-device-pixel-ratio媒体功能实现真正的1像素border

    关于设备像素比的知识,想必做过移动端开发的都有接触,这里就不介绍啦,万一有不懂的可以看张鑫旭大神的设备像素比devicePixelRatio简单介绍 由于设备像素比存在的原因,我们在处理设计图的一些边 ...

  4. 20155219 付颖卓《基于ARM试验箱的接口应用于测试》课程设计个人报告

    一.个人贡献 参与课设题目讨论及完成全过程: 资料收集: 负责代码调试: 修改小组结题报告: 负责试验箱的管理: 二.设计中遇到的问题及解决方法 1.makefile无法完成编译.如下图: 答:重新下 ...

  5. axios 重复点击利用CancelToken阻止请求多次发送

    import axios from 'axios'; axios.defaults.timeout = 5000; axios.defaults.baseURL =''; let pending = ...

  6. 前端开发模拟数据------webpack-api-mocker

    应用场景: 在实际的项目开发过程中,一般都会进行前后端分离的开发模式,前端通过mock或者其他的插件模拟后台返回数据的功能.在常用的webpack构建工程项目中,通过和webpack-dev-serv ...

  7. Springboot框架,实现请求数据解密,响应数据加密的功能。

    一.简要说明: 在做这个功能的时候,参考了很多文章,也试了用过滤器解决.但总体来说还是很麻烦,所以换了另一种解决方案.直接实现RequestBodyAdvice和ResponseBodyAdvice两 ...

  8. PAT乙级考前总结(二)

    简单模拟 1002 写出这个数 (20 分) 1006 换个格式输出整数 (15 分) 又是数数 1016 部分A+B (15 分) 相当于找数字 1018 锤子剪刀布 (20 分) 题目略 此处用了 ...

  9. sql执行内部操作期间检测到不一致性解决方案

    解决方法:重启下SQL服务,把下面脚本运行即可.运行后,坏掉的数据库可能会丢失. --mydb 为坏了的数据库名--mytable  为坏了的据库表--master 这里不需要更改 use mydb  ...

  10. SDL中 so库的使用

    用到的项目:Tocy-Android-SDLv2 JAVA层:只有一个 SDLActivity.java 路径\Android-SDLv2\src\org\libsdl\app 项目简单分析: 默认在 ...