-
Notifications
You must be signed in to change notification settings - Fork 11
Description
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
`C:\Users\xxxx\python\aixmParser-master\src>aixmParser.py ../tst/aixm4.5_all_FR_OM_2023-01-26.xml -Fgeojson -Tall -ALL -CleanLog
(Logger) Initialisation
(aixmParser v2.26.4)
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`