nofaceinbook / muxp

Mesh Updater X-Plane
GNU Lesser General Public License v3.0
18 stars 3 forks source link

area argument 4 is outside defined tile definition for latitude #68

Open jenijek opened 2 years ago

jenijek commented 2 years ago

Greetings Friends, please look there is a problem with the coordinates, what am I doing wrong? log muxp.muxp_file-ERROR: area argument 4 is outside defined tile definition for latitude muxp-INFO: Command Dictionary: {'commands': [{'command': 'cut_polygon.bound', 'elevation': '86', 'coordinates': ['40.0444283 52.9896259', '40.0409358 52.9894997', '40.0396903 52.9907845', '40.0385686 52.9959781', '40.0384935 53.0032677', '40.0453947 53.0175365', '40.0916252 53.0031361', '40.0897113 52.9921018', '40.083399 52.9941797', '40.0517828 52.9779129', '40.0513152 52.9813806', '40.0504381 52.9830246', '40.0471704 52.9844445', '40.046652 52.9873931', '40.0463689 52.9903063', '40.0467331 52.9922035', '40.0444283 52.9896259']}, {'command': 'cut_polygon.runway_0', 'elevation': '86', 'coordinates': ['40.07436392 53.00355036', '40.07445568 53.00406584', '40.05250458 53.01073084', '40.05241282 53.01021536', '40.07436392 53.00355036']}, {'command': 'cut_polygon.runway_1', 'elevation': '86', 'coordinates': ['40.08142865 52.99916207', '40.08152155 52.99968933', '40.05086125 53.00890583', '40.05076835 53.00837857', '40.08142865 52.99916207']}], 'muxp_version': '0.32', 'id': 'airport_UTAK', 'version': '1.0', 'description': 'flattening of Turkmenbashi', 'author': 'muxp_auto_creation_from_apt.dat', 'tile': '+40+052', 'area': [40.0379935, 40.092125200000005, 52.9774129, 53.0180365], 'source_dsf': 'DEFAULT', 'elevation_step': None} muxp-ERROR: muxp-file validation ERROR // Validation Error Code -4. Refer muxp.log for details. muxp-INFO: Searching Config File: I:/xplane11/Custom Scenery/zzzz_MUXP_default_mesh_updates/muxp.config muxp.muxp_file-INFO: Reading muxp File: I:/xplane11/Custom Scenery/zzzz_MUXP_default_mesh_updates/muxp.config

d41k4n commented 2 years ago

Looks like muxp expects your areas for commands cut_polygon.runway_0 and cut_polygon.runway_1 to be entirely within the specified tile +40+052 while they are not.

jenijek commented 2 years ago

Looks like muxp expects your areas for commands cut_polygon.runway_0 and cut_polygon.runway_1 to be entirely within the specified tile +40+052 while they are not.

Thank you! What should I do now? Please tell me

nofaceinbook commented 2 years ago

Hi jenijek, your area is overlapping tile boundaries 052 and 053. This means you need to adapt two dsf files which means to create two muxp files. In one the area has maximum 53.0 and in the other 53.0 is the minimum. Commands that are entirely in 053 like for runway 0. For commands that overlap you could have them in both muxp files. However, to cover this overlapping for commands is pretty new in the code and might still have errors.

FranknFly commented 1 year ago

Hi nofaceinbook, great tool. I also have the problem of an airport, EDQC, crossing a tile boundary: +50+10, +50+11. So how do I tell MUXP to only create a muxp-file for one tile at a time?

nofaceinbook commented 1 year ago

You have to create two separate MUXP files, one for each tile. In case you use auto-generation of MUXP files you copy the muxp file and edit the area in each file to include only the area to the border. Then you run MUXP for each file.

FranknFly commented 1 year ago

Thanks for the quick reply :) So say I want to generate a muxp file for +50+10. Do I delete all coordinates with a longitude of 11. or do I replace the longitude by 10.99999999. Conversely, I would then replace all longitudes of 10: by 11.00000000 in the +50+11 tile.

FranknFly commented 1 year ago

I figured it out for +50+010, but for +50+011 the program stops on "cut_spline_segment.runway_1" I'll attach the file automuxed_airport_EDQC_11.zip

FranknFly commented 1 year ago

Got everything to work now. Great tool. Thanks!