Hi Shayne,
Thanks for the reply.
I have tried all sorts to try and make this geocentric, but alas it seems to
fail.
My data is in .asc format for the terrain and is called the panorama from
OS(https://www.ordnancesurvey.co.uk/opendatadownload/products.html)
Also the .ntf files my gdal fails with unrecognised format(FW Tools under
windows).

OSGDEM fails with the following message after using gdalwarp as suggested:
Skipping source contertedtiffasc_warped\/tr26.asc-warp.tif as its extents
don't
overlap destination extents

The formats are :
Data type: Vector (Contours), Grid (DTM)
Supply format: DXF [Contours],ASCII grid [DTM],NTF [DTM]

I just used the ACII files, I am guessing the NTF files would be better but
my FW Tools won't recognise them, any ideas?

Regards

Martin.





-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Tueller,
Shayne R Civ USAF AFMC 519 SMXS/MXDEC
Sent: 10 November 2010 22:47
To: OpenSceneGraph Users
Subject: Re: [osg-users] osgdem/vpb OS Open Data and geocentric

Try the following gdal command on your data (infile) that is not
geo-referenced...

gdalwarp -t_srs "+proj=latlong +datum=WGS84" -r bilinear <infile> <outfile>

and feed the resulting outfile into osgdem...

-Shayne

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Martin
Naylor
Sent: Wednesday, November 10, 2010 11:58 AM
To: 'OpenSceneGraph Users'
Subject: [osg-users] osgdem/vpb OS Open Data and geocentric

Hi all,
I have downloaded the free Ordinance Survey data and have managed to convert
the height data and raster data using gdal_translate.
Everything works brilliant when the option --geocentric is omitted.
Once --geocentric is included osgdem finished within about 20 seconds my
planet now looks like a sphere with bobbles attached, almost like a leather
football.
I am sure it's something to with the data and the format it is in, here is
gdalinfo of my converted data (excluding colour data).
Does anyone know how I should convert it over so I can get a whole earth, I
am guessing it's something to do with the format although osgdem reprojects
the data when --geocentric is included?
Using the latest SVN as of last Friday. The OS data is the best FREE data I
have come across so far, although I am sure there must be higher resolution
height data.


d:\OS OPENDATA\build\ras250_gb_converted>gdalinfo HP.tif-geo.tif
Driver: GTiff/GeoTIFF
Files: HP.tif-geo.tif
Size is 4000, 4000
Coordinate System is `'
Origin = (400000.000000000000000,1300000.000000000000000)
Pixel Size = (25.000000000000000,-25.000000000000000)
Metadata:
  TIFFTAG_IMAGEDESCRIPTION=1:250 000 TILE HP.TIF
  TIFFTAG_DATETIME=2010:05:04 10:31:47
  TIFFTAG_COPYRIGHT=ORDNANCE SURVEY CROWN COPYRIGHT 2010
  TIFFTAG_XRESOLUTION=254
  TIFFTAG_YRESOLUTION=254
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Image Structure Metadata:
  COMPRESSION=LZW
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (  400000.000, 1300000.000)
Lower Left  (  400000.000, 1200000.000)
Upper Right (  500000.000, 1300000.000)
Lower Right (  500000.000, 1200000.000)
Center      (  450000.000, 1250000.000)
Band 1 Block=256x256 Type=Byte, ColorInterp=Palette
  Color Table (RGB with 256 entries)

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to