Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
Exclude problem (Read 309 times)
May 21st, 2009 at 10:40am

jive1   Offline
Colonel
Waw!
Blaasveld, Belgium

Gender: male
Posts: 23
*****
 
Hey!

Something that I can't understand...

With ExcludeBuilder.V2, I want to make an excl-file for UACP

It gives me:
<?xml version="1.0"?>
<FSData
  version = "9.0"
  xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  xsi:noNamespaceSchemaLocation="bglcomp.xsd" >
  <ExclusionRectangle
       latitudeMinimum = "54,76873"
       latitudeMaximum = "54,78057"
       longitudeMinimum = "69,16594"
       longitudeMaximum = "69,20521"
      excludeAllObjects = "TRUE" />
</FSData>

I save that file as UACP_excl.xml in the Bglcomp-directory, where both bglcomp.exe and bglcomp.xsd are residing. They are both the files from FS2004BglCompSDK.

Now I drag and drop that UACP_excl.xml to Bglcomp.exe and nothing happens. Whereas, when I do the same with the Chelan.xml example that was in the Bglcomp directory after install, from this latter one I get a bgl-file, as I also expected to be the case but I didn't get one from my UACP_excl.xml.

The only difference of which I can guess that could have been the reason why it did not work with my file, could have been that the lat/long values in my UACP_excl.xml are decimal, whereas the lat/long values of Chelan.xml are deg/min/sec.
So, and to be sure, I converted my values accordingly, but still got no bgl-file ...

What can I have done wrong?
Does anyone know?
Greetz
Jive1
 
IP Logged
 
Reply #1 - May 21st, 2009 at 11:34am

dave3cu   Offline
Colonel
Procrastinate now, don't
put it off.
3CU, Northern Wisconsin, USA

Gender: male
Posts: 3077
*****
 
Though Bglcomp is throwing an error indicating the Lat-min. and Lat-max. are out of order, I think the problem may be the commas (,) instead of decimal (.) in the xml coordinate values. When I convert the , to . the compile is successful.  

In order to see errors in Bglcomp paste the following 3 lines of text into notepad and save as Compile.bat. Place Compile.bat into your Bglcomp folder. To compile, paste your .xml(s) in the folder and run (double-click)Compile.bat . Bglcomp will run in a DOS window and pause allowing you to see success or failure, with any errors listed. (Note: running Compile.bat will compile ALL .xml's in the folder at the time.)

***************copy/paste the following 3 lines*************

rem This batch file will convert XML files to BGL files

bglcomp *.xml

pause

****************************************************

Dave
 

At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation.          Igor Sikorsky

I intend to live forever....so far, so good.         Steven Wright

You know....you can just rip up a to-do list.
IP Logged
 
Reply #2 - May 21st, 2009 at 12:02pm

jive1   Offline
Colonel
Waw!
Blaasveld, Belgium

Gender: male
Posts: 23
*****
 
Hey! Dave,
Thank you for the help!
Telling me that something is wrong with lat/long order, you made me thinking and watching, and indeed...
I'm living in Belgium in the Dutch speaking part, and we use a so called belgian keybord and have belgian characterset. And here de lat/long values usually are written with a COMMA and not with a DOT.
As soon as I changed the commas into dots, the compiler did the job like it should.
The error was found.
Thank you for the help.
Greetz
Jive1
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print