cquest / aixmparser Goto Github PK
View Code? Open in Web Editor NEWExtract from AIXM 4.5 XML files to json
License: Do What The F*ck You Want To Public License
Extract from AIXM 4.5 XML files to json
License: Do What The F*ck You Want To Public License
Hi @cquest,
Do you have any plans to support AIXM 5.1 in addition to 4.5? It looks like there's active development of the parser but Eurocontrol and FAA have moved on to AIXM 5.1. I would be happy to contribute. Cheers.
Hi Christian,
you have an 'Pull request' open before 2019/12/17... This day, i propose the new version of - aixmParser v2.4.0 ... Please Commit this branch ;-)
Thank's BPascal
Bonjour,
Merci pour l'énorme boulot accompli ! J'ai essayé de parser le dernier jeu de données du sia (2023-01-26).
Pendant l'étape "Parsing Abd to GeoJSON", le script plante.
Je ne maitrise pas assez le python pour voir d'où ça vient
Reading source file: ../tst/aixm4.5_all_FR_OM_2023-01-26.xml
[====================] 100 % - Parsing Obs to GeoJSON - Obstacles
Write file obstacles.geojson - 13041 areas in map
[====================] 100 % - Parsing Ahp to GeoJSON - Aerodromes / Heliports
Write file aerodromes.geojson - 851 areas in map
[====================] 100 % - Parsing Rcp to GeoJSON - Runway Center Line Position
Write file runwaysCenter.geojson - 1987 areas in map
[====================] 100 % - Parsing Uni to GeoJSON - Aerodrome control towersWrite file towers.geojson - 187 areas in map
[====================] 100 % - Parsing Gsd to GeoJSON - Gates and Stands
Write file gates-stands.geojson - 1444 areas in map
[====================] 100 % - Parsing Gbr to GeoJSON - Geographic borders
Write file borders.geojson - 40 areas in map
[====================] 100 % - Indexing Adg - Airspaces Groups
[====================] 100 % - Indexing Sae - Airspaces Services
[====================] 100 % - Indexing Uni - Organizations
[====================] 100 % - Indexing Abd - Airspaces Borders
[====================] 100 % - Loading Ase - Airspaces Catalog
/!\Critical--> Missing Ground Estimated Height: 1998 Unknown heights in file C:\Users\Theranthil\python\aixmParser-master\src/../out/referentials/refUnknownGroundHeight.json
Written file airspacesCatalog.json
Written file airspacesCatalog.csv
[ ] 2 % - Parsing Abd to GeoJSON - Airspaces BordersC:\Users\Theranthil\python\aixmParser-master\src\aixmReader\AixmTools.py:501: FutureWarning: This function is deprecated. See: https://pyproj4.github.io/pyproj/stable/gotchas.html#upgrading-to-pyproj-2-from-pyproj-1
center_x, center_y = transform(p1=self.pWGS, p2=srs, x=latC, y=lonC)
C:\Users\Theranthil\python\aixmParser-master\src\aixmReader\AixmTools.py:502: FutureWarning: This function is deprecated. See: https://pyproj4.github.io/pyproj/stable/gotchas.html#upgrading-to-pyproj-2-from-pyproj-1
start_x, start_y = transform(p1=self.pWGS, p2=srs, x=latS, y=lonS)
C:\Users\Theranthil\python\aixmParser-master\src\aixmReader\AixmTools.py:503: FutureWarning: This function is deprecated. See: https://pyproj4.github.io/pyproj/stable/gotchas.html#upgrading-to-pyproj-2-from-pyproj-1
stop_x, stop_y = transform(p1=self.pWGS, p2=srs, x=latE, y=lonE)
AttributeError: 'Point' object has no attribute 'radians'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Theranthil\python\aixmParser-master\src\aixmParser.py", line 80, in
if aixmCtrl.execParser(oOpts): #Execution des traitements
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Theranthil\python\aixmParser-master\src\aixmReader\AixmControler.py", line 273, in execParser
o2json.parseAirspacesBorders(oAs)
File "C:\Users\Theranthil\python\aixmParser-master\src\aixm2json\Aixm2json4_5.py", line 410, in parseAirspacesBorders
self.parseAirspaceBorder(oZone, oBorder)
File "C:\Users\Theranthil\python\aixmParser-master\src\aixm2json\Aixm2json4_5.py", line 510, in parseAirspaceBorder
arc = self.oCtrl.oAixmTools.make_arc2(Pcenter, Pstart, Pstop, 0.0, (codeType=="CWA"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Theranthil\python\aixmParser-master\src\aixmReader\AixmTools.py", line 515, in make_arc2
g = self.make_arc(Pcenter, radius, degStart, degStop, clockwiseArc)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Theranthil\python\aixmParser-master\src\aixmReader\AixmTools.py", line 463, in make_arc
polygon = geog.propagate(Pcenter, angles, radius)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Users\Theranthil\AppData\Local\Programs\Python\Python311\Lib\site-packages\geog\geog.py", line 161, in propagate
p0 = np.radians(p0)
^^^^^^^^^^^^^^
TypeError: loop of ufunc does not support argument 0 of type Point which has no callable radians method`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.