Using the Custom Scenery TerraGear Toolset: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 162: Line 162:
One of the interesting things that you can do with TerraGear is try out new scenery data source, or modify the scenery data yourself. Here are some pointers:
One of the interesting things that you can do with TerraGear is try out new scenery data source, or modify the scenery data yourself. Here are some pointers:
* The vmap0 landmass information is not very accurate. There is a more accurate coastline dataset called GSHHS. However, this doesn't match our scenery at the moment, so is not used. At present, if you want to try it, you will have to download the GSHHS dataset (take version 1.2) and run the gshhs command to convert it to TerraGear. The shapefile in the mapserver won't work as it is line data rather than a polygon.
* The vmap0 landmass information is not very accurate. There is a more accurate coastline dataset called GSHHS. However, this doesn't match our scenery at the moment, so is not used. At present, if you want to try it, you will have to download the GSHHS dataset (take version 1.2) and run the gshhs command to convert it to TerraGear. The shapefile in the mapserver won't work as it is line data rather than a polygon.
* The maprserver includes information form the Open Streetmap project. You can use these shapefiles directly instead of the v0_road shapefile. They are quite neat, as they should roundabouts and freeways very clearly.
* The mapserver includes information form the Open Streetmap project. You can use these shapefiles directly instead of the v0_road shapefile. They are quite neat, as they should roundabouts and freeways very clearly.
* You can use a GIS editor such as QGIS or GRASS to edit the shapefiles, for example to add missing roads or villages.
* You can use a GIS editor such as QGIS or GRASS to edit the shapefiles, for example to add missing roads or villages.


= Troubleshooting =
= Troubleshooting =


Below is a list of common problems and solutions. If in doubt - google. Many problems have been hit before:
Below is a list of common problems and solutions. If in doubt - google it. Many problems (particularly when compiling TerraGear) have been hit before:


* Crashes in genapts. Sometimes genapts will crash when dealing with a particular airport. In that case, try running it again with the --start-id argument to start at the airport it failed on, and the --nudge argument which tries to nudge the calculations in the right direction.
* Crashes in genapts. Sometimes genapts will crash when dealing with a particular airport. In that case, try running it again with the --start-id argument to start at the airport it failed on, and the --nudge argument which tries to nudge the calculations in the right direction.
Line 176: Line 176:
** You haven't run shape-decode on the v0_landmass shapefile as Default  
** You haven't run shape-decode on the v0_landmass shapefile as Default  
** You didn't include the correct directories in fgfs-construct.
** You didn't include the correct directories in fgfs-construct.
* My scenery includes data I removed from the shapefiles. If you are editing shapefiles, you should delete the appropriate work subdirectory before running shape-decode. Otherwise the changes will be in addition to those already present.
* Generate scenery includes data removed from the shapefiles. If you are editing shapefiles, you need to delete the appropriate work subdirectory before running shape-decode. Otherwise your changes willbe in addition to those already present.