{"id":19942898,"url":"https://github.com/looran/antennes","last_synced_at":"2025-03-01T13:23:56.414Z","repository":{"id":74253074,"uuid":"528651193","full_name":"looran/antennes","owner":"looran","description":"Query and export KML files from ANFR radio sites public data","archived":false,"fork":false,"pushed_at":"2024-10-07T22:02:35.000Z","size":6793,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T05:08:13.775Z","etag":null,"topics":["anfr","antenne","kml"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/looran.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-25T01:25:12.000Z","updated_at":"2024-10-07T22:02:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"c266e81f-048d-42e4-9487-30e834264126","html_url":"https://github.com/looran/antennes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/looran%2Fantennes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/looran%2Fantennes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/looran%2Fantennes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/looran%2Fantennes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/looran","download_url":"https://codeload.github.com/looran/antennes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241369378,"owners_count":19951742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anfr","antenne","kml"],"created_at":"2024-11-13T00:14:34.904Z","updated_at":"2025-03-01T13:23:56.150Z","avatar_url":"https://github.com/looran.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## antennes - Query and export KML files from ANFR radio sites data\n\nFeatures:\n* Generates KML file of all emetteurs sites based on ANFR monthly data\n* Opens in many PC / Mobile mapping software\n* Each placemark contains all informations about _support_, _stations_, _emetteurs_ and _antennes_ on the site\n* Each placemark is colored in red or orange if it has received modifications in the last 1 or 3 months\n\nYou can download [pre-generated KML files here](https://ferme.ydns.eu/antennes/) for each month perdiod since 2015:\n* `anfr_YYYY-MM_departements.kml` [~200MB] KML file containing all _supports_ organised by _departement_\n* `anfr_YYYY-MM_departements_light.kml` [~30MB] KML file containing all _supports_ organised by _departement_ and with no description\n* `anfr_YYYY-MM_proprietaires.kml` [~200MB] KML file containing all _supports_ organised by _proprietaire_\n* `anfr_YYYY-MM_stats.txt` [~2KB] statistics for the period\n\nAdditionally in [`split/`](https://ferme.ydns.eu/antennes/split/) you can find the splited KML files for each period:\n* `split/anfr_YYYY-MM_departement/anfr_YYYY-MM_departement_\u003cdept-id\u003e.kml` [\u003c10MB] a KML file with _supports_ for a single _departement_\n* `split/anfr_YYYY-MM_proprietaire/anfr_YYYY-MM_proprietaire_\u003cprop-id\u003e_\u003cprop-name\u003e.kml` [\u003c30MB] a KML file with _supports_ owned by a single _proprietaire_\n* `split/anfr_YYYY-MM_systeme/anfr_YYYY-MM_systeme_\u003csys-id\u003e_\u003cprop-name\u003e.kml` [12KB-200MB] a KML file with _supports_ that host a given system, organized by _departement_\n\n![example usage: antennes KML file imported in Google Earth](doc/antennes_googleearth.png)\u003cbr/\u003e\n_example usage: antennes KML file imported in Google Earth_\n\n\u003cimg src=\"doc/antennes_android_france.png\" width=\"200\" align=\"left\"/\u003e\n\u003cimg src=\"doc/antennes_android_close.png\" width=\"200\" align=\"left\"/\u003e\n\u003cimg src=\"doc/antennes_android_description.png\" width=\"200\" align=\"left\"/\u003e\n\u003cbr clear=\"left\"/\u003e\n\n_example usage: antennes KML file imported on Android_\n\nNOTE: Some mapping software do not support large numbers of placemarks. Consider displaying only a single _Document_ within the KML files, or load smaller [splitted KML files](https://ferme.ydns.eu/antennes/split/).\n\n# Usage\n\n```\nusage: antennes [-Cv] [-b \u003cdir\u003e] [-k \u003cdir\u003e] \u003cdata_dir\u003e\nQuery and export KML files from ANFR radio sites public data\n-b \u003cdir\u003e export csv bands statistics to this directory\n-C       do not set any kml placemark colors\n-k \u003cdir\u003e export kml files to this directory\n-s       display antennes statistics\n-v       verbose logging\nif neither -s or -k are specified, this program only loads the data.\noutput kml files hierarchy:\n   anfr_proprietaires.kml : all supports in a single file, one section per proprietaire\n   anfr_departements.kml : all supports in a single file, one section per departement\n   anfr_departements_light.kml : all supports in a single file, one section per departement, no description\n   anfr_proprietaire/anfr_proprietaire_\u003cproprietaire-id\u003e_\u003cproprietaire-name\u003e.kml : one file per proprietaire\n   anfr_departement/anfr_departement_\u003cdept-id\u003e.kml : one file per departement\n   anfr_systeme/anfr_systeme_\u003csys-name\u003e.kml : one file per systeme, one section per departement\nkml placemark colors:\n   orange for supports with stations updated in less than 3 months, red for 1 month, blue otherwise\n```\n\n# Build\n\n`make` will build using clang\n\n`make with_gcc` will build using gcc\n\n`make debug` will build using clang and debug flags\n\n# Example usage\n\nFetching latest data set\n\n```\n$ ./fetch_antennes.sh\ndownloading last 1 sets\n[...]\n[*] all sets downloaded to ./dl and extracted in ./extract\n```\n\nGenerating KML files on data from 2022-08\n\n```\n$ ./antennes -k output_kml/ extract/2022-08\n[+] loading files from extract/2022-08\n35 natures of support\n87271 supports\n74 proprietaires\nantennes: incoherent data set: line 72205: station 0422750464 already exists, ignoring\n169115 stations in 108 departments and 2628 zones\n176 exploitants\n1953886 emetteurs and 71 systemes\n3897941 bandes\nantennes: incoherent data set: station 9720980043 not found for antenne 210680, ignoring\nantennes: incoherent data set: station 9720980003 not found for antenne 1755967, ignoring\n552795 antennes\n82 types of antenne\n[*] exporting kml to output_kml/\ncreated 171 kml files\n```\n\n# Source code hierarchy\n\n* `antennes.c` source code for this program\n* `fetch_antennes.sh` fetch the data from data.gouv.fr\n* `Makefile` targets to build and test this program\n* `README.md` this file\n* `release_antennes.sh` automate generation of KML and statistics for multiple sets of data\n\n# Input data fields\n\n```\nSUP_ANTENNE.txt\n    STA_NM_ANFR;AER_ID;TAE_ID;AER_NB_DIMENSION;AER_FG_RAYON;AER_NB_AZIMUT;AER_NB_ALT_BAS;SUP_ID\nSUP_BANDE.txt\n    STA_NM_ANFR;BAN_ID;EMR_ID;BAN_NB_F_DEB;BAN_NB_F_FIN;BAN_FG_UNITE\nSUP_EMETTEUR.txt\n    EMR_ID;EMR_LB_SYSTEME;STA_NM_ANFR;AER_ID;EMR_DT_SERVICE\nSUP_EXPLOITANT.txt\n    ADM_ID;ADM_LB_NOM\nSUP_NATURE.txt\n    NAT_ID;NAT_LB_NOM\nSUP_PROPRIETAIRE.txt\n    TPO_ID;TPO_LB\nSUP_STATION.txt\n    STA_NM_ANFR;ADM_ID;DEM_NM_COMSIS;DTE_IMPLANTATION;DTE_MODIF;DTE_EN_SERVICE\nSUP_SUPPORT.txt\n    SUP_ID;STA_NM_ANFR;NAT_ID;COR_NB_DG_LAT;COR_NB_MN_LAT;COR_NB_SC_LAT;COR_CD_NS_LAT;COR_NB_DG_LON;COR_NB_MN_LON;COR_NB_SC_LON;COR_CD_EW_LON;SUP_NM_HAUT;TPO_ID;ADR_LB_LIEU;ADR_LB_ADD1;ADR_LB_ADD2;ADR_LB_ADD3;ADR_NM_CP;COM_CD_INSEE\nSUP_TYPE_ANTENNE.txt\n    TAE_ID;TAE_LB\n```\n\n# Requirements\n\n5GB of free RAM\n\n# Ressources\n\n## Data sources\n\nSource des donnees sur data.gouv.fr\n* https://www.data.gouv.fr/fr/datasets/donnees-sur-les-installations-radioelectriques-de-plus-de-5-watts-1/\n\nReutilisation des donnees\n* Liste: https://www.data.gouv.fr/fr/datasets/donnees-sur-les-installations-radioelectriques-de-plus-de-5-watts-1/?reuses_page=1#community-reuses\n\nAutres sources de donnees\n* Mon Reseau Mobile: https://www.data.gouv.fr/fr/datasets/mon-reseau-mobile/\n* ANFR: https://data.anfr.fr/anfr/visualisation/information/?id=dd11fac6-4531-4a27-9c8c-a3a9e4ec2107\n\n## Similar projects\n\ncarte-fh\n* https://carte-fh.lafibre.info/ (cliquer sur \"Telecharger les fichier kml\")\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flooran%2Fantennes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flooran%2Fantennes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flooran%2Fantennes/lists"}