• 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.

shp2vec and generating railways

Messages
258
Country
luxembourg
Hi guys,

I have a big problem with shp2vec. I tried it now on several multiple ways but none was successful. I have downloaded my .shp files from GeoFabrik to further process them. I then have added the railway.shp-file to my GIS, deleted all unused attribute table field, added the two fields for GUID and UUID (with the type GUID) and converted everything from multipart to singlepart feature. Finally the attribute table looks like this:
Attribute_Table.jpg


I then reexported that attribute table/layer to the new RRX0000.shp file and I also created the RRX0000.xml file with the following content:
Code:
<?xml version="1.0"?>
<metadata xml:lang="en">
    <FlightSim>
        <Geometry clipLevel="11"></Geometry>
        <AttributeSet>
            <AttributeBlock name="Railways" guid="{33239EB4-D2B8-46F5-98AB-47B3D0922E2A}">
                <Field name="Uuid" type="GUID" />
            </AttributeBlock>
            <AttributeBlock name="Texture" guid="{1B6A15BB-05FB-4401-A8D1-BB520E84904C}">
                <Field name="Guid" type="GUID" />
            </AttributeBlock>
        </AttributeSet>
    </FlightSim>
</metadata>

When I call now shp2vec via the command prompt, I get:
Code:
Shp2Vec.exe version 1.4.4747.0  -  VectorQuad 6
Copyright (c) 2006 Microsoft Corporation. All Rights Reserved.

Processing RRX0000.shp
..................

Writing vector data to E:\ProjectLuxembourg\Railways\New\cvx0000

DONE (1875 shapes)

Compression statistics
                          Type      Count   Bytes in  Bytes out
               Null (raw data)          0          0          0
              Predictive Delta        461      88696      30034
                  Quantization       1448      48992      24323

So all looks fine. I then take my file, add them to a new scenery layer and activate that scenery layer in my FSX. After loading up I am however not able to see my railroad. It is simply not shown. I then also deactivated any other addons (meshs, vector data, airports) but the railway is still not shown.
Can anybody tell me now, what I am doing wrong? I am trying to figure this out now for some time but never found a solution.
Thank you for any help!
 
What do you mean with photo textures? I just take the GUID and the UUID like stated in the SDK under .../doc/Environment Kit/Terrain SDK/Terrain and Scenery.html

I do not use any photoreal ground textures or so.
 
Hi Kevin,

the GUID in the .DBF file needs to reference the GUID of the actual vector(s) you're placing, not the type GUID that is required for the .XML file. For the default railway vectors that would be {DDE116BF-0E97-4EB6-A9EC-7EF93D9F2D0E}.

The easiest way to find the corresponding GUIDs is to open your active terrain.cfg file and then search for (e.g. "rail") or scroll to the block you're interested in and copy its guid= line.

Cheers, Holger
 
Ahh thanks Holger for that! Now it works.
One question now since I am not familiar with that: are vector applications like Orbx Vector changing that terrain.cfg file to change GUIDs or are these values on any running FSX system the same?
 
Hi Kevin,

both Ultimate Terrain X and Orbx Vector (and FTX Regions) add their own entries to the terrain.cfg file, they don't alter the existing default blocks. Thus, as long as you stick to the default entries then all users should have them in their terrain.cfg file. If you don't want to inadvertently call non-default entries then it's probably a good idea to store a copy of the default terrainc.fg file with your project documents and only use that file as reference for picking GUIDs.

Cheers, Holger
 
Back
Top