Omkaranathan wrote: > Hi, > > I am trying to convert terrain data from Lat/Long to UTM coordinates. > When converting the data using gdal_warp (from gdal) and using > VPB(osgdem) to produce the terrain, I am getting the coordinate system > correct but there are problems with edges.(Snapshot > attached-converted_gdal.jpg) > I tried to use osgdem with > osgdem -t input.tif -d input.dem --wkt "+proj=utm +zone=45 > +datum=WGS84" -a output.osga > but the coordinates remains the same. > Is there any other way by which I can achieve this.? > or am I doing something wrong? > > Hi,
You problem comes from the fact that reprojected input data is not horizontally and vertically aligned on the UTM grid. However, GDAL and osgdem always work on datasets specified by the lowest and highest coordinate pair of corners -> H&V aligned to coordinate system grid. If you do not want edge effects, you should specify an output extent including only the inner corners of the datasets. Antoine _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

