Giter VIP home page Giter VIP logo

airspace-converter's Introduction

OpenaAIP - Free Worldwide Aviation Database

This is the public issue tracker of https://www.openaip.net. Fell free to post bugs, feature requests and more!

airspace-converter's People

Contributors

efa avatar openaip-automator avatar reskume avatar tobiasfetzer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

airspace-converter's Issues

second of degree wrong approximation

hi,
I saw the app approximate by defect and not to near integer the second of degree.
This results in errors of 31 meters of airspaces.
For example Alzate Brianza Acro

`official ENR5-2-2 data by enav.it are:

Alzate Brianza Acro AD
AH 4000FT AMSL
AL 2000FT AMSL
45:46:54 N 009:08:55 E
45:46:36 N 009:10:06 E
45:45:46 N 009:09:32 E
45:46:06 N 009:08:26 E
45:46:54 N 009:08:55 E

OpenAirSpace raw .aip XML data are:

45.7816666667 9.1486111111 #45° 46' 54“ 9° 8' 55
45.7766666667 9.1683333333 #45° 46' 36“ 9° 10' 6
45.7627777778 9.1588888889 #45° 45' 46“ 9° 9' 32
45.7683333333 9.1405555556 #45° 46' 6“ 9° 8' 26
45.7816666667 9.1486111111 #45° 46' 54“ 9° 8' 55
that are exactly equivalent to ENR enav.it official values

but airspace-converter results:

AC R
AN Alzate Brianza(Acro)
AH 4000F MSL
AL 2000F MSL
DP 45:46:54 N 009:08:54 E
DP 45:46:36 N 009:10:05 E
DP 45:45:46 N 009:09:32 E
DP 45:46:05 N 009:08:26 E
DP 45:46:54 N 009:08:54 E
`
As you can see, there are some one unit of degree's seconds difference, about 31 meters.

The formula to calculate the degree's seconds require ROUND(x,0) and not INT(x) function.
INT() is OK for degree and degree's prime

Valerio

case sensitive files

files:
includes/airspace.php includes/geolocation.php
must be renamed to:
includes/Airspace.php includes/GeoLocation.php
to let run the script on all platforms

Force generated polygons to have at least 4 vertexes

Several airspace files contain airspaces that are either defined as a simple line (two points) or an invalid polygon with three points where the last point is the same as the first one. The airspace converter should only accept valid geometries and generated airspace polygons that have at least have 4 vertexes.
If an invalid geometry is detected, notify the user and ignore the geometry so the user can take action.

Conversion does not work

Hi,
I have downloaded the current airspace and wanted to convert it for qGIS

$ php aip2openair.php aip_in/openaip_airspace_germany_de.aip
Processing openaip_airspace_germany_de.aip..
No airspace definitions found in file. If file contains airspace definitions, this may also be a problem with wrong text encoding. Please save as UTF-8 and try again.
LOAD FAILED
Finished

I read the RAEADME.md but did not debug so far. My current OS is Windows7 with cygwin php 7.3.7 (with not all modules) installed. The input file was downloaded today.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.