Robert Osfield writes:
> 
> On Jan 11, 2008 6:25 PM, Jean-Sébastien Guay wrote:
> > > Perhaps outputting the data as .osg will reveal exactly 
> what is going amiss.
> >
> > OK, getting closer.
> 
> I've done a
> 
>     osgconv  test.ive test.osg
> 
> On your root .ive file and found the osgTerrain::Locator has default
> settings i.e.
> 
>       osgTerrain::Locator {
>         CoordinateSystemType PROJECTED
>         TransformScaledByResolution FALSE
>         Transform {
>           1 0 0 0
>           0 1 0 0
>           0 0 1 0
>           0 0 0 1
>         }
>       }
> 
> While I correctly get:
> 
>         osgTerrain::Locator {
>         Format "WKT"
>         CoordinateSystem
> "GEOGCS[\"NAD83\",DATUM[\"North_American_Datum_1983\",SPHEROID[\"GRS
> 1980\",6378137,298.2572221010002,AUTHORITY[\"EPSG\",\"7019\"]]
> ,AUTHORITY[\"EPSG\",\"6269\"]],PRIMEM[\"Greenwich\",0],UNIT[\"
> degree\",0.0174532925199433],AUTHORITY[\"EPSG\",\"4269\"]]"
>         CoordinateSystemType PROJECTED
>         TransformScaledByResolution FALSE
>         Transform {
>           1.14305877685547 0 0 0
>           0 0.896945953369141 0 0
>           0 0 1 0
>           -124.652221679688 41.1416664123535 0 1
>         }
>       }
> 
> This is almost certainly the root of the problem with the
> visualization.  I'll add some debugging into the .ive plugin to see if
> the Locator exists in the file or whether it exists but with just
> default settings.

My guess is that the GDAL data files aren't being picked up

These are installed in a well known location on Nix  so they
Are easily picked up  this isn't necessarily so on Windows

One can tell the system where the data files are with the following 
Environment Variables

GDAL_DATA = $ROOT_OF_GDAL_DATA_FILES  # /usr/local/share/gdal  normally on
Nix
PROJ_LIB = $ROOT_OF_PROJ_DATA_FILES   # /usr/local/share/proj  normally on
Nix

HTH

Norman

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to