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

CREATEXMLLIBOBJ problem ...

Messages
119
Country
italy
Hello Arno,
I was trying the function CREATEXMLLIBOBJ with the latest versions of scneproc,
this works with an old version worked, but with the last point seems to place the objects no longer work?

This is an example of the old version that worked:

IMPORTOSM|D:\NUOVOSCE\ sicilia.osm|15.0000000,15.4687500,37.2656250,37.6171875|amenity

CREATEXMLLIBOBJ|FTYPE=POINT;amenity=fuel|{f2e377e7-b1e3-4d8e-86cf-4184b1ca70be}|hdg 6;6| noautogensup

EXPORTBGL|FSX|petrol|D:\aa
----------------------------------------------------------------
Now the same thing:

# @ 0 @ = 410-420
# @ 1 @ = 130-139
# @ 2 @ = 15.0000000
# @ 3 @ = 15.4687500
# @ 4 @ = 37.2656250
# @ 5 @ = 37.6171875
#
IMPORTOGR|sicilia.osm[EMAIL='IMPORTOGR|sicilia.osm|@2']|@2@,@3@,@4@,@5@|amenity|NOREPROJ[/EMAIL]

CREATEXMLLIBOBJ|FTYPE=POINT;amenity=fuel|{f2e377e7-b1e3-4d8e-86cf-4184b1ca70be}|hdg|00|noautogensuppression

EXPORTBGL|FSX|fuel|D:\aa|KEEPXML

does not work anymore ...

Did I miss something?

Thank you.
Antonio.
 
Hi,

Let me check the configuration looks ok.

Do you get an error or just no features are created?
 
Hello,
no errors but does not create any object even if it compiles the same BGL.
I attach the response of compiling into.

Thank you.
Antonio.

 
Hi,

I have extended the configuration file of OGR that defines how the OSM files are read now. The point features with tag amenity were not read indeed.

Please download the full version tomorrow and then it will work. If you only download the update file, you won't get the datafile!
 
Hi,
The road is right now at least fuell are created , but it is not the same as the old version .

Let me explain,amenity in the type there are also other items such as amenity = place_of_worship
but these are not read yet , as well as CREATEXMLLIBOBJ | FTYPE = POINT ; natural = tree ( which I find very useful) are not found , and many other "objects" .

This list was all recognized objects from the old version of scenproc :
CREATEXMLLIBOBJ | FTYPE = POINT ; amenity = fuel
CREATEXMLLIBOBJ | FTYPE = POINT ; natural = tree
CREATEXMLLIBOBJ | FTYPE = POINT ; shop = supermarket
CREATEXMLLIBOBJ | FTYPE = POINT ; amenity = hospital
CREATEXMLLIBOBJ | FTYPE = POINT ; amenity = post_office
CREATEXMLLIBOBJ | FTYPE = POINT ; tourism = museum
CREATEXMLLIBOBJ | FTYPE = POINT ; tourism = hotel
CREATEXMLLIBOBJ | FTYPE = POINT ; amenity = place_of_worship ; religion = christian

Now they are only found:
amenity = fuel
amenity = hospital
amenity = post_office

Aside from that I put some of them just to experiment ,
I believe that at least the place_of_worship and trees to the point = natual tree are useful to have again.

If it is not too much work Arno , at most use the old version always useful to do that.

Thank you and sorry for my question " special " ......
Have a good weekend .

Antonio:)
 
Hi,

The amenity=place_of_worship was already read with the fix of yesterday. I have now also added point features with tags religion and natural to the configuration. It will be in the release of tomorrow.

In the gdal-data map you will find a file osmconf.ini. In there it is defined which attributes are read by the OGR OSM reader. So you can add specific tags yourself there as well. Of course I appreciate feedback about useful additions, so that I can add them by default to scenProc.
 
Yes sorry, the error for amenity = place_of_worship is why I added another attribute:
religion = christian |
putting both creates nothing, instead with amenity = place_of_worship
works.

I had my way I would put most of the attributes that we are in the link you posted, or at least the most significant ones (Stadiums, hospitals, schools, Supermarket, hotels, police, firefighters, castles etc. .. etc. ..... )

Interesting is the ability to add optional attributes to be read in the OSM data in the file osmconf.ini, it would be useful to be able to put his hand to you pleasure
for their needs.
I'd like to investigate this possibility, you can have a hint where to add the desired attribute in the file osmconf.ini?

Antonio.
 
Hi,
I managed to make him read almost all the objects that I asked above (only the universities there was no way) but in the end I realized that actually
is not so important for many of those objects (or other program annotator better to use hand ...) was a good experiment for at least understand the concept
File osmconf.ini.
I think that eventually I will use only some of the possibilities of creating objects like this (point to trees, churches and some other object).

Thank you for your patience as usual.

Good Sunday.

Antonio.
:)
 
Back
Top