Created: January 27, 2024 Updated: April 27, 2025
Generate Roads
This tutorial shows how to use Load GeoJson files correctly. (Download File Example)
From Unity Editor:
. Import GeoJson Lib by clicking on 'GIS Tech/GIS Terrain Loader/Install Libs/GeoJson/Import_GeoJson'.
. GIS Terrain Loader uses GeoJson lib as thirdy-party under this license (GeoJSON , NewtonSoft).
. To customize prefabs and attributes take a look on Vector tutorials.
. in this example lines type of 'LineString', i added 'TYPE' to roads attributes and 'Local Road' for road prefab.
Import GeoJson Lib
Road attribute = 'TYPE', value = 'Local Road'
add Road attribute = 'TYPE'
Create new Road prefab where
value = 'Local Road'
Road value = 'Local Road'
Result
Generate Buildings
To Generate Building from GeoJson file ('Take a look at 'Scenes\Examples\Vector Data\07_ShowBuildingDataBase_GeoJson'), download the example used in the Demo scene '07_ShowBuildingDataBase_GeoJson' (Download File Example).
Road attribute = 'NAME', value = 'HOWARD UNIVERSITY'
add Road attribute = 'NAME'
Uncheck this option
Create new Building prefab and set building Tag
Final Result