Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.

Sector File Creater Program


Andrew Miller 873677
 Share

Recommended Posts

Scott Diamond 1001574
Posted
Posted

Miguel,

 

I was using the .sline command in EuroScope to draw out certain coloured regions for the sector files. Since that command gives the output with COORD: and a few other things amongst the co-ordinates, I created a quick PHP script to strip that out and give you the co-ordinates in a more simple way to copy & paste into the sector file. I've put the code below if you wish to put it as part of a script on your website I have no issue with that.

 

<?php

if($_POST['submit']){

// First, put all of the textarea lines into an array.
$data = explode("\n", $_POST["coord"]);

// Then, loop through each line an explode them by colons.
foreach($data as $line){
$item = explode(":", $line);
// display line.
echo $item[1]." ".$item[2]."<br />";
}

}
else 
{
echo "Enter co-ordinates below";
}

?>

<html>
<body>

<form action="" method="post">
Enter here: <textarea name="coord" rows="10" cols="34"></textarea>
<input type="submit" name="submit" value="submit" />
<input type="reset" name="Clear" id="Clear" value="Reset">
</form>

</body>
</html>

 

Cheers

Link to comment
Share on other sites

  • Replies 92
  • Created
  • Last Reply

Top Posters In This Topic

  • Evgeny Vygornitsky

    12

  • Andrew Miller 873677

    11

  • Miguel Frias

    9

  • Anthony Baker 1080999

    8

Top Posters In This Topic

  • Evgeny Vygornitsky

    Evgeny Vygornitsky 12 posts

  • Andrew Miller 873677

    Andrew Miller 873677 11 posts

  • Miguel Frias

    Miguel Frias 9 posts

  • Anthony Baker 1080999

    Anthony Baker 1080999 8 posts

Popular Days

  • Feb 24 2010

    8 posts

  • Sep 23 2010

    8 posts

  • Mar 22 2010

    6 posts

  • May 17 2014

    5 posts

Miguel Frias
Posted
Posted

How about .sline2 ?

 

Miguel

Miguel Frias

Senior Instructor (I3) & Certified Pilot (P4), ZLA I-11 graduate

Portugal vACC Training Director (ACCPT2), VATEUD Operations Director (VATEUD8)

Portugal vACC, VATEUD, VATSIM

1107190.png1107190.png

Link to comment
Share on other sites

Scott Diamond 1001574
Posted
Posted

I’m going to cry ....

Link to comment
Share on other sites

  • 2 weeks later...
Emiliano Ferraco
Posted
Posted

Hi Miguel, excelent tool!

 

Im using your designer tool to designe some new sector for Euroscope. So... the thing is that I´m seeing warnings when i convert the kmz file to sct. I rename all the elements, but it doesnt matter what I do, is always the same:

 

*** can't read "fname": no such variable

*** while executing

*** "set style($smap) "forward $fname""

*** (procedure "ReadStyles" line 11)

*** invoked from within

*** "ReadStyles"

*** (file "../convert-kml" line 71)

 

Can you tell me what I´m doing wrong?

 

Best Regards

Link to comment
Share on other sites

  • 4 months later...
Mike Burke 1145825
Posted
Posted

I originally was working on this as a one-off but figured there might be some value to the community if it's extended/fleshed out. Beware that the code is still a mess right now but it will get you 80% of the way there for airports that have taxiways defined in X-Plane:

 

https://github.com/AvatarKava/xplane-data-tools-php

 

---

Mike Burke

S1 - ZHU ARTCC

Link to comment
Share on other sites

Miguel Frias
Posted
Posted

Emiliano, send me the KML/KMZ file you're using so that I can debug.

Miguel Frias

Senior Instructor (I3) & Certified Pilot (P4), ZLA I-11 graduate

Portugal vACC Training Director (ACCPT2), VATEUD Operations Director (VATEUD8)

Portugal vACC, VATEUD, VATSIM

1107190.png1107190.png

Link to comment
Share on other sites

  • 2 months later...
  • 2 years later...
  • 2 weeks later...
Roland Pohl 813333
Posted
Posted

Hi Victor,

have a little problem creating a sectorfile with "sected".

All airports imported via LevelD or Navigator are not shown in Euroscope cause they have no AirspaceCl[Mod - Happy Thoughts].

Is there a solution for this?

 

With kind regards

Roland

Kind regards

 

Roland Pohl

2. chairman of Flighsimulator Club e.V.

Link to comment
Share on other sites

Evgeny Vygornitsky
Posted
Posted
Hi Victor,

have a little problem creating a sectorfile with "sected".

All airports imported via LevelD or Navigator are not shown in Euroscope cause they have no AirspaceCl[Mod - Happy Thoughts].

Is there a solution for this?

 

With kind regards

Roland

 

Add manually in Notepad a letter for Airspace Cl[Mod - Happy Thoughts], i.e.

UTTT 0.000 N041.15.24.001 E069.16.54.000 E

in your *.sct file,

 

or put the letter inside the program

http://scr.hu/169l/59bkd

VATRUS Division Director, Supervisor

RU-CEN_FSS - CIS Central Asia FSS ("Asia-Center")

Email: director(at)vatrus.info

Link to comment
Share on other sites

Roland Pohl 813333
Posted
Posted

Add manually in Notepad a letter for Airspace Cl[Mod - Happy Thoughts], i.e.

UTTT 0.000 N041.15.24.001 E069.16.54.000 E

in your *.sct file,

 

or put the letter inside the program

http://scr.hu/169l/59bkd

 

Yes I did so, but if that is the only way, it would be a nice Idea, if Sected sets a letter by default.

Kind regards

 

Roland Pohl

2. chairman of Flighsimulator Club e.V.

Link to comment
Share on other sites

Evgeny Vygornitsky
Posted
Posted

Yes I did so, but if that is the only way, it would be a nice Idea, if Sected sets a letter by default.

I think it isn't good idea because every airport you create a layout for it can be of different cl[Mod - Happy Thoughts]. That is why you have a checkbox there to put the letter manually.

VATRUS Division Director, Supervisor

RU-CEN_FSS - CIS Central Asia FSS ("Asia-Center")

Email: director(at)vatrus.info

Link to comment
Share on other sites

Roland Pohl 813333
Posted
Posted

Hallo Evgeny,

OK that's indeed a factor. But it is a lot of work, if I need a big sectorfile i.E. 800 qnm

We (Flightsimulator Club e.V. with own FSD-Server) do often a Fly-In and I have to create some

special Sectorfiles for that.

Kind regards

 

Roland Pohl

2. chairman of Flighsimulator Club e.V.

Link to comment
Share on other sites

Evgeny Vygornitsky
Posted
Posted

Roland, it's not a problem. Imagine, that I create a sector for 5 Central Asian countries which are 4 hours flight from one side to another.

VATRUS Division Director, Supervisor

RU-CEN_FSS - CIS Central Asia FSS ("Asia-Center")

Email: director(at)vatrus.info

Link to comment
Share on other sites

Roland Pohl 813333
Posted
Posted

Ohh Maybe I'm to old and weak

I did some editing with excel, that worked for me.

 

Next point

Is there any solution for coastlines and other geodata, found some hints to gndmaker, but all (very old) links don't work anymore.

Kind regards

 

Roland Pohl

2. chairman of Flighsimulator Club e.V.

Link to comment
Share on other sites

Evgeny Vygornitsky
Posted
Posted
Ohh Maybe I'm to old and weak

Is there any solution for coastlines and other geodata, found some hints to gndmaker, but all (very old) links don't work anymore.

viewtopic.php?f=71&t=48738

VATRUS Division Director, Supervisor

RU-CEN_FSS - CIS Central Asia FSS ("Asia-Center")

Email: director(at)vatrus.info

Link to comment
Share on other sites

  • 2 years later...
Sean Harrison
Posted
Posted

Deleted 192107 AUG.

Sean

C1/O P3

spacer.png

Link to comment
Share on other sites

  • 1 year later...
Sachin Gnath
Posted
Posted

Hey all,

 

Is there anyway for SECTED to detect the approach transitions, in order to import the arrival routes of a airport such as procedural entries & DME ARC's? I am able to only import STAR's from SECTED by using the LEVEL-D NAV Data.

 

Thanks.

Regards, 

S G

Link to comment
Share on other sites

 Share