Jump to content

Topsky ASRData


Luke Brown (1116943)
 Share

Recommended Posts

Luke Brown (1116943)

Hi Juha,

I'm trying to draw some flexible use airspace in the UK using the Maps function. But the ASRData function doesn't seem to work. I'd like the map to only display the freetext on a certain ASR. Using the ASRData function, but it doesn't seem to work and appears on all ASRs.

Map is defined as below:

MAP:Cotswold CTA FUA
COLOR:Grey
STYLE:solid:1
FONTSIZE:*:.75
//15
LINE:N052.05.26.000:W002.30.50.000:N051.57.03.000:W002.16.33.000
LINE:N051.57.03.000:W002.16.33.000:N051.52.08.000:W002.23.50.000
LINE:N051.52.08.000:W002.23.50.000:N051.53.51.000:W002.30.17.000
LINE:N051.53.51.000:W002.30.17.000:N051.44.13.000:W002.35.17.000
LINE:N051.44.13.000:W002.35.17.000:N051.45.39.000:W002.48.14.000
LINE:N051.45.39.000:W002.48.14.000:N051.56.43.000:W002.47.18.000
LINE:N051.56.43.000:W002.47.18.000:N052.05.26.000:W002.30.50.000
//16
LINE:N051.53.51.000:W002.30.17.000:N051.52.08.000:W002.23.50.000
LINE:N051.52.08.000:W002.23.50.000:N051.44.13.000:W002.35.17.000
LINE:N051.44.13.000:W002.35.17.000:N051.53.51.000:W002.30.17.000
//17
LINE:N052.50.46.000:W002.45.29.000:N052.32.53.000:W002.30.11.000
LINE:N052.32.53.000:W002.30.11.000:N052.17.02.000:W002.12.51.000
LINE:N052.17.02.000:W002.12.51.000:N052.05.26.000:W002.30.50.000
LINE:N052.05.26.000:W002.30.50.000:N051.56.43.000:W002.47.18.000
LINE:N051.56.43.000:W002.47.18.000:N052.01.39.000:W002.46.52.000
LINE:N052.01.39.000:W002.46.52.000:N052.30.40.000:W002.44.21.000
LINE:N052.30.40.000:W002.44.21.000:N052.42.23.000:W002.45.00.000
LINE:N052.42.23.000:W002.45.00.000:N052.47.48.000:W002.45.19.000
LINE:N052.47.48.000:W002.45.19.000:N052.50.46.000:W002.45.29.000
//18
LINE:N052.05.26.000:W002.30.50.000:N052.17.02.000:W002.12.51.000
LINE:N052.17.02.000:W002.12.51.000:N052.06.48.000:W002.01.48.000
LINE:N052.06.48.000:W002.01.48.000:N051.57.03.000:W002.16.33.000
ASRDATA:AirspaceBases
//Cotswold CTA 15 C FL125-FL195
TEXT:N051.50.35.000:W002.39.35.000:FL125C
TEXT:N051.58.00.000:W002.32.00.000:FL125C
//Cotswold CTA 16 C FL125-FL195
TEXT:N051.51.50.000:W002.28.00.000:FL125C
//Cotswold CTA 17 C FL125-FL195
TEXT:N052.20.50.000:W002.33.45.000:FL175C
//Cotswold CTA 18 C FL125-FL195
TEXT:N052.08.00.000:W002.15.00.000:FL75C
ACTIVE:0101:1231:1:0000:0800
ACTIVE:0101:1231:1234:1600:0800
ACTIVE:0101:1231:5:1600:0000
ACTIVE:0101:1231:67:0000:2359

I have then added the follwoing the to the ASR where I'd like to show the freetext:

PLUGIN:TopSky plugin:ShowMapData:AirspaceBases

Is this the correct method to do so? If so, I think there may be an issue.

Thanks,

Luke

Edited by Luke Brown
Link to comment
Share on other sites

Juha Holopainen
15 hours ago, Luke Brown said:

I have then added the follwoing the to the ASR where I'd like to show the freetext:

PLUGIN:TopSky plugin:ShowMapData:AirspaceBases

Is this the correct method to do so? If so, I think there may be an issue.

The idea is that unless specifically defined otherwise, an ASR file does not limit the processing of map lines. To limit the processing, the ShowMapData and HideMapData lines can be used. Your ShowMapData should result in skipping all lines after an ASRDATA line that didn't contain "AirspaceBases" until the next ASRDATA line. For an ASR file where you do not want the texts displayed, either enter HideMapData with AirspaceBases or ShowMapData with some other definition, whichever is more convenient.

For example, the maps data file could contain a number of different ASRDATA items such as:

ASRDATA:ACC
ASRDATA:TMA
ASRDATA:TWR
ASRDATA:GMC

if you want to set up an ASR file to show only the GMC stuff from all the maps, it's probably easiest to use ShowMapData:GMC. On the other hand, to display everything but the GMC data, using HideMapData:GMC may be more convenient than ShowMapData:ACC,TMA,TWR which both result in the same display.

Link to comment
Share on other sites

Luke Brown (1116943)

Thanks,

I've now achieved what I want using HideMapData rather than ShowMapData by essentially the inverse of what I did previously, which leads me to believe the ShowMapData doesn't work properly.

Either way, i've got a solution, thanks Juha

Luke

Edited by Luke Brown
Link to comment
Share on other sites

Juha Holopainen

To clarify the intended behavior:

  • ASR file without ShowMapData or HideMapData entries: will show all ASRDATA sections
  • ASR file with ShowMapData entry: will show only those ASRDATA sections that include one or more of the specified items
  • ASR file with HideMapData entry: will show all ASRDATA sections except those that include one or more of the specified items

Is one of these cases not working correctly, and if so, how?

Link to comment
Share on other sites

Luke Brown (1116943)

So it appears that ShowMapdata has no effect, whilst HideMapData works as intended.

As per my intial post, when ShowMapData was added to the ASR I wanted it diaplyed on, it would also display on other ASRs.

If this is the correct behaviour, then I've misunderstood the logic, as I understood it wouldn't show on ASRs that don't contain the ShowMapData line, but it does.

Link to comment
Share on other sites

  • 1 month later...
Oliver Gruetzmann

Just for my understanding (having the same "issue" currently):

It's the same with GRPlugin and with the current logic, it's not possible to have a real "Opt-In" display ("If you want to have this, add PLUGIN:Ground Radar plugin:ShowMapData:fancy_item_xyz to your ASR)?

Just want to make sure I get the logic correctly 🙂

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...