• 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 with Oceans

Messages
22
Hi friends!

Some may remember my thread about importing coastlines into FSX and what to do to accomplish this task.

After a few e-mails and many hours spending in trying different approches, I've come to the following result:

I now do have a shapefile that contains one polygon covering the whole word with all the land areas being holes in this polygon.

When I'm push my data through Shp2Vec it says "Attribute field missing", but have absolutely no idea what that means!? My XML-File contains two fields (GUID and UUID) and my DBF file does have these files, where UUID is just a unique ID for each polygon and GUID is the water hydro polygon.

Any ideas on what's going wrong?

Thanks,
Bernd
 
a 'shapefile' is actually a collection of files including a *.dbf file. This holds the attributes (i.e. text information) which is associated with each 'feature' (i.e. point, line, polygon)

For Shp2vec to know what the polygon represents, it reads the associated record in the dbf file. You will need two columns in this file- guid and uuid populated with the correct values relating to your polygon.
 
Hi!

Thanks for your answer, but my DBF file contains two columns (UUID which is just a unique guid for each polygon and GUID that represents the water poly guid from FSX).

However, Shp2Vec complains "attribute field missing".

Does the shapefile have these "fields" too? Do I have to attach a UUID-field to each of the polygons in the Shapefile? Which editor is recommended for that?

Thanks,
Bernd
 
Not as far as I know....I think the .shp data is linked via the FID (Feature ID). There is one row in the attribute table/dbf per 'feature'.

I use ArcGIS software for my job so it obviously takes care of all that for me. I believe there are a few free GIS tools which allow editing of ESRI Shapefiles.

Try possibly changing your UUID values to all zeros (i.e. "0000-0000-000000-00000000" [or however many zeros it is) and double check the XML- Don't change it except for the name which should match the name of your shapefile (i.e. Test.dbf, Test.shp, Test.XML test.etc etc)
 
Hi!

Thanks for your answer, but my DBF file contains two columns (UUID which is just a unique guid for each polygon and GUID that represents the water poly guid from FSX).

However, Shp2Vec complains "attribute field missing".

Does the shapefile have these "fields" too? Do I have to attach a UUID-field to each of the polygons in the Shapefile? Which editor is recommended for that?

Thanks,
Bernd

Have a look at the sample files included with the Terrain SDK. You'll find your DBF file is probably missing the following fields: Texture, SlopeX and SlopeY.

-Doug
 
Hi!

That was it, the fields Texture, SlopeX and SlopeY were missing.

How Shp2Vec doesn't complain about missing attributes but it keeps processing the file forever. After 7 hours I just cancelled it, because it seemed to do nothing.

Is there any way to check if it actually does something? Like having a temporary BGL file that Shp2Vec writes and where I can check if it's growing?

If someone would be so kind to check my shapefiles and xml stuff, I could upload it! That would be a great help (just write a PN or so).

Thanks in advance!
Bernd
 
Yes it will take a LONG time to proces a very large complex polygon. Try splitting/cutting the single polygon into smaller chunks if it isn't working.

I've never had Shp2vec crash though- It is a fantastic little tool. Basically, if the processing 'dots' are still moving, then it is still working....if you have a really large polygon those dots will take a long time to move ;)
 
Hi!

That was it, the fields Texture, SlopeX and SlopeY were missing.

How Shp2Vec doesn't complain about missing attributes but it keeps processing the file forever. After 7 hours I just cancelled it, because it seemed to do nothing.

I just created a bug against myself to investigate what might be going on.

-Doug
 
Back
Top