osgearth icon indicating copy to clipboard operation
osgearth copied to clipboard

Cannot understand failure of earth file.

Open rmancusi opened this issue 3 years ago • 2 comments

I've a simple earth file that is failing against a locally installed WMS (GeoServer): ##----------------------------------------------------- ##- MyMap.earth: <Map name="MyMap"> world.tif <WMSImage name="GeoServer Imagery"> http://localhost/geoserver image/png tiger-ny <tile_size>512</tile_size> EPSG:4326 true </WMSImage> </Map> ##-----------------------------------------------------

'osgearth_viewer.exe MyMap.earth' returns the following:

[osgEarth]* [WMS] Could not find Capability element [osgEarth]* [EarthSerializer2] class osgEarth::WMSImageLayer "GeoServer Imagery" : Resource unavailable : Unable to read WMS GetCapabilities.

##----------------------------------------------------- Unfortunately, I am not familiar enough with the issues that can occur and need help on this one. Anybody have any clues?

rmancusi avatar Jun 21 '22 20:06 rmancusi

##- MyMap.earth:
<Map name="Map">
    <image name="natural" driver="gdal">
      <url>world.tif</url>
     </image>
     <WMSImage name="GeoServer Imagery">
         <url>http://localhost:80/geoserver</url>
         <format>image/png</format>
         <layers>tiger-ny</layers>
         <tile_size>512</tile_size>
         <srs>EPSG:4326</srs>
         <transparent>true</transparent>
     </WMSImage>
</Map>

Seems that my copy/paste job above didn't work too well.

rmancusi avatar Jun 21 '22 20:06 rmancusi

What do you get if you try to get your WMS Capabilities from the web browser?

gwaldron avatar Jul 26 '22 16:07 gwaldron