How do I connect to a local elevation server?

brett
Reply | Threaded | More    
Mar 18, 2009; 10:02pm

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>
        
    <image name="world1" driver="gdal">
        <url>../../data/Terrain/world/world1.tif</url>
        <tile_size>256</tile_size>
    </image>

<heightfield name="world1" driver="gdal">
        <url>../../data/Terrain/world/Elev1.tif</url>
        <tile_size>16</tile_size>
    </heightfield>
        
</map>

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">
        <url>http://gems2/ArcGIS/services/Elevation/MapServer/WMSServer</url>
        <format>tiff</format>
    </heightfield>
        
</map>

I'm seeing the following errors printed out...

TIFF loader: Error opening file 
TIFF loader: Error opening file 
TIFF loader: Error opening file 
TIFF loader: Error opening file 
Couldn't get tile for 0_0_0 
TIFF loader: Error opening file 
TIFF loader: Error opening file 
TIFF loader: Error opening file 
TIFF loader: Error opening file 
Couldn't get tile for 0_1_0

Thoughts?

Thanks, 
Brett

jasonbeverage
Reply | Threaded | More    
Mar 18, 2009; 10:23pm

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:
<layers>elevation</layers>
to your heightfield element to work correctly.

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:

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> 
        
    <image name="world1" driver="gdal"> 
        <url>../../data/Terrain/world/world1.tif</url> 
        <tile_size>256</tile_size> 
    </image>

<heightfield name="world1" driver="gdal"> 
        <url>../../data/Terrain/world/Elev1.tif</url> 
        <tile_size>16</tile_size> 
    </heightfield> 
        
</map>

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"> 
        <url>http://gems2/ArcGIS/services/Elevation/MapServer/WMSServer</url> 
        <format>tiff</format> 
    </heightfield> 
        
</map>

I'm seeing the following errors printed out...

TIFF loader: Error opening file 
TIFF loader: Error opening file 
TIFF loader: Error opening file 
TIFF loader: Error opening file 
Couldn't get tile for 0_0_0 
TIFF loader: Error opening file 
TIFF loader: Error opening file 
TIFF loader: Error opening file 
TIFF loader: Error opening file 
Couldn't get tile for 0_1_0

Thoughts?

Thanks, 
Brett


View message @ http://n2.nabble.com/How-do-I-connect-to-a-local-elevation-server--tp2497311p2497311.html 
To start a new topic under osgEarth, email [hidden email] 
To unsubscribe from osgEarth, click here.
jasonbeverage
Reply | Threaded | More    
Mar 18, 2009; 10:25pm

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:

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:
<layers>elevation</layers>
to your heightfield element to work correctly.

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:

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> 
        
    <image name="world1" driver="gdal"> 
        <url>../../data/Terrain/world/world1.tif</url> 
        <tile_size>256</tile_size> 
    </image>

<heightfield name="world1" driver="gdal"> 
        <url>../../data/Terrain/world/Elev1.tif</url> 
        <tile_size>16</tile_size> 
    </heightfield> 
        
</map>

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"> 
        <url>http://gems2/ArcGIS/services/Elevation/MapServer/WMSServer</url> 
        <format>tiff</format> 
    </heightfield> 
        
</map>

I'm seeing the following errors printed out...

TIFF loader: Error opening file 
TIFF loader: Error opening file 
TIFF loader: Error opening file 
TIFF loader: Error opening file 
Couldn't get tile for 0_0_0 
TIFF loader: Error opening file 
TIFF loader: Error opening file 
TIFF loader: Error opening file 
TIFF loader: Error opening file 
Couldn't get tile for 0_1_0

Thoughts?

Thanks, 
Brett


View message @ http://n2.nabble.com/How-do-I-connect-to-a-local-elevation-server--tp2497311p2497311.html 
To start a new topic under osgEarth, email [hidden email] 
To unsubscribe from osgEarth, click here.
brett
Reply | Threaded | More    
Mar 19, 2009; 5:26am

Re: How do I connect to a local elevation server?

 
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">
       <url>http://XXXXX/ArcGIS/services/Elevation/MapServer/WMSServer</url>
       <layers>0</layers>
       <format>png</format>
       <tile_size>256</tile_size>
   </image>

<heightfield name="world1" driver="wms">
        <url>http://XXXXX/ArcGIS/services/Elevation/MapServer/WMSServer</url>    
        <layers>0</layers>  
        <format>tiff</format>
        <tile_size>16</tile_size>
    </heightfield>
        
</map>

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

gwaldron
Reply | Threaded | More    
Mar 19, 2009; 5:49am

Re: How do I connect to a local elevation server?

Brett, can you post your WMS capabilities XML? thanks

http://XXXXX/ArcGIS/services/Elevation/MapServer/WMSServer?request=GetCapabilities

Glenn Waldron / Pelican Mapping / @glennwaldron
brett
Reply | Threaded | More    
Mar 19, 2009; 8:28pm

Re: How do I connect to a local elevation server?

 
Hey Glenn,

Here are the WMS server capabilities: 
<?xml version="1.0" encoding="UTF-8"?> 
<WMS_Capabilities version="1.3.0" 
xmlns="http://www.opengis.net/wms"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd">
  <Service>
    <Name>WMS</Name>
    <Title>Elevation</Title>
    <Abstract>WMS</Abstract>
    <KeywordList><Keyword></Keyword></KeywordList>
    <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://gems2/ArcGIS/services/Elevation/MapServer/WMSServer"/>

<ContactInformation>
      <ContactPersonPrimary>
        <ContactPerson></ContactPerson>
        <ContactOrganization></ContactOrganization>
      </ContactPersonPrimary>
      <ContactPosition></ContactPosition>
      <ContactAddress>
        <AddressType></AddressType>
        <Address></Address>

<City></City>
        <StateOrProvince></StateOrProvince>
        <PostCode></PostCode>
        <Country></Country>
      </ContactAddress>
      <ContactVoiceTelephone></ContactVoiceTelephone>
      <ContactFacsimileTelephone></ContactFacsimileTelephone>
      <ContactElectronicMailAddress></ContactElectronicMailAddress>
    </ContactInformation>

<Fees></Fees>
    <AccessConstraints></AccessConstraints>
    <MaxWidth>2048</MaxWidth>
    <MaxHeight>2048</MaxHeight>
  </Service>
  <Capability>
    <Request>
      <GetCapabilities>

<Format>application/vnd.ogc.wms_xml</Format>
        <Format>text/xml</Format>
        <DCPType>
          <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>
        </DCPType>
      </GetCapabilities>
      <GetMap>
        <Format>image/bmp</Format>

<Format>image/jpeg</Format>
        <Format>image/tiff</Format>
        <Format>image/png</Format>
        <Format>image/gif</Format>
        <Format>image/svg+xml</Format>
        <DCPType>

<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>
        </DCPType>
      </GetMap>
      <GetFeatureInfo>
        <Format>application/vnd.ogc.wms_xml</Format>
        <Format>text/xml</Format>
        <Format>text/html</Format>

<Format>text/plain</Format>
        <DCPType>
          <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>
        </DCPType>
      </GetFeatureInfo>
    </Request>
    <Exception>
      <Format>application/vnd.ogc.se_xml</Format>

<Format>application/vnd.ogc.se_inimage</Format>
      <Format>application/vnd.ogc.se_blank</Format>
      <Format>text/xml</Format>
      <Format>XML</Format>
    </Exception>
    <Layer>
    <Title>Layers</Title>

<CRS>CRS:84</CRS>
    <CRS>EPSG:4326</CRS>
    <EX_GeographicBoundingBox>
      <westBoundLongitude>-198.000002</westBoundLongitude>
      <eastBoundLongitude>198.000019</eastBoundLongitude>
      <southBoundLatitude>-99.000002</southBoundLatitude>

<northBoundLatitude>99.000009</northBoundLatitude>
    </EX_GeographicBoundingBox>
    <BoundingBox CRS="CRS:84" minx="-198.000002" miny="-99.000002" maxx="198.000019" maxy="99.000009"/>
    <BoundingBox CRS="EPSG:4326" minx="-99.000002" miny="-198.000002" maxx="99.000009" maxy="198.000019"/>
      <Layer>
        <Name>0</Name>
        <Title>con_isnull_g1</Title>

<Abstract>con_isnull_g1</Abstract>
        <CRS>CRS:84</CRS>
        <CRS>EPSG:4326</CRS>
        <EX_GeographicBoundingBox>
          <westBoundLongitude>-180.000001</westBoundLongitude>
          <eastBoundLongitude>180.000018</eastBoundLongitude>

<southBoundLatitude>-90.000001</southBoundLatitude>
          <northBoundLatitude>90.000008</northBoundLatitude>
        </EX_GeographicBoundingBox>
        <BoundingBox CRS="CRS:84" minx="-180.000001" miny="-90.000001" maxx="180.000018" maxy="90.000008"/>
        <BoundingBox CRS="EPSG:4326" minx="-90.000001" miny="-180.000001" maxx="90.000008" maxy="180.000018"/>
        <Style> <Name>default</Name> <Title>con_isnull_g1</Title> <LegendURL width="100" height="97"> <Format>image/png</Format> <OnlineResource xlink:href="http://gems2/arcgisoutput/Elevation_MapServer/wms/default0.png" xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" /> </LegendURL> </Style>      </Layer>
    </Layer>

</Capability>
</WMS_Capabilities>

Does this tell you anything useful?

Thanks, 
Brett

gwaldron
Reply | Threaded | More    
Mar 19, 2009; 8:56pm

Re: How do I connect to a local elevation server?

 
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?的更多相关文章

  1. 连接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 ...

  2. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

    有时候,当我们使用"mysql"."mysqladmin"."mysqldump"等命令管理数据库时,服务器抛出类似如下错误: 一.错误现场 ...

  3. 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 ...

  4. 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 ...

  5. 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 ...

  6. 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 ...

  7. 启动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/ ...

  8. 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 ...

  9. 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 ...

随机推荐

  1. hdu_5145_NPY and girls(莫队算法+组合)

    题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=5145 题意:给你n,m,共有n个女孩,标号为1—n,n个数xi表示第ith个女孩在第xi个教室,然后下 ...

  2. shortcut to open a linux terminal

    1) alt+ f2 2) input "gnome-terminal" 3) press "enter"

  3. mysql建表: 主键,外键约束

    CREATE DATABASE db_studentinfo; USE db_studentinfo ; DROP TABLE IF EXISTS t_student ; CREATE TABLE t ...

  4. asp.net MVC 3多语言方案--再次写, 配源码

    之前写了一篇asp.net MVC多语言方案,那次其实是为American Express银行开发的.有许多都是刚开始接触,对其也不太熟悉.现在再回过头去看,自己做一个小网站,完全用asp.net m ...

  5. iOS的CocoaPods(activesupport requires Ruby version >= 2.2.2)

    如果你在安装遇到这个问题 activesupport requires Ruby version >= 2.2.2,那么这里可以帮助你(lasted version) 如果你是通过 http:/ ...

  6. 关于Jsp页面在ww:iterator 标签里面判断的写法是可以直接写数组里面的变量的

    因为上面已经遍历了,所以可以直接写变量名

  7. js数据显示在文本框中(页面加载显示和按钮触动显示)

    web代码如下: <!DOCTYPE html> <html> <head> <title>jsTest02.html</title> &l ...

  8. ibus用上搜狗拼音词库

    1.下载搜狗拼音词库 wget http://hslinuxextra.googlecode.com/files/sougou-phrases-full.7z 2.用sougou-phrases-fu ...

  9. ARMs3c2440开发板挂接NFS服务

    1.修改IP地址,使虚拟机,电脑PC机.开发板位于同一个网段,开发板网线与电脑网络接口连接,如PC:ip 192.168.0.112 255.255.255.0 虚拟机 192.168.0.8 255 ...

  10. Swift 项目中常用的第三方框架

    Swift 项目中可能用到的第三方框架 字数1004 阅读4091 评论17 喜欢93 这里记录下swift开发中可能用的框架 , 最近浏览了不少,积累在这里,以后用的时候方便查阅.顺便推荐给大家! ...