Howto:Create custom terrain: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 75: Line 75:
* '''Towns''' are much smaller than urban areas and you may not be able to pick up any distinct patterns.  
* '''Towns''' are much smaller than urban areas and you may not be able to pick up any distinct patterns.  
* '''Industrial Areas''' should be digitized if you know where the areas are. They are usually characterized by large, boxy buildings on the outskirts of urban areas, though this obviously varies by city!
* '''Industrial Areas''' should be digitized if you know where the areas are. They are usually characterized by large, boxy buildings on the outskirts of urban areas, though this obviously varies by city!
===Digitizing tips and tricks===
* You can change the color of the shapefile by clicking on it in the left display toolbar. It usually is a good idea to set the transparency of the layer you are digitizing to between 50 and 75 percent so you can still see what you have digitized underneath the polygon. This can help you fix errors as they are introduced.
* If you have a large feature to digitize, such as a forest, you don't have to digitize all of it at one time! Instead, you can create small polygons labeled as 'forest' next to each other. Merging them into one polygon is pretty straight forward:
*# Go into edit mode and pick the Select feature (<tt>View > Select Features</tt>).
*# Click on the first polygon and then on the other(s), while holding the Ctrl-key. The selected polygons should turn yellow.
*# Click the Merge selected features icon (or <tt>Edit > Merge selected features</tt>).
*# Check whether the classes correspondend (if not, you might be mixing two different areas!) and click OK.
* If there is a lake (or other area) in the middle of a forest you have already digitized, you can use the QGIS ring feature to cut a hole in the polygon. You can then fill in the hole by creating another polygon.
===Eporting the shapefile===
In order to turn the landclass into scenery we have to split it into seperate shapefiles for each landclass.
# Open the Attribute table (<tt>Layer > Open Attribute table</tt>).
# Type "Sand" (or another class) into the search box and press the Search button. This will select all polygons that have the Sand class assigned.
# Go to <tt>Layer > Save Selection as Shapefile</tt> and save the sand shapefile somewhere on your computer.
# Do the same for all other classes.
# To make the difference between land and sea (landmass) we save the entiry shapefile (<tt>Layer > Save as Shapefile</tt>).


We have been working with UTM coordinates so far. To generate scenery that can be used in FlightGear we need to convert the shapefiles to the latitude/longitude format.
We have been working with UTM coordinates so far. To generate scenery that can be used in FlightGear we need to convert the shapefiles to the latitude/longitude format.
Line 83: Line 101:
*# Look up your projects UTM coordinate through [http://upload.wikimedia.org/wikipedia/commons/e/ed/Utm-zones.jpg this image]. For Texel this is 31U, so we choose UTM31 in fGIS. If your project is located south of the equator, you tick the S box.
*# Look up your projects UTM coordinate through [http://upload.wikimedia.org/wikipedia/commons/e/ed/Utm-zones.jpg this image]. For Texel this is 31U, so we choose UTM31 in fGIS. If your project is located south of the equator, you tick the S box.
*# Set the Output Shapefile Project to <tt>Lat./Lon.</tt>.
*# Set the Output Shapefile Project to <tt>Lat./Lon.</tt>.
*# Now click the Input Shapefile button to load the shapefile that we exported from qGIS.
*# Now click the Input Shapefile button to load the shapefile that we exported from QGIS.
*# Using the Output Shapefile button we decide where we want to store the lat/lon shapefile. This has to be a non-exisiting file, so remove before updating.
*# Using the Output Shapefile button we decide where we want to store the lat/lon shapefile. This has to be a non-exisiting file, so remove before updating.
*# Click the Convert button.
*# Click the Convert button.
*# Repeat this process for all shapefiles.
These shapefiles can be send to the custom scenery database in the name of papillon81 and statto (contact through IRC or Forum).


===Generating scenery===
===Generating scenery===

Navigation menu