Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Getting FIR from map

62 views
Skip to first unread message

Luca Bertoncello

unread,
Dec 13, 2024, 12:05:03 PM12/13/24
to OpenAIP
Dear all,

Surely a little Off Topic, but I don't know where other I can ask...

I need to import the FIR into my database in a own format.
For me it is very important to get the region with their codes.
As region I intend these:
https://www.eurocontrol.int/sites/default/files/2024-05/eurocontrol-firuir-lower-airspace-europe-2024.pdf

My problem is to convert the regions of the PDF in coordinate series to
import in my database.

I really don't have any idea how to do that.
Surely there are tools to do that, since all people having added the
airspace in OpenIP already did that.

Can someone suggest me how to solve my problem, if possibile in an
automated way, so that if the map changes I can reimport the data?

Thank you very very much!
Luca Bertoncello
(luca...@lucabert.de)

webmaster

unread,
Dec 13, 2024, 12:20:23 PM12/13/24
to OpenAIP - Aviation Data Platform
Hi Luca,

I guess there is no easy solution to this problem. I suppose you may be able to find the definitions of the FIR/UIR in the AIP in "written" form. You would have to translate this definition into a geometry that your system can read. Normally we do written form -> openair -> geojson. This is a manual task and I think automation is quite tricky for this part unfortunately.
You may be able to grab some of the FIRs/UIRs from openaip but please note that depending on the country, they may either be non-existing or they may be split into the specific sectors, like for example in Germany. 

If somebody knows a better way to do it, I'm also very keen to know about it too :)

Cheers,

Stephan

Michael Paus

unread,
Dec 13, 2024, 1:03:54 PM12/13/24
to OpenAIP - Aviation Data Platform

Hi Luca,

welcome back to the digital stone age :-)

Maybe you can get some data out of here: https://traffic-viz.github.io/data_sources/airspaces.html

Otherwise you could try to send Eurocontrol a friendly letter to send you the corresponding GeoJSON files
with the data. After all it is almost Christmas and sometimes miracles do happen. (Not a joke!)

From a frustrated aeronautical data provider

Michael

Luca Bertoncello

unread,
Dec 13, 2024, 3:24:01 PM12/13/24
to OpenAIP
Am 13.12.2024 um 18:41 schrieb Michael Paus:

Hi Michael!

> welcome back to the digital stone age :-)

Thank you... :/

> Maybe you can get some data out of here:
> https://traffic-viz.github.io/data_sources/airspaces.html

This look like very good...
I'm not an expert in Python, but I think, I can extract the coordinates...

> Otherwise you could try to send Eurocontrol a friendly letter to send
> you the corresponding GeoJSON files
> with the data. After all it is almost Christmas and sometimes miracles
> do happen. (Not a joke!)

AHAHAHAHAHAHAHAH!!!
This was a very nice joke!!!

I already tried in the past to contact Eurocontrol. No answer.
I think, it's better to get a plane, fly to Rovaniemi and ask directly
Santa Claus.
At least, he answers...

Regards
Luca Bertoncello
(luca...@lucabert.de)

Adriano Ellero

unread,
Dec 14, 2024, 5:44:38 AM12/14/24
to Luca Bertoncello, OpenAIP
I don't know if it can help, but I found a very easy way to extract the coordinates from the AIP into whatever file.
The precondition is to get the coordinates of the polygons documented somewhere.
For Italy, all is available in the ENAV website within the AIP documentation in PDF format.

My wish is to get a way to execute a massive official data upload into the openAIP database.

Best regards

Adriano Ellero

FI SPL - TMG IT.SFCL.22573
LAPL IT.FCL.22573
HT IT.DTO.060
FI VDS Avanzato 00077089





--
You received this message because you are subscribed to the Google Groups "OpenAIP - Aviation Data Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openaip+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/openaip/64d1bf94-00e8-8f4d-9e1d-41baa284f98a%40lucabert.de.

Luca Bertoncello

unread,
Dec 14, 2024, 10:43:29 AM12/14/24
to OpenAIP - Aviation Data Platform
Am 13.12.2024 um 18:41 schrieb Michael Paus:

Hi again

> Maybe you can get some data out of here:
> https://traffic-viz.github.io/data_sources/airspaces.html

So, I think I got it with following Python code:

----------------------------------------------
from-countries-in-the-eurocontrol-area
from traffic.data import eurofirs
import shapely

for fir in eurofirs:
print(" {")
print(" \"type\": \"Feature\",")
print(" \"properties\": {")
print(" \"id\": \"", fir.designator, "\"")
print(" },")
print(" \"geometry\": ")
f = shapely.to_geojson(fir.elements[0].polygon, indent=2)
print(f)
print("},");
----------------------------------------------
The GeoJSON added on a Leaflet map returns data that looks very like the
data from Eurocontrol, so I think I can use it.

I'll now change the Python code to save the data in a Database.

Thank you very very much for the suggestion!

Regards
Luca Bertoncello
(luca...@lucabert.de)

Michael Paus

unread,
Dec 14, 2024, 4:23:07 PM12/14/24
to OpenAIP - Aviation Data Platform
For a quick test you can also through the GeoJSON onto https://geojson.io/#map=2/0/20 via drag and drop.

How did you extract the data? I am not familiar with Python and how to execute it.

Michael

Luca Bertoncello

unread,
Dec 15, 2024, 1:31:38 AM12/15/24
to OpenAIP - Aviation Data Platform
Am 14.12.2024 um 17:33 schrieb Michael Paus:

Hi Michael

> How did you extract the data? I am not familiar with Python and how to
> execute it.

I'm not familiar with Python, too... :)
But the included libraries (traffic.data, shapely) did the work for me.

Regards
Luca Bertoncello
(luca...@lucabert.de)

Adriano Ellero

unread,
Dec 18, 2024, 5:43:12 AM12/18/24
to Michael Paus, OpenAIP - Aviation Data Platform

Python is very easy to learn,  compact and effective coding language.

Good idea to test via geojson debugger the mentioned code...


Dr. Adriano Ellero


FI SPL - TMG IT.SFCL.22573
HT IT.DTO.060 - Trento
--
You received this message because you are subscribed to the Google Groups "OpenAIP - Aviation Data Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openaip+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages