Created: January10, 2024 Updated: January10, 2024
In case of DEM file not projected in Geographic WGS84 EPSG= 4326, We need to use 'DotSpatialLib' to be able to manipulate projections and coordinate inside Unity Engine.
In this Example we will load a DEM projected in UTM NAD83/EPSG=6341. Download
Select the menu item «Tools/ GIS Tech / GIS Terrain Loader / Install Libs /DotSpatial /Import_Dotspatial», To Import DotSpatial Lib.
Import GIS Data files into 'GIS Tech\GIS Terrain Loader\Resources\GIS Terrains' Folder.
Drag and Drop Your DEM file into the DEM Field.
Set 'Projection Mode' to auto Detection to read EPSG from tiff metadata.
Configure the fields and click on «Generate Terrains» button.
EPSG and All terrain data appears in terrain Metadata panel.
In some cases GTL is not able to read the correct projection, se we need to set 'Projection Mode' to 'Custom EPSG' and set the EPSG of the tiff file.
We can find the EPSG code via GIS Software (QGIS, Globalmapper, ArcGIS ....).
In this example file, the tiff file contains all metadata except the EPSG, the projection of that file must be 'Lambert 93- RFG93' EPSG = 2154 (Download File)