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

Unusual coordinates

Hi Arno
I downloaded a shapefile from OS Open Map Great Britain but I get a warning and stays in splitGrid taking all the memory

6:17 PM ImportOGR Warning Check the projection of your data. Unusual coordinates found.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Hi,

That probably means that the data you downloaded is not in WGS84 geodetic coordinates, but in some other coordinate system. E.g. the local Great Britain coordinate system or so.

This means that in the ImportOGR step you need to use AUTODETECT as projection value, instead of NOREPROJ. Or you can specify the exact coordinate system used, if you know which one it is.
 
Thanks. It worked. It must be a different system. In the building categories there is not fclass=building classification
like the other shapefile I have.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Which attributes the data has is different for each data source. fclass=building is used in some OSM extracts. You would have to check the data in a GIS tool to see which attributes it uses.
 
This shapefile is very rich. It contains twice the data I was getting from the Geo shapefiles.

The ScenProc works great. I can do a big shapefile and create 1.5 million AGNGen buildings. However sometimes shuts down (crashes) the PC. I run a certain .spc and everything works fine. Then using the same .spc I just change the shapefile in order to create agn buildings for another area. Most of the times it crashes the PC when it processes the AgnGenBuildings . Trying different things, it seems like when I change one of the guids of the buildings it goes thru process. Also most of the times if there are already .agn files in the texture folder it overrides the old files with the new files sometimes it doesn't. When it is at the writing the agn files gives me a warning/ error that it is not authorized to write the files. When I delete the old files and run again ScenProc it writes the new files.
Anyway ScenProc is a great tool ( well, I think I am spending a lot more time that I should with it) and thanks for all your labors for the FSX community.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Hi,

Errors about not being able to write AGN files I sometimes see in crashes reported. My general impression is that another application (maybe FS) is having the files locked. Do you have other applications open that the same time that work with the AGN files?
 
Well, today it crashed a couple of times while it was processing large files (1.5 million features)
Finally I changed the Flength and fwidth from<35 to <40 and that was it. Apparently couldn't handle the 35.
After that it run many times without a glitch. I am attaching one processing log file to see that it created more than 2 million agn buildings just in one run.
 

Attachments

arno

Administrator
Staff member
FSDevConf team
Resource contributor
I don't understand why a filter value would cause a crash, because the same code is executed. But it might be the data contains one corrupt feature or so that you are skipping now.

Did this also fix the files in use problem?
 
I don't know about that. I didn't want to risk it, so I made 5 different texture folders and then I used the Merge Autogen Files tool and merge them where they belong in the texture folders with the photoscenery scenery files of the area. I remember in the past I had no problem overwriting the existing files. Also as you said previously I used the AUTODETECT feature and it worked good for the Southern Eengland shapefiles. When I tried the Midland shapefile it told me that I had to set manually the coordinances. I fricked out? What is it? Then I open the shapefile in Qgis and found that it was ......1936 England Grid (something like that. Then I went to ScenProc and it was the choice in the menu ( I didn't know that.) These shapefiles I found have 3 times a smuch data compared to the Geofiles that I used in the past. I am telling you, everyday I learn something new.
Thanks again.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Hi,

Are you maybe processing multiple areas in parallel when you get those file in use errors? Just trying to understand where they might come from.
 
Hi Arno.
I am running ScenProc now without a glitch. What I discovered is (something that I am sure you know) that after running a script ( my shapefiles are very large) I shut down ScenProc and then I ran the same script with a different shapefile for another area and saving it with another .spc name. It ran with no problem again and again creating million of agn buildings and vegetation for over a week.
In the past after finishing running a script I changed the shapefile, save in a different name and run the script, where I noticed that it was starting with 3-4 MB of memory less than the available and I had problems crashing the PC. NO more. When I shut ScenProc down and ran fresh it shows all the memory (21MB) available.
Also I am using the "PolygonToPoint" creating what I call "City Lights" bgl's ( you can see the cities lit up at night like in reality all the way up to 30000F. I run again and again 2 ScenProc with 2 different scripts at the same time. Worked great creating 2 different files at the same time. I really put ScenProc to the test...
Thanks for all your work.
 
Top