DEM .XYZ

classic Classic list List threaded Threaded
3 messages Options
marcoma9023 marcoma9023
Reply | Threaded
Open this post in threaded view
|

DEM .XYZ

Hello,

I need to integrate a the elevation data from a .xyz files.

I tried to use the GDALOptions as follow,

osgEarth::Drivers::GDALOptions demOpt;
demOpt.url() = "DMV0125";

osg::ref_ptr <osgEarth::ElevationLayer> demLayer = new ElevationLayer("DEM SLO", demOpt);
demLayer->setOpacity(1.0f);
demLayer->getCacheSettings()->cachePolicy() = osgEarth::CachePolicy::USAGE_READ_WRITE;
demLayer->getCacheSettings()->setCache(cache);
map->addLayer(demLayer);

but the output is: Warning : can't open DMV0125\VTL2701D96.XYZ. Skipping it

Can someone help me?

Thanks
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: DEM .XYZ

I don't know, but start by running gdalinfo on your dataset to see if there are any problems.
Glenn Waldron / Pelican Mapping
marcoma9023 marcoma9023
Reply | Threaded
Open this post in threaded view
|

Re: DEM .XYZ

The output of gdalinfo is:

ERROR 1: Ungridded dataset: At line 182, change of Y direction
gdalinfo failed - unable to open 'VTA2320D96.XYZ'.