Advertisement
BobTheHunted

Terrain road polyline densify points

Oct 23rd, 2017
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. Add more points to your road shapefile polylines to ensure better visual accuracy to how roads appear in game.
  2. Requires QGIS with the following plugins: QChainage, PointsToPaths
  3.  
  4. 1. Export your roads.shp from TB and import it into QGIS.
  5. 2. Make sure the necessary plugins are installed. Select the roads layer and click on the "QChainage" icon.
  6. 3. Input whatever distance between points you want, I use 50 meters.
  7. 4. In the "Labeling" tab, check the box that says "Automatically Label the Layer", and in "Decimal places", type 10.
  8. 5. Once the new layer with points is generated, click on the "PointsToPaths" icon.
  9. 6. For input point layer, choose the newly generated points layer (Usually named "chain_roads".)
  10. 7. Leave "Point group field" alone, but change "Point order field" to "c_Meters".
  11. 8. Create the output shape file, obviously don't overwrite roads until you're sure it works the way you want.
  12. 9. Once processed, if you hide all other layers aside from the one you just created with "PointsToPath", you should see polylines with vertices every 50 meters (or whatever you chose)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement