- Messages
- 88
Hi,
i have a large ascii csv (lat,lon,altitude) which i convert to a geotiff with gdal_grid -l layername layername.vrt layername.tif
the csv (example, altitude in meter):
x,y,z
14.21989837,50.87816992,326.79
14.21989837,50.87817920,326.79
14.21989837,50.87818848,326.79
14.21989837,50.87819776,326.79
14.21989837,50.87820704,327.56
the layername.vrt has the following structure:
<OGRVRTDataSource>
<OGRVRTLayer name="layername">
<SrcDataSource>layername.csv</SrcDataSource>
<GeometryType>wkbPoint</GeometryType>
<LayerSRS>WGS84</LayerSRS>
<GeometryField encoding="PointFromColumns" x="x" y="y" z="z"/>
</OGRVRTLayer>
</OGRVRTDataSource>
the tiff is not readable by resample.exe, opened with QGIS and saved again as geotiff.
Now resample.exe takes it and compiles a bgl. But the bgl just creates a hole in the existing mesh, like the altitude is 0m, but the terrain altitude is 340m.
the inf file looks like this:
[Source]
Type = GeoTIFF
Layer = Elevation
SourceDir = "C:\SBuilderX313\Tools\Work\layername"
SourceFile = "layername.tif"
MinValidValue = 0
[Destination]
DestDir = "Output"
DestBaseFileName = "layername_Elevations"
DestFileType = BGL
LOD = Auto
Is there anything wrong with my conversion? How would you create a mesh from a csv file?
Thanks for any suggestions
i have a large ascii csv (lat,lon,altitude) which i convert to a geotiff with gdal_grid -l layername layername.vrt layername.tif
the csv (example, altitude in meter):
x,y,z
14.21989837,50.87816992,326.79
14.21989837,50.87817920,326.79
14.21989837,50.87818848,326.79
14.21989837,50.87819776,326.79
14.21989837,50.87820704,327.56
the layername.vrt has the following structure:
<OGRVRTDataSource>
<OGRVRTLayer name="layername">
<SrcDataSource>layername.csv</SrcDataSource>
<GeometryType>wkbPoint</GeometryType>
<LayerSRS>WGS84</LayerSRS>
<GeometryField encoding="PointFromColumns" x="x" y="y" z="z"/>
</OGRVRTLayer>
</OGRVRTDataSource>
the tiff is not readable by resample.exe, opened with QGIS and saved again as geotiff.
Now resample.exe takes it and compiles a bgl. But the bgl just creates a hole in the existing mesh, like the altitude is 0m, but the terrain altitude is 340m.
the inf file looks like this:
[Source]
Type = GeoTIFF
Layer = Elevation
SourceDir = "C:\SBuilderX313\Tools\Work\layername"
SourceFile = "layername.tif"
MinValidValue = 0
[Destination]
DestDir = "Output"
DestBaseFileName = "layername_Elevations"
DestFileType = BGL
LOD = Auto
Is there anything wrong with my conversion? How would you create a mesh from a csv file?
Thanks for any suggestions


