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

ScenProc - difficult to export Shp file

Messages
68
Country
italy
Dear Arno,
thank you for your precious applications!
I try to understand this last beautiful application ScenProc.
I try to follow your tutorial and see the video, but in fact missing some passages. I follow the first Step:

1- open street map, choose a local map (ex: Belgrade), and export in OSM.
i find in Geofrabric directly OSM and SHAPE zip files.
2- open Quantum GIS and import OSM. now i have the map with lines, polygons and points (no buildings and no vegetations like your video) in the Info i dont find Type voice.
3 - this step, is to export in SHP file ....HOW? in the video you pass directly to a GVIM applications.
4 - from a SHP files missing no how to export in FSX files (drag a .txt file but how to genereate this file?

many thanks if you support me,
Simone
 
Hi Simone,

How to get the shapefiles is up to the user, scenproc only starts working when you actually have them.

I prefer to download the shapefiles from the geofabrik site. That's much easier then converting the osm data to shapefiles yourself. You can download them per country or region.

After that I usually select the part I need for the scenery. You can do this in a editor like QGIS or with a command line tool like FwTools. Then you get the clipped shapefile that you can use in scenproc. That's where the video tutorial starts.

As suggested some time ago in the forum,I'll try to make a tutorial covering all these steps later.
 
thanks Arno, for the fast reply.
So now, i go directly to Geofabrik site and download in my case Serbia, open building and natural files in Qgis and select my Belgrado Area. that's fine.
I select with rectangular or polygon my interest area and save as vector Shapfile another time. now in my work folder i have 5 files:
1 x CSV, 1 x PRJ, 1x TQJ and 2 files source and compile.

In your tutorial i dont understand the send you start in streetmap (the files are directly donwload from geofrabric) , from QGIS you pass in GVIM application and which file you open of 5? about this passage, the file to do to Scenproc must be a .txt file? how to convert shpfile to .txt file? GVIM?
 
Hi,

The file you open in a text editor (I use GVIM, any text editor is fine) is the configuration file for scenProc. You will have to create that file yourself, it does not exist already.
 
ok Arno,
now i've created the txt file with notepad, this is the file:

# Beograd autogen test
IMPORTSHP|beograd_agn_test.shp|NOREPROJ
#
SPLITGRID|AGN
#
SETAGNBUILDINGHEIGHT|1.0;0.0;0.0;0.0
# SETAGNBUILDINGTEXTURE|autogen_beograd
#
CREATEAGNPOLYVEG|FTYPE=POLYGON;type=forest|{e8b937fd-a1f2-4bd5-8548-2c80d30102af}
CREATEAGNGENBUILD|FTYPE=POLYGON;FROMFILE=beograd_agn_test.shp;FWIDTH<20|{5ae04eb6-934c-4f63-bb48-5e7dee601212}|MAXRATIO=2
CREATEAGNGENBUILD|FTYPE=POLYGON;FROMFILE=beograd_agn_test.shp;FWIDTH>20|{6089A0BD-CED1-4c47-9A9E-64CDD0E16983}
CREATEAGNROWHOUSE|FTYPE=POLYGON;FROMFILE=beograd_agn_test.shp
CREATEAGNLIBOBJ|FTYPE=POINT;type=light|{0017a263-464f-14fd-f77f-2996fed44864}
#
WRITEAGNFILES|E:\programmi\Microsoft Games\Microsoft Flight Simulator X\Addon Scenery\Test\texture


but when i start ScenProc crash....where is the problem?
 
Hi,

What error message do you get at the crash? From the configuration file I don't see any big mistakes.

Although the way you use the filter now to make row houses and generic buildings from the same features probably leads to weird results. But that should not give a crash.
 
Arno,
scenproc start to read:

found> createandlib.dll
....
....

Parsing apProc configuration E:\....directory\beograd.txt
Reading SHP file Beograd_agn_test.shp

in this moment crash.



Uploaded with ImageShack.us
 
Hi,

But you don't get a more detailed error message? Maybe you can send me your shapefile for testing? I might be able to see what is going wrong.
 
Ok, I'll take a look at the files to see if I can reproduce the crash.
 
Hi,

I don't get that crash. I do notice that it takes quite some to process the data because your shapefile covers a big area. To speed it up splitting it into a few smaller areas might be better.
 
Arno,
i reduce file but go in crash everytime. Probably one conflict with my system?
thanks for your solution.

Simone
 
Arno,
ok now program start, the problem is if you create a desktop link from ScenProc folder go in crash. I drag the shp file directly to scenproc program inside the folder and ok...

i see that after one hour it create: done 50%....very long to compile...is correct?

thanks,
Simone
 
Arno,
after 2 hours of compilation...crash :banghead:
i try with another very small file...same longtime to compile...and after crash without message errors...
 
Arno,
contuining my tests, but ScenProce after Splitting Feauteres pass in Done x% and continuing for 2hours....after that crash (in your tutorial therea are othersl lines...) this is a picture:



Uploaded with ImageShack.us
 
Hi Simone,

Your files worked fine here. All I did was to change the output path.

Code:
# Beograd autogen test
IMPORTSHP|beograd_agn_test.shp|NOREPROJ
#
SPLITGRID|AGN
#
SETAGNBUILDINGHEIGHT|1.0;0.0;0.0;0.0
# SETAGNBUILDINGTEXTURE|autogen_beograd
#
CREATEAGNPOLYVEG|FTYPE=POLYGON;type=forest|{e8b937fd-a1f2-4bd5-8548-2c80d30102af}
CREATEAGNGENBUILD|FTYPE=POLYGON;FROMFILE=beograd_agn_test.shp;FWIDTH<20|{5ae04eb6-934c-4f63-bb48-5e7dee601212}|MAXRATIO=2
CREATEAGNGENBUILD|FTYPE=POLYGON;FROMFILE=beograd_agn_test.shp;FWIDTH>20|{6089A0BD-CED1-4c47-9A9E-64CDD0E16983}
CREATEAGNROWHOUSE|FTYPE=POLYGON;FROMFILE=beograd_agn_test.shp
CREATEAGNLIBOBJ|FTYPE=POINT;type=light|{0017a263-464f-14fd-f77f-2996fed44864}
#
WRITEAGNFILES|Q:\

This is the scenproc output:

Code:
scenProc version 1.0.0.0 - Arno Gerretsen


Available processing steps...
> found AddAttribute
> found AssignUuid
> found CreateAGNGenBuild
> found CreateAGNLibObj
> found CreateAGNPolyBuild
> found CreateAGNPolyVeg
> found CreateAGNRectVeg
> found CreateAGNRowHouse
> found ImportSHP
> found CreateMaterial
> found CreatePolygon
> found CreateTestData
> found ExportBGL
> found ExportSHP
> found ExtrudeLine
> found FilterGeoLocation
> found FilterLineOnPolygon
> found ImportDXF
> found LocalProjection
> found SetAGNBuildingTexture
> found SetAGNBuildingHeight
> found SetAGNRowHouseTexture
> found SplitGrid
> found WriteAGNFiles

Parsing apProc configuration beograd.txt
Reading SHP file beograd_agn_test.shp
Splitting features in 0.0146484375 x 0.010986328125 grid...
Features divided in 651 cells
Setting autogen building heigth...
Creating autogen polygon vegetation with filter FTYPE=POLYGON;type=forest...
Creating autogen generic buildings with filter FTYPE=POLYGON;FROMFILE=beograd_agn_test.shp;FWIDTH<20...
Creating autogen generic buildings with filter FTYPE=POLYGON;FROMFILE=beograd_agn_test.shp;FWIDTH>20...
Creating autogen row houses with filter FTYPE=POLYGON;FROMFILE=beograd_agn_test.shp...
Creating autogen library objects with filter FTYPE=POINT;type=light...
Writing AGN files to folder Q:\

I don't have your textures so I can't see the autogen in FSX, but this is the result in Annotator:



I have atttached the output files, but you may get it to work if you use a shorter output path, say E:\
 
Last edited:
Hi,

Did you try using a smaller area? Your shapefile covers around 3 x 3 degrees, so that is a very big area. Splitting will take long in that case.
 
The win7 report crash is:

Descrizione:
Stopped working

Firma problema:
Nome evento problema: CLR20r3
Firma problema 01: scenproc.exe
Firma problema 02: 1.0.0.0
Firma problema 03: 500e7011
Firma problema 04: mscorlib
Firma problema 05: 2.0.0.0
Firma problema 06: 4e154c6c
Firma problema 07: 344b
Firma problema 08: 119
Firma problema 09: System.IO.DirectoryNotFound
Versione SO: 6.1.7601.2.1.0.768.3
ID impostazioni locali: 1040

Leggere l'informativa sulla privacy online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0410

Se l'informativa sulla privacy online non è disponibile, leggere quella offline:
C:\Windows\system32\it-IT\erofflps.txt

I see stopped at last line:



Uploaded with ImageShack.us
 
Back
Top