
Recently, a client wanted some UK 3D terrain models - in Google sketchup format.
I didn't suspect this would be a problem as I know Sketchup well having used it for many years. I knew it had the ability to display some terrain via the Tools > Google Earth menu > Toggle Terrain (as long as you've set the location). But this wasn't detailed enough for my client, the data they wanted to use was Ordnance Survey Panorama.
The second option was to use the DEM import function - but that would have involved converting Panorama data into the USGS DEM format, this would probably work, but sounded overly complicated.
So I had a dig around for SketchUp plug-ins that would import meshes of 3D elevation data, and of course, there was something that did exactly that job - Cloud v8.
So I Downloaded and dropped it into the plugins folder and gave the demo a try.
All I needed now was to get the Panorama data into that format.
Once again, gdal v1.8 to the rescue...
I already had the Panorama data in geotiff format (using gdal to convert). So then it was just a matter of using the gdal XYZ ascii export format and specifying a window (in OS national grid coordinates in this case).
gdal_translate panorama.tif snowdon.txt -projwin 260100 355500 262100 353500 -of XYZ
Then, opening up Sketchup and the cloud plug-in
File > Points Cloud > Import > (pick a point on screen for origin) then select file snowdon.txt, and use the space delimiter.
The triangulation can take a few minutes...
Eh voila...



