Jump to content


- - - - -

Exclude zone creation


  • This topic is locked This topic is locked
7 replies to this topic

#1 Lorenz

Lorenz

    Student Pilot

  • Members
  • PipPip
  • 14 posts

Posted 05 May 2007 - 03:33 AM

Hi Everybody,
I thought I were wiser but I'm stuck on step #5 of the "Exclude zone creation" process.
This is the code I have typed:

<?xml version="1.0" encoding="ISO-8859-1"?>
<FSData version="9.0" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation="bglcomp.xsd" >
<ExclusionRectangle
latitudeMinimum="S9 24.4700"
latitudeMaximum="S59 27.7300"
longitudeMinimum="E20 19.4900"
longitudeMaximum="E20 17.4700"
excludeAllObjects = "TRUE"
excludeBeaconObjects = "FALSE"
excludeEffectObjects = "FALSE"
excludeGenericBuildingObjects = "FALSE"
excludeLibraryObjects = "FALSE"
excludeTaxiwaySignObjects = "FALSE"
excludeTriggerObjects = "FALSE"
excludeWindsockObjects = "FALSE"/>
</FSData>

Provided it is correct I can't create an "XML" file. When I select "Save as" on notepad I can't find "XML" format.
I can choose among: "Save as UNICODE", "Save as rtf",...but not XML. So I have saved as "txt" and then changed manually the extension, but it won't work of course!

Can you please tell me how to go on?  :lol:

Thanks a lot.
Lorenzo

Edited by Lorenz, 05 May 2007 - 03:34 AM.


#2 Lorenz

Lorenz

    Student Pilot

  • Members
  • PipPip
  • 14 posts

Posted 05 May 2007 - 03:58 AM

I'm sorry read the line latitudeMaximum="S59 27.7300" as "S9 27.7300" of course

#3 mobisone

mobisone

    Commercial Pilot

  • Members
  • PipPipPipPipPip
  • 1,934 posts
  • Location:ALASKA

Posted 05 May 2007 - 04:09 AM

just save as >>   yourfilename.xml

and it will become an xml file :lol:

#4 Lorenz

Lorenz

    Student Pilot

  • Members
  • PipPip
  • 14 posts

Posted 05 May 2007 - 05:36 AM

Hi Richard,
thanks for your help. Now I got the XML file. But when I drag it over the bglcomp.exe file I got nothing.
Here is the syntax used:

{\rtf1\ansi\ansicpg1252\deff0\deflang1040{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20 <?xml version="1.0" encoding="ISO-8859-1"?>\par
<FSData version="9.0" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation="bglcomp.xsd" >\par
<ExclusionRectangle\par
latitudeMinimum="S9 24.4700"\par
latitudeMaximum="S9 27.7300"\par
longitudeMinimum="E20 19.4900"\par
longitudeMaximum="E20 17.4700"\par
excludeAllObjects = "TRUE"\par
excludeBeaconObjects ="FALSE"\par
excludeEffectObjects ="FALSE"\par
excludeGenericBuildingObjects ="FALSE"\par
excludeLibraryObjects ="FALSE"\par
excludeTaxiwaySignObjects ="FALSE"\par
excludeTriggerObjects ="FALSE"\par
excludeWindsockObjects ="FALSE"/>\par
</FSData>\par
}

Do you see anything wrong?

Lorenzo

#5 Lorenz

Lorenz

    Student Pilot

  • Members
  • PipPip
  • 14 posts

Posted 05 May 2007 - 07:08 AM

I have also followed this other thread:
http://www.flightsim...hl=Exclude zone
but nothing, I'm stuck there.
heeeeelp :lol:

#6 Lorenz

Lorenz

    Student Pilot

  • Members
  • PipPip
  • 14 posts

Posted 05 May 2007 - 08:15 AM

Just to let you know I got it right. Don't ask me how I did it, but it seems there was a problem in the XLM file created by me.
So I took the file called "Chelan" (one of those coming with the package) open to Modify --> and copied the text made by me, then saved.
In a moment I got the same name .bgl file.
All is fine now.

Regards
Lorenzo

#7 vozpilot

vozpilot

    Commercial Pilot

  • Members
  • PipPipPipPipPip
  • 1,837 posts
  • Location:USA

Posted 29 July 2007 - 12:01 PM

maybe sarge can shed some light on this ? :lol:

#8 IBtheSarge

IBtheSarge

    First Class Member

  • Moderator
  • PipPipPipPipPipPipPipPip
  • 10,718 posts
  • Location:Central Florida

Posted 17 August 2007 - 02:16 AM

View Postvozpilot, on Jul 29 2007, 01:01 PM, said:

maybe sarge can shed some light on this ? :lol:
Like I said in my tutorial, the bglcomp_sdk is very, very picky.  One character, one quotation mark ("), one comma, or even one space missing or out-of-place, and bglcomp.exe will not compile the XML.  Also, ignore the maximum and minimum tags .... enter bottom right latitude, top left latitude, top left longitude, bottom left longitude in THAT SPECIFIC ORDER regardless of which one is higher or lower.  Those lines are mislabelle and the BOTTOM TOP TOP BOTTOM method is the only way you'll get 'em right.

Also it looks like the initial file was created with a program that uses rich-text (i.e., WordPad), then opened and saved it using a program that is NOT rich-text (i.e., NotePad).  That would have produced the

Quote

{\rtf1\ansi\ansicpg1252\deff0\deflang1040{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20

and

\par
in the 2nd post's header.  bglcomp.exe does't know what to do with that data, so it balks when an attempt is made to compile it to a BGL file.