OsgEarth connect postgres12 and POSTGIS3.0 Error

classic Classic list List threaded Threaded
1 message Options
osgEarthVR osgEarthVR
Reply | Threaded
Open this post in threaded view

OsgEarth connect postgres12 and POSTGIS3.0 Error

<map version="2">
 <image name="world" driver="gdal">
  <url> d:\wsiearth.tif</url>       
 <model name="district" driver="feature_geom" overlay="true">
        <features name="district" driver="ogr">
        <connection>PG:dbname='pgdb' host=localhost port=5432 user='postgres' password='postgis' sslmode=disable tables=world</connection>     
        <style type="text/css"> district{ stroke: #000000; - render yellow lines stroke-opacity: 1.0; stroke-width: 3; fill: #FF0000; fill-opacity: 0.5; } </style>        </styles>       

osgEarth_viewer print Error:

C:\Users\Administrator>osgEarth_viewer D:\pgCont.earth
[osgEarth]* [EarthSerializer2] Layer "district" : Resource unavailable : Failed
to open "PG:dbname='pgdb' host=localhost port=5432 user='postgres' password='pos
tgis' sslmode=disable tables=world"