• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Using GIS data to make smooth, accurate roads

Messages
496
Country
us-missouri
After trying a few options out in QGIS it looks like there are no 'easy' solutions. And by easy I mean not having to hand-draw many millions of streams, lakes, rivers, and ponds across the continental United States. Maybe merging the numerous vector layers for each state I can create a single hybrid polygon/line and try compiling that.
 
Messages
7,450
Country
us-illinois
Hi Chris:

I found (1) tutorial on a way to do this in QGIS thus far: :coffee:



GaryGB
 
Messages
496
Country
us-missouri
I actually did try your suggestion last night. There must be a setting I missed because all I got was a polygon where the first and last points of the line connected instead of an offset like you mentioned previously where you'd have a thin polygon that followed the line instead of the stock texture. When I tried again, there was no option I missed; it doesn't seem to be a good option for flight simulator streamlines.
 
Last edited:
Messages
7,450
Country
us-illinois
Hi Chris:

Search on BLN of the SBuilderX Help file; there you will also find a link to the sections on "Append - Surfer BLN"

If you follow the link to the "Appendix" section of the SBuilderX.ini file, of particular note will be the [BLN] section, and the Join parameters.

For incidental discussions on SBuilder features used to create a "closed Line", see:



[EDITED]

CAVEAT: Take note of this SBuilderX.INI file parameter value regarding the 'MakeClosedLineFromPoly' function by SBuilderX author Luis Sa': :alert:

Luis Sa said:
at PTSIM Forum:


Hi Horst,

I am divided in making the scenery of Portugal and in keeping track of the changes that I introduce in SBuilder. In making the scenery I discover several additions that would be useful to include in SBuilder. When I finish the scenery (it is approaching the end) I will update the SBuilder Help. I will try to have the last compiled EXE available in file sbxxx.zip. I will also try to post here (or avsim) the additions that worth to announce.

The problem with MakeLine (from Poly) is a recursive one. The problem has to do with BLN format or with my interpretation of it. Say that you import a BLN set of N points. This set of points will be a line if Point1 is different from PointN. If Point1 = PointN then the set is a polygon. I saw this in:


Am I right? When I save a 27-point polygon, I save 28 pairs of coordinates, with Point28 = Point1.

If you have a N-point line with Point1 = PointN and you export to BLN and import again, you will get a polygon! Did you follow me?

Having said that I will change "MakeLine from Poly" to have repeated points! I will make sure that "MakePoly from Line" will not create a duplicate point if the line is closed!

I will be making the change and I will upload sbxxx.zip. Wait until I confirm this.

<font color="red">Edit 5 minutes later!</font id="red">

Horst: there is a switch in the INI file! I forgot I had it!

MakeClosedLineFromPoly=False ; lines will be be closed when using Make Line

Regards, Luis
[END_EDIT]


Whereas a legacy format 'minimal' source data set for Poly-lines is X,Y,Z (Lon,Lat,Alt), SBuilderX can import both ESRI *.SHP and legacy format Surfer *.BLN files that contain more fields than just X,Y,Z ...which can be used to set Start and End line width to establish a 'taper'.

The SBuilderX *.SHP Append method requires an interactive process to set Start and End width for tapered poly-lines to be created from X,Y,Z or other multi-feature line source files.

Obviously it would be be a lot of work to manually assign such a set of parameters to each individual line during import, so one can do this in the SBuilderX.ini file prior to the ex: *.BLN Append procedure, assuming one has configured the derived source data in QGIS before exporting the *.BLN source file to be Appended by SBuilderX.


FYI: A discussion (in the context of SBuilder for FS9) of SBuilder options when working with these tasks ...is here:




It may also be possible to perform these functions in Google Earth and/or FSX-KML, then use Dick's KML2BLN utility to convert *.KML data for a *.BLN to be Append-ed by SBuilderX.


Optionally, one may just intend to only assign a 'taper' to line segments rather than converting Poly-lines to Polygons.

But, preferably, one may identify a method to define Poly-line segment widths, convert them into Polygons in QGIS, then merge those Polygons having matching Water Class texture types ...so that one has a way to define these attributes semi-automatically when preparing CVX vector GUID assignments.

In the event that a SBuilderX 'Append' has too limited of a feature assignment function, one may instead be able to create a fully configured SBuilderX EXchange *.SBX ASCII text file by editing attributes for Poly-lines in that format, then 'Importing' that source to SBuilderX.



Here's a QGIS work-flow to create attributes for width as a function of 'flow direction' along defined line segments: :pushpin:



BTW: Have you seen the new USGS attributes now being made available for Hydrology ? :idea:





Some related Search results on this query at Google which may also prove informative:


Hope these ideas help a bit more with evaluating the feasibility of this aspect of your quest. :)

GaryGB
 
Last edited:
Messages
496
Country
us-missouri
I saw the high-resolution option in the USGS National Map page I use for my GIS data, but hadn't tried it until now. The areas are cut up into smaller segments which seem to be arranged by water basins instead of man-made partitions like states or latitude/longitude sections like I have been using but I am testing a section today. Hopefully this short-cuts the streamline priority issue because the streams coupled with the terrain really make flying low and slow amazing!

Thanks,
 
Messages
496
Country
us-missouri
Returning to the original intent of the post: using a shapefile of all Missouri roads, I have edited out smaller roads, leaving layers of interstates, as well as federal and state highways using filters like "STATE_ROUT" != 'NULL'

It worked great for what I needed apart from interstate on- and off-ramps do not appear and I can't find any entry in the database that can single them out from everything else. If I include all roads, that will not only look overly busy but will crowd out the autogen and city textures that work just fine for me. While I can now navigate around using (now smooth and winding) roads, they really lose some character without ramps. Does anyone know of a way to tell QGIS to include them? I would do it by hand if I didn't need them for the whole United States.

Thanks!
 
Last edited:
Messages
496
Country
us-missouri
Gary,
I've noticed that most of what you write makes no sense the first time I read it. But I go back a day or two later (after reading a bunch of other things) and I have made sense out of enough other things that I am smart enough to grasp the solutions that you're talking about. It's a long, slow process involving learning a ton of complicated things, which would be impossible without help from people like you and a few others on this forum.

My original intent was to do terrain mesh and see what else would be possible. You've opened up enough doors that not only is mass production of high resolution mesh scenery possible, I now have so many other components coming into place that make my scenery like digital magic. Missouri (my test area) has so much going on and is so visually pleasing that it blows mountainous areas like California away now! I can't imagine what California will look like when I'm done!

Thank you very much for all the help!
 
Messages
7,450
Country
us-illinois
Thanks again for the kind words. :)


FYI: I found this tutorial on QGIS: "Tutorial : How to use QGIS for Hydrology" :teacher:

https://www.engenious.com/Content/Tutorial.pdf


Of particular interest was this section: "How to get Elevations at Nodes From DEM"

...using the QGIS "Point Sampling Tool Plugin"


Also, I found this tutorial:

"QGIS Extract Ground Elevation"



This info may prove useful for roads and other vector objects, as well as in your work with water bodies: :idea:



GaryGB
 
Last edited:
Top