Jump to content

Recommended Posts

All,

I've created roads and other shapefiles in QGIS with the purpose of importing them in TB:

 

M9dhFFoqGO.JPG

 

However, when I "Import > Shapes..." from TB, I see an import dialog (in the worst scenario, TB crashes) but then I don't see my roads.

 

Yes, "View Shapes" is active and as you can see from the image the Easting is 200000 and 0 North (and so is the terrain in TB).

 

...Any ideas?

 

Share this post


Link to post
Share on other sites

Yes indeed:

 

NMuYZLGMrN.JPG

 

It took a very long time to build this, and now I'm unable to import. If anyone can help, it would be seriously appreciated.

 

_SCAR

 

Share this post


Link to post
Share on other sites

I would suggest processing your shapefile layers through terrain processor before importing into TB, (most likely) it will make whatever processes you plan to do with the shapefiles much faster and organized.

 

Also, make sure in the layer attributes table that everything is correct.  And you must convert all polygons to HECTARES as demonstrated in the Terrain Processor manual.

 

Share this post


Link to post
Share on other sites

TB don't like too many big shapes open, import your layers one by one.

Share this post


Link to post
Share on other sites

I'm trying to import only streets. This is what I get:

 

IQWpWz7KJN.JPG

 

Any help would be greatly appreciated...

 

Share this post


Link to post
Share on other sites
20 hours ago, pooface said:

I would suggest processing your shapefile layers through terrain processor before importing into TB, (most likely) it will make whatever processes you plan to do with the shapefiles much faster and organized.

 

Also, make sure in the layer attributes table that everything is correct.  And you must convert all polygons to HECTARES as demonstrated in the Terrain Processor manual.

 

 

If I open the shapefile in TP everything looks good:

 

AfOifvooE7.JPG

 

However, there is no conversion tool in there (AFAIK), so what should I do once I've opened my shapefile there?

 

 

Share this post


Link to post
Share on other sites

That's weird, maybe the scale is off or something...

 

This is why I just do all shapes in TB now, half the time when you import it doesn't have enough points anyway. Then arma adds random curves to the roads, so you waste even more time fixing them all

Share this post


Link to post
Share on other sites

Ok but if you want to import 600 roads, and everything is ready in QGIS, you don't really want to redo everything by hand...

 

This is what I get when I click on "Import > Shapes...", after I select my .shp file:

 

a_O7QYW0Bf.JPG

 

Maybe the issue lies here?... What am I supposed to do?

Share this post


Link to post
Share on other sites

This is nonsense, I can even open it up in mapshaper.com, an online resource for shapefiles:

 

WPSQFDgiWk.JPG

 

 

Share this post


Link to post
Share on other sites
On 7/1/2017 at 6:45 PM, pooface said:

Also, make sure in the layer attributes table that everything is correct.

 

 

Can you please expand?

Share this post


Link to post
Share on other sites

Hey _SCAR

 

see https://community.bistudio.com/wiki/Terrain_Processor:_Tutorial and look at 6.2 Preparing Roads (although it appears your Roads in your project are fine?)

 

For shapefiles, I am pasting from the same page as linked above from

7 Generating Map Content in TP: Forests etc:

_____________________________________________________________________________________________________________________________________

QGIS

How to compute area in hectares :

  • Toggle editing on selected layer
  • Open Attribute Table
  • Open Field Calculator
  • You can add new column or update existing field
  • Use expression : $area / 10000

IMPORTANT:

Sometimes values are wrong. It's bug in QGIS. Start new project, add only one layer and try it again. If it fails again, check your projection or simplify shape geometry.

_____________________________________________________________________________________________________________________________________

Share this post


Link to post
Share on other sites

Than you pooface, I found a different workflow that solves all of this (see my guide here): 

Thanks for your help.

 

Best,

_SCAR

  • Like 1

Share this post


Link to post
Share on other sites

ah, yes good on you for posting your method.  Helps everyone to provide many solutions from different angles!

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×