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 ...
随机推荐
- C#编写Windows服务程序图文教程
安装服务程序C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe 要安装的服务程序路径(如F:\***.exe)卸载服务程序C: ...
- 【学生成绩管理系统】 大二c语言作业
几年前写的了,只能在命令行窗口运行,虽然比较挫,还是有一定参考价值... #include <cstdio> #include <conio.h> #include <i ...
- 模仿 app
原文链接:http://www.jianshu.com/p/a634b66cb180 前言 作为一个IOS程序员,闲的时候也想自己做一个app练练手,又苦于没有UI设计,也没有好的idea,所以只能先 ...
- HRBUST 1909 理工门外的树(双数组实现线段树功能)
线段树固然可以做,但是在考虑线段树之前应该先考虑一下,这种用两个数组来解决问题的方法能不能行,如果行的话,就会为我们省很多时间,毕竟线段树代码量比较大 #include<iostream> ...
- POJ 3254 Corn Fields(状态压缩)
一道状态压缩的题,错了好多次....应该先把满足的情况预处理出来 #include<iostream> #include<cstdio> #include<cstring ...
- 转:Selenium的延迟等待
Selenium的延迟等待分为 显式等待(Explicit Wait) & 隐式等待(Implicit Wait). 1.显式等待 显式等待,就是明确的要等到某个元素的出现或者是某个元素的可点 ...
- windows编程:创建DLL
创建DLL Dll是动态链接库的缩写,可以作为附加代码动态映射到进程的地址空间中. 动态库的一般创建方法如下 方法1.使用 __declspec(dllexport) 方式导出 一般的框架如下 // ...
- c#中控制不能从一个case标签贯穿到另一个case标签
每个非空的case标签都得以break结束,肯定是两个case之间少了一个break了
- Naive Bayes在mapreduce上的实现
Naive Bayes是比较常用的分类器,因为思想比较简单.之所以说是naive,是因为他假设用于分类的特征在类确定的条件下是条件独立的,这个假设使得分类变得很简单,但会损失一定的精度. 具体推导可以 ...
- ibatis resultMap 的用法
先看个具体的例子: <resultMap id=”get-product-result” class=”com.ibatis.example.Product”> <result pr ...