Hi all,

I'd like to create a flat VPB terrain with a specified projection and I a having some trouble. I'm hoping someone else have already done this and can share some insight.

osgdem -t bm_east.tif -l 3 -o qwe.ive

... creates a flat earth in "latlong" projection. But when I try to specify a coordinate system for the destination database like the following:

osgdem -t bm_east.tif -l 3 --cs "+proj=stere +lat_ts=60 +lat_0=90 +lon_0=10" -o qwe.ive

...osgdem output the following a creates a database that does not show in osgviewer:

% osgdem -t bm_east.tif -l 3 --cs "+proj=stere +lat_ts=60 +lat_0=90 +lon_0=10" -o qwe.ive
-t bm_east.tif
--cs "+proj=stere" converted to PROJCS["unnamed",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Stereographic"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0]]
-o qwe.ive
Adding terrainTile
DataSet::_run() 0 0
started DataSet::createDestination(3)
AR=2.013294 C1=1 R1=2
createNewDestinationGraph
Time for _destinationGraph->computeMaximumSourceResolution() = 0.000058
Time for createDestinationGraph 0.000616
Time for after_computeNeighbours 0.000043
Time for consolodateRequiredResolutions 0.000000
reprojecting to file temporaryfile_bm_east.tif
ERROR 1: CPLCreateThread() failed in ChunkAndWarpMulti()  <---- Note !!
Time for after_reproject 48.371744
Time for after_sort 0.000018
completed DataSet::createDestination(3)
There are 1 contributing source files:
    bm_east.tif
...
...[snip]...
...
vpb::access(qwe_root_L0_X0_Y0/qwe_L1_X0_Y1_subtile.ive, W_OK)=0
completed DataSet::writeDestination(qwe.ive)
Elapsed time = 49.149146

Is this a usage issue, a bug or not-implemented-yet issue? My initial attempts of creating a flat projected database were based on this documentation from osgdem --help:

--cs <coordinates system string> Set the coordinates system of source imagery, DEM or destination database. The string may be any of the usual GDAL/OGR forms, complete WKT, PROJ.4, EPS

Best regards,
John

--
This email was Anti Virus checked by Astaro Security Gateway. 
http://www.astaro.com
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to