How do I connect to a local elevation server?
brett |
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> <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 |
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: 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 |
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:
... [show rest of quote] |
brett |
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"> <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, |
gwaldron |
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 |
Mar 19, 2009; 8:28pm
Re: How do I connect to a local elevation server?
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, |
gwaldron |
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. |