Re: [osg-users] VPB: creating flat earth DB with specified projection

2009-10-18 Thread Alejandro Aguilar Sierra
Perhaps not the best solution, but you could reproject your terrain
data with gdaltranslate, before using osgdem.

Regards.

-- A.


On Tue, Oct 13, 2009 at 8:26 AM, John Vidar Larring
 wrote:
> 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.58
> Time for createDestinationGraph 0.000616
> Time for after_computeNeighbours 0.43
> Time for consolodateRequiredResolutions 0.00
> 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.18
> 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   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
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] VPB: creating flat earth DB with specified projection

2009-10-17 Thread Alejandro Aguilar Sierra
Robert, welcome back!

IMHO, with better documentation, the growing set of VPB users
(including me) could help. OTOH, there should be a set of automatic
tests to assure that the different tasks of osgdem remain bug free. A
bit more "test driven" development would be good.

I will raise the topics again when you get the OpenGL ES port done. ;)

-- A.


On Sat, Oct 17, 2009 at 5:52 AM, Robert Osfield
 wrote:
> Hi John,
>
> On Tue, Oct 13, 2009 at 2:26 PM, John Vidar Larring
>  wrote:
>> 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:
>
> I believe your usage should be correct.  It's a while since I tested
> the setting of the destination coordinate system and don't have time
> right now to spend some time relearning, testing it.  If you can't
> find a fix please raise the topic again once I've got the OpenGL ES
> 2.0 port done as I'll then have a bit of time to put into VPB.
>
> Robert.
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] VPB: creating flat earth DB with specified projection

2009-10-17 Thread Robert Osfield
Hi John,

On Tue, Oct 13, 2009 at 2:26 PM, John Vidar Larring
 wrote:
> 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:

I believe your usage should be correct.  It's a while since I tested
the setting of the destination coordinate system and don't have time
right now to spend some time relearning, testing it.  If you can't
find a fix please raise the topic again once I've got the OpenGL ES
2.0 port done as I'll then have a bit of time to put into VPB.

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