Code Monkey home page Code Monkey logo

mapgen's Introduction

XCSoar Logo XCSoar

.github/workflows/build-native.yml .github/workflows/build-container.yml .github/workflows/build-docs.yml

XCSoar is a tactical glide computer for Android, Linux, Mac OS X, and Windows.

This file is aimed at developers. Developers should read the developer manual.

Users can refer to the Users' Manual which, for the latest release, can be downloaded via the XCSoar home page.

Getting the source

The XCSoar source code is managed with git. It can be downloaded with the following command:

git clone --recursive https://github.com/XCSoar/XCSoar

To update your repository, type:

git pull

For more information, please refer to the git documentation.

Compiling from source

Please read the current Developer's Manual for detailed build instructions.

Submitting patches

Patches may be submitted using the Developers' mail list or GitHub. Refer to chapter 3 of the current Developers' Manual for details of how to write and submit patches upstream.

mapgen's People

Contributors

codacy-badger avatar csindle avatar kerel-fs avatar lordfolken avatar maxkellermann avatar minad avatar pre-commit-ci[bot] avatar renovate[bot] avatar scottp avatar tazle avatar tobiaslohner avatar turbo87 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mapgen's Issues

Server not generating any maps

Hi, I have been trying for a few hours now and i need to generate a map but it says its "working" then says "Error: Generation failed". I have tried on different browsers, drawing out the boundaries,and manually entering the Lat/long. Nothing works. I read somewhere the server could be reset? I hope we haven't lost this map creation feature XCsoar is a staple to my flying.

map generation error since bullseye upgrade

In some cases this seems to happen:

24 Generating map file for job uuid=7cc6d46e-4537-11ec-b987-525400c7f7bf, name=CentAus, mail=
25 Setting map boundaries: left=133.0725860595703, right=134.66835021972656, top=-23.259148823094606, bottom=-24.113051732520603
26 Adding topology...
27 Creating topology layer city_area ...
28 Reading dataset vmap0/sas ...
29 Reading dataset vmap0/soa ...
30 Generating index file for layer city_area ...
31 Creating topology layer water_area ...
32 Reading dataset vmap0/sas ...
33 Error: Command '['ogr2ogr', '-select', 'nam', '-where', 'hyc=8', '-spat', '133.0725860595703', '-24.113051732520603', '134.66835021972656', '-23.259148823094606', '/opt/mapgen/jobs/7cc6d46e-4537-11ec-b987-525400c7f7bf.working/tmp', '/opt/mapgen/data/vmap0/sas', 'hydro-inland-water-a', '-nln', 'water_a rea']' returned non-zero exit status 1.
34 Traceback (most recent call last):
35 File "/opt/mapgen/lib/xcsoar/mapgen/server/worker.py", line 57, in __do_job
36 generator.add_topology(compressed = description.compressed, level_of_detail = description.level_of_detail)
37 File "/opt/mapgen/lib/xcsoar/mapgen/generator.py", line 117, in add_topology
38 self.__files.extend(shapefiles.create(bounds, self.__downloader, self.__dir_temp, compressed, level_of_detail))
39 File "/opt/mapgen/lib/xcsoar/mapgen/topology/shapefiles.py", line 97, in create
40 __create_layer(bounds, layer, datasets[layer['dataset']], downloader, dir_temp, files, index, compressed)
41 File "/opt/mapgen/lib/xcsoar/mapgen/topology/shapefiles.py", line 59, in __create_layer
42 __create_layer_from_dataset(bounds, layer, datasets[i],
43 File "/opt/mapgen/lib/xcsoar/mapgen/topology/shapefiles.py", line 48, in __create_layer_from_dataset
44 subprocess.check_call(arg)
45 File "/usr/lib/python3.9/subprocess.py", line 373, in check_call
46 raise CalledProcessError(retcode, cmd)

Could not convert string to float in jobID

Jul 30 08:04:52 mapgen mapgen-worker[509]: Could not read timestamp file for job /opt/mapgen/jobs/511d0a4c7fe7a53c29dafb47edd6c49577c445fe.locked
Jul 30 08:04:52 mapgen mapgen-worker[509]: could not convert string to float:

File not found

I ve created a new map for Turkey, but I can only downloaded 2mb part of all file. and it start again a few time, and showed that fault "the file is missing" I can't solve that please help me :)

create central configuration file

currently urls are hardcoded in a lot of locations.
this needs to be centralized and be configurable.
Consider environment variables also, as that is a good way to overrule urls in a container environment.

Unicode Chars in Input not supported

Jan 21 13:07:21 mapgen mapgen-worker[24684]: Error: 'ascii' codec can't encode character u'\u015f' in position 1: ordinal not in range(128)
Jan 21 13:07:21 mapgen mapgen-worker[24684]: Traceback (most recent call last):
Jan 21 13:07:21 mapgen mapgen-worker[24684]: File "/opt/mapgen/lib/xcsoar/mapgen/server/worker.py", line 42, in __do_job
Jan 21 13:07:21 mapgen mapgen-worker[24684]: print('Generating map file for job uuid={}, name={}, mail={}'.format(job.uuid, job.description.name, job.description.mail))

mail notifications do not include the proper url to the map

No clickable url in the text, no map name in the text or information has how to regenerate it.

The XCSoar Map Generator has finished your map.
It can be downloaded at /download?uuid=c17dae5e-474c-11ec-8dec-525400c7f7bf
This link is valid for 7 days.

Error in NL map: big sea shows up as land

Hi,

I'm not sure if the issue is in the correct spot here (or should be in /mapdata), apologies if it isn't.

Basically, a huge sea in the Netherlands shows up as land (see picture).

There's quite some glider activity around that area so an improvement would be welcomed by many I guess. I already tried making a smaller map of that area only but it doesn't help. Also, I did a little research and tried to read and edit the .xcm map using Qgis but that didn't work...

If there's a way to fix this by myself, please let me know.

Thanks,
Niels

XCSoar_map_error

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

docker-compose
docker-compose.yml
dockerfile
container/frontend/Dockerfile
container/worker/Dockerfile
github-actions
.github/workflows/container-publish.yml
  • actions/checkout v3
  • docker/login-action v2
  • ASzc/change-string-case-action v5
  • docker/build-push-action v4
  • docker/build-push-action v4

  • Check this box to trigger a request for Renovate to run again on this repository

Sea represented as land

XCSoar versions having and not having the problem

6.8.17

Expected behavior

Sea area is represented as land

Actual behavior

A part of the IJsselmeer in the Netherlands (between the Afsluitdijk and the Houtribdijk) is falsely represented as land area instead of water.

Steps to reproduce the behavior

Pan to the area and you will sea ;-) how it looks like.

Do you have any idea what may have caused this?

Do you have an idea how to solve the issue?

download.xcsoar.org maps are old

The maps on download.xcsoar.org are old. Most of them predate the migration to 8.33 kHz channels, so it makes sense to update them. The source files for german and dutch waypoints have since been updated, and mapgen produces new files.

Please queue the creation of new files and upload them to download.xcsoar.org

mapgen not working at all

I used the tool successfully on March 5, but I have been unable to generate anything for the past three days. No matter what combination of options I try, the response is always:

Error: Generation failed!

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.