How do I connect to a local elevation server?
How do I connect to a local elevation server?
|
Hi,
Since I was having problems using public elevation servers I created one of our own using arcgis. First I generated some tiffs and used gdal to get elevation up and running. This .earth file works and I see elevation just fine. (Elev1.tif is a heightfield). <map name="test" type="geocentric"> <profile>global-geodetic</profile> <heightfield name="world1" driver="gdal"> Next, I tried to connect to the server itself but can't seem to get the .earth file right.... <map name="test" type="geocentric"> <heightfield name="world1" driver="wms"> I'm seeing the following errors printed out... TIFF loader: Error opening file Thoughts? Thanks, |
| jasonbeverage |
Re: How do I connect to a local elevation server?
|
Hi Brett,
For the WMS driver to work, you need to specify the layers from the WMS to query. So if your elevation layer is called "elevation" then you need to add: You can see an example of this at: http://wush.net/trac/osgearth/wiki/TileSourcePluginWMS Let us know how it goes! Thanks! Jason On Wed, Mar 18, 2009 at 10:02 AM, brett (via Nabble) - No Reply <[hidden email]> wrote:
... [show rest of quote]
|
| jasonbeverage |
Re: How do I connect to a local elevation server?
|
In reply to this post by brett
Hi Brett,
Forgot to mention, for the WMS elevation, you'll probably also want add a <tile_size>16</tile_size> to keep the keep the terrain tile sizes reasonable. Thanks! Jason On Wed, Mar 18, 2009 at 10:23 AM, Jason Beverage <[hidden email]> wrote:
... [show rest of quote]
|
|
In reply to this post by brett
Jason,
OK, thanks. One step forward... My map file now uses the heightfield as imagery so I can easily find the areas with big elevations. <map name="test" type="geocentric"> <image name="vmap0" driver="wms"> <heightfield name="world1" driver="wms"> When I run this I see no elevation neither with osgviewer. Because I see elevation when I connect to the pelican server (except those rare cases when the nextwork gives me trouble) I believe this to be a configuration problem with my .earth file or wms server. Anyway to tell? Thanks, |
![]() |
Brett, can you post your WMS capabilities XML? thanks
http://XXXXX/ArcGIS/services/Elevation/MapServer/WMSServer?request=GetCapabilities Glenn Waldron / Pelican Mapping / @glennwaldron
|
|
Hey Glenn,
Here are the WMS server capabilities: <ContactInformation> <City></City> <Fees></Fees> <Format>application/vnd.ogc.wms_xml</Format> <Format>image/jpeg</Format> <HTTP><Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://gems2/ArcGIS/services/Elevation/MapServer/WMSServer"/></Get></HTTP> <Format>text/plain</Format> <Format>application/vnd.ogc.se_inimage</Format> <CRS>CRS:84</CRS> <northBoundLatitude>99.000009</northBoundLatitude> <Abstract>con_isnull_g1</Abstract> <southBoundLatitude>-90.000001</southBoundLatitude> </Capability> Does this tell you anything useful? Thanks, |
|
Brett,
This might be an ArcGIS Server issue. I ran a test, adding some 1-channel 32-bit float SRTM data to an MXD and publishing as a Map service. The resulting TIFFs are RGB 3-channel, not 1-channel. In other words, AGS rendered the elevation data to a regular image, making it useless to osgEarth. (Side note: in MapServer, the open source WMS server, you can explicitly configure the output formats and achieve the desired effect.) I don't see a way offhand to configure AGS to do this. An alternative would be to publish the layer as a WCS service (which provides raw access to the source data). However ... the osgEarth WCS driver is not mature yet and will probably require some addition work on our end. |
How do I connect to a local elevation server?的更多相关文章
- 连接Mysql提示Can’t connect to local MySQL server through socket的解决方法
mysql,mysqldump,Mysqladmin,php连接mysql服务常会提示下面错误: ERROR 2002 (HY000): Can't connect to local MySQL se ...
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
有时候,当我们使用"mysql"."mysqladmin"."mysqldump"等命令管理数据库时,服务器抛出类似如下错误: 一.错误现场 ...
- XtraBackup出现 Can't connect to local MySQL server through socket '/tmp/mysql.sock'
Xtrabackup做备份时遇到下面错误信息MySQL server: Can't connect to local MySQL server through socket '/tmp/mysql.s ...
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
从供应商手中接手一个云平台(Windwos Azure)上的MySQL数据库,登录数据库时遇到错误: $mysql -uroot -p Enter password: ERROR 2002 (HY00 ...
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var mysql 启动不了(转载)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var mysql 启动不了 ps -A | gr ...
- Mac mySql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)的解决办法
我的环境:Mac 10.11.6 ,mysql 5.7.14 . mac mySql 报错ERROR 2002 (HY000): Can't connect to local MySQL serv ...
- 启动Mysql服务提示Can’t connect to local MySQL server through socket的解决方法
启动Mysql服务常会提示下面错误: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/ ...
- linux云服务器mysql ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’
一早上过来发现网站打开报错,数据库连接不上.. 有人改密码? putty进去,mysql -uroot -p 输入密码后,报错 ERROR 2002 (HY000): Can't connect to ...
- mac ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib /mysql/mysql.sock' (111)
之前装了mysql,今天打开mysql的时候报了个Can't connect to local MySQL server through socket '/var/lib /mysql/mysql.s ...
随机推荐
- PHP资源类型
在PHP中,我们经常使用到资源类型变量.例如:mysql连接.文件句柄等. 这些变量无法使用标量来表示,那么在Zend内核中是如何将PHP中的资源变量与C语言中的资源衔接的呢? 一.资源变量在PHP中 ...
- chromium blog
http://blog.chromium.org/
- maven 教程一 入门
摘要: (1)maven是项目管理工具,类似makefile.主要的生命阶段有 validate:验证工程是否正确,所有需要的资源是否可用. compile:编译项目的源代码. test:使用 ...
- 剑指offer之有序二维数组查找
大多数人注意到元素是行列有序的,会马上想到对每行(或列)进行二分查找,每行(或列)需要logN时间,N行(或列)共需要NlogN时间,很容易写出如下代码 1 2 3 4 5 6 7 8 9 10 11 ...
- js动态添加file控件
<html></head><script language="javascript" type="text/ecmascript" ...
- Python3基础 函数 默认值参数示例
镇场诗: 诚听如来语,顿舍世间名与利.愿做地藏徒,广演是经阎浮提. 愿尽吾所学,成就一良心博客.愿诸后来人,重现智慧清净体.-------------------------------------- ...
- N层架构实现的一个小例子
主要用到了[单例,抽象工厂,缓存,N层,反射]等知识.架构图如下: 解决方案用到的项目列表如下: 在接口项目中,定义一个IUER接口. namespace IDAL { public interfac ...
- 写一个程序,统计自己C语言共写了多少行代码,Github基本操作
前言 在上一篇博客中,本人提到了自己的文件操作可以说是几乎没用过.现在想想,这也算是只在OJ上做题的一个弊端吧.虽然通过OJ做题是一个学习代码好手段,但其他方面也要多多涉猎才好,而不是说OJ用不到文件 ...
- [iOS]C语言技术视频-13-指针变量练习三(结构体指针变量)
下载地址: 链接: http://pan.baidu.com/s/1bnx2xm3 密码: t4mj
- NBUT 1457 Sona
莫队算法+离散化 1.map会TLE,必须离散化做 2.long long会WA,__int64定义 %I64d输出输出能AC 3.注意输入的序列会爆int #include<cstdio> ...

