celutz issueshttps://code.ffdn.org/ffdn/celutz/-/issues2019-08-27T11:30:09Zhttps://code.ffdn.org/ffdn/celutz/-/issues/86Information in panorama mode hide behind the map2019-08-27T11:30:09Zmarmat8951Information in panorama mode hide behind the mapThe information box saying what's the heading and elevation hide behind the map, and can move after the right side of the window. It should move to the left side when it get close to the map or the right side.
![celutz_bug](/uploads/5333...The information box saying what's the heading and elevation hide behind the map, and can move after the right side of the window. It should move to the left side when it get close to the map or the right side.
![celutz_bug](/uploads/533389ac7830fac4cff6bab3529bb532/celutz_bug.png)https://code.ffdn.org/ffdn/celutz/-/issues/85Unable to relocate an existing Reference (right-click on panorama)2019-04-22T15:34:40ZzopieuxUnable to relocate an existing Reference (right-click on panorama)When such a `Reference` already exists but is not at the right `(x, y)` location, using the contextual menu to re-add it results in an `IntegrityError` as DRF tries to create a new `Reference` with the same composite key `(refpoint, pano...When such a `Reference` already exists but is not at the right `(x, y)` location, using the contextual menu to re-add it results in an `IntegrityError` as DRF tries to create a new `Reference` with the same composite key `(refpoint, panorama)`.
The contextual menu should know of the ref that are already set on the panorama, and display an *Update* button instead of *Insert*, and use a `PUT` instead of a `POST`.https://code.ffdn.org/ffdn/celutz/-/issues/84Correctly handle non-360° pictures in the interface2019-04-22T15:33:08ZzorunCorrectly handle non-360° pictures in the interfaceThere are two main problems with non-360° pictures right now:
* the picture is repeated horizontally, even though the left-most and right-most edges do not match
* when specifying a given azimuth and elevation (for instance using the c...There are two main problems with non-360° pictures right now:
* the picture is repeated horizontally, even though the left-most and right-most edges do not match
* when specifying a given azimuth and elevation (for instance using the control box), if the azimuth is outside the image, then the resulting position is completely wrong. In this case, the position should be cropped to the nearest image boundary (exactly like it is already done vertically, for elevation).
The second issue is fixed by 26a271f108ca19eee5c82a0eb4fa660c98f0e9a7.
For the first issue, we can distinguish between two cases:
* the picture is "almost" 360°. In this case, we could add some space without tiles that represents the missing bit of photography. This way, the panorama would correctly loop in the interface.
* the picture is far from being 360°. In this case, it wouldn't be very user-friendly to add a large portion of untiled space to fill the gap to 360°. But we could still add a bit of untiled space on each side, so that reference points or other panoramas are shown on the interface even though they are just a bit outside of the picture.https://code.ffdn.org/ffdn/celutz/-/issues/83TIFF images with malformed EXIF data are refused by Django with Pillow 3.0.02019-04-22T15:31:41ZzorunTIFF images with malformed EXIF data are refused by Django with Pillow 3.0.0A few TIFF images are refused by Django in ImageField when using Pillow 3.0.0. When using Pillow 2.7.0, the images are accepted, but with a warning suggesting that some EXIF metadata is incorrect:
```
/home/zorun/tmp/venv2-celutz/lib/p...A few TIFF images are refused by Django in ImageField when using Pillow 3.0.0. When using Pillow 2.7.0, the images are accepted, but with a warning suggesting that some EXIF metadata is incorrect:
```
/home/zorun/tmp/venv2-celutz/lib/python2.7/site-packages/PIL/TiffImagePlugin.py:466: UserWarning: Possibly corrupt EXIF data. Expecting to read 616 bytes but only got 76. Skipping tag 279
"Skipping tag %s" % (size, len(data), tag))
/home/zorun/tmp/venv2-celutz/lib/python2.7/site-packages/PIL/TiffImagePlugin.py:466: UserWarning: Possibly corrupt EXIF data. Expecting to read 8 bytes but only got 0. Skipping tag 282
"Skipping tag %s" % (size, len(data), tag))
/home/zorun/tmp/venv2-celutz/lib/python2.7/site-packages/PIL/TiffImagePlugin.py:466: UserWarning: Possibly corrupt EXIF data. Expecting to read 8 bytes but only got 0. Skipping tag 283
"Skipping tag %s" % (size, len(data), tag))
/home/zorun/tmp/venv2-celutz/lib/python2.7/site-packages/PIL/TiffImagePlugin.py:466: UserWarning: Possibly corrupt EXIF data. Expecting to read 8 bytes but only got 0. Skipping tag 286
"Skipping tag %s" % (size, len(data), tag))
/home/zorun/tmp/venv2-celutz/lib/python2.7/site-packages/PIL/TiffImagePlugin.py:466: UserWarning: Possibly corrupt EXIF data. Expecting to read 8 bytes but only got 0. Skipping tag 287
"Skipping tag %s" % (size, len(data), tag))
/home/zorun/tmp/venv2-celutz/lib/python2.7/site-packages/PIL/TiffImagePlugin.py:466: UserWarning: Possibly corrupt EXIF data. Expecting to read 28 bytes but only got 0. Skipping tag 305
"Skipping tag %s" % (size, len(data), tag))
/home/zorun/tmp/venv2-celutz/lib/python2.7/site-packages/PIL/TiffImagePlugin.py:466: UserWarning: Possibly corrupt EXIF data. Expecting to read 20 bytes but only got 0. Skipping tag 306
"Skipping tag %s" % (size, len(data), tag))
/home/zorun/tmp/venv2-celutz/lib/python2.7/site-packages/PIL/TiffImagePlugin.py:466: UserWarning: Possibly corrupt EXIF data. Expecting to read 8 bytes but only got 0. Skipping tag 339
"Skipping tag %s" % (size, len(data), tag))
```
With Pillow 3.0.0, tile generation also fails on those TIFF files:
```
[2015-10-23 18:27:11,478: ERROR/MainProcess] Task panorama.tasks.generate_tiles[487453ea-25cf-488a-9059-1eec75066889] raised unexpected: OSError("cannot identify image file '/home/zorun/illyse/git/celutz/media/pano/toit.tif'",)
Traceback (most recent call last):
File "/home/zorun/tmp/venv3-celutz/lib/python3.5/site-packages/celery/app/trace.py", line 240, in trace_task
R = retval = fun(*args, **kwargs)
File "/home/zorun/tmp/venv3-celutz/lib/python3.5/site-packages/celery/app/trace.py", line 438, in __protected_call__
return self.run(*args, **kwargs)
File "/home/zorun/illyse/git/celutz/panorama/tasks.py", line 11, in generate_tiles
return gen_tiles(*args, **kwargs)
File "/home/zorun/illyse/git/celutz/panorama/gen_tiles.py", line 23, in gen_tiles
orig_im = PIL.Image.open(image)
File "/home/zorun/tmp/venv3-celutz/lib/python3.5/site-packages/PIL/Image.py", line 2286, in open
% (filename if filename else fp))
OSError: cannot identify image file '/home/zorun/illyse/git/celutz/media/pano/toit.tif'
```https://code.ffdn.org/ffdn/celutz/-/issues/82Include minimap position and zoom level in the panorama permalinks2019-04-22T15:29:46ZzorunInclude minimap position and zoom level in the panorama permalinksWhen viewing a panorama, the URL is constantly updated so that it acts as a permalink. In particular, it stores the zoom level and the current orientation of the view.
However, since we added the minimap, we should include more informat...When viewing a panorama, the URL is constantly updated so that it acts as a permalink. In particular, it stores the zoom level and the current orientation of the view.
However, since we added the minimap, we should include more information in the permalink: the position and zoom level of the minimap.https://code.ffdn.org/ffdn/celutz/-/issues/79Zoom slider (on panorama view) is not practical2021-11-20T18:20:20ZzorunZoom slider (on panorama view) is not practicalOn the panorama view, in the "Controls" panel, there is a slider to change the zoom level.
It is really not practical:
* with firefox, the slider is not even displayed (probably black on a black background). With chromium however, it w...On the panorama view, in the "Controls" panel, there is a slider to change the zoom level.
It is really not practical:
* with firefox, the slider is not even displayed (probably black on a black background). With chromium however, it works fine.
* even more fundamentally, a slider is not practical to use. It would be more user-friendly to have a "-" button on the left and a "+" button on the right, or something similar.https://code.ffdn.org/ffdn/celutz/-/issues/78Mode fédération2019-04-22T15:20:31ZsebianMode fédérationC'est dans l'air de pas mal d'appli (Mastodon, Funkwhale, Peertube...): une instance et un mode fédéré permettant d'avoir accès aux autres instances.
Cela est-il possible avec ActivityPub ?
Merci en tout cas au passable pour ce superb...C'est dans l'air de pas mal d'appli (Mastodon, Funkwhale, Peertube...): une instance et un mode fédéré permettant d'avoir accès aux autres instances.
Cela est-il possible avec ActivityPub ?
Merci en tout cas au passable pour ce superbe soft !https://code.ffdn.org/ffdn/celutz/-/issues/75Interaction plus fonctionnelle avec un point de référence sur la carte2019-04-22T15:21:46ZsebianInteraction plus fonctionnelle avec un point de référence sur la carteAfin d'accéder à l'édition (mode admin) des points de références à partir de la carte principale, ça pourrait être intéressant de pouvoir avoir un menu (popup) qui apparaît lorsque l'on clique sur un point de référence.
Ce menu pourrait...Afin d'accéder à l'édition (mode admin) des points de références à partir de la carte principale, ça pourrait être intéressant de pouvoir avoir un menu (popup) qui apparaît lorsque l'on clique sur un point de référence.
Ce menu pourrait contenir :
- Les infos du point (relatif à #5)
- L'option "éditer" qui renvoi directement à la page d'édition du point dans l'admin
- L'option "Localiser" qui permet de renvoyer vers la vue `locate_refpoint` (relatif à #35) afin de voir depuis quels panos ce point est visible.https://code.ffdn.org/ffdn/celutz/-/issues/74Localiser un point en cliquant sur la carte2019-04-22T15:22:27ZsebianLocaliser un point en cliquant sur la carteÇa pourrait être bien pratique de faire la localisation d'un point de référence en cliquant sur le point sur la carte. Au final, faire l'équivalent de la fonction "localiser un point" et choisir dans le menu déroulant mais en cliquant si...Ça pourrait être bien pratique de faire la localisation d'un point de référence en cliquant sur le point sur la carte. Au final, faire l'équivalent de la fonction "localiser un point" et choisir dans le menu déroulant mais en cliquant simplement sur le point de référence sur la carte de la page principale.https://code.ffdn.org/ffdn/celutz/-/issues/72Le clic sur la minimap ne centre pas la vue au bon endroit2019-04-22T15:20:00ZsebianLe clic sur la minimap ne centre pas la vue au bon endroitLors d'un clic sur la minimap, on s'attend à ce que le cap devienne celui du point cliqué. Or, des fois ca ne marche pas.Lors d'un clic sur la minimap, on s'attend à ce que le cap devienne celui du point cliqué. Or, des fois ca ne marche pas.https://code.ffdn.org/ffdn/celutz/-/issues/70Les URL /altitudes/lat/lon/ ne prennent pas en compte FORCE_SCRIPT_NAME2019-04-22T15:22:32ZsebianLes URL /altitudes/lat/lon/ ne prennent pas en compte FORCE_SCRIPT_NAMEQuand l'appli Django n'est pas déployée à la racine d'un vhost (ie. `example.com/celutz` au lieu de `example.com/`) alors on ajoute à `local_settings.py` la variable `FORCE_SCRIPT_NAME = "/celutz"` ([source](https://docs.djangoproject.co...Quand l'appli Django n'est pas déployée à la racine d'un vhost (ie. `example.com/celutz` au lieu de `example.com/`) alors on ajoute à `local_settings.py` la variable `FORCE_SCRIPT_NAME = "/celutz"` ([source](https://docs.djangoproject.com/en/1.11/ref/settings/#force-script-name)) (en plus de setter `STATIC_URL` et `MEDIA_URL`), mais les URLs `/altitude/lat/lon/` ne le prennent pas en compte.
Une solution simple consiste à rendre ces URLs relatives, dans `panorama/templates/panorama/main.html`, ligne 127 :
```diff
-$.get("/altitude/" + lat + "/" + lng + "/").done(
+$.get("altitude/" + lat + "/" + lng + "/").done(
```https://code.ffdn.org/ffdn/celutz/-/issues/65Barre de défilement horizontal pour panos2019-04-22T15:22:34ZsebianBarre de défilement horizontal pour panosAvoir la barre de défilement horizontal reste assez pratique pour visualiser un pano.
Il faudrait donc la (re)mettre.Avoir la barre de défilement horizontal reste assez pratique pour visualiser un pano.
Il faudrait donc la (re)mettre.https://code.ffdn.org/ffdn/celutz/-/issues/64Recherche d'altitude avec geoportail plutôt que geonames2019-04-22T15:19:58ZsebianRecherche d'altitude avec geoportail plutôt que geonamesGeonames n'est pas très précis et renvoi parfois des résultats assez étonnants.
Geoportail semble être plus rigoureux : https://www.geoportail.gouv.fr/carte
Exemple de requête possible (renseigner les variables $lon et $lat) :
```
curl...Geonames n'est pas très précis et renvoi parfois des résultats assez étonnants.
Geoportail semble être plus rigoureux : https://www.geoportail.gouv.fr/carte
Exemple de requête possible (renseigner les variables $lon et $lat) :
```
curl --referer "https://www.geoportail.gouv.fr/carte" "https://wxs.ign.fr/an7nvfzojv5wa96dsga5nk8w/alti/rest/elevation.xml?output=json&lon=$lon&lat=$lat&indent=false&crs=%27CRS:84%27&zonly=true"
```https://code.ffdn.org/ffdn/celutz/-/issues/63Inclure la recherche d'adresses d'OSM2019-04-22T15:19:57ZsebianInclure la recherche d'adresses d'OSMLorsqu'on veut situer une adresse et qu'on ne connaît pas notre belle ville par cœur, ça pourrait être très pratique d'avoir une recherche de lieu (barre de recherche dans le topnav par ex). Les résultats de la recherche s'afficheraient ...Lorsqu'on veut situer une adresse et qu'on ne connaît pas notre belle ville par cœur, ça pourrait être très pratique d'avoir une recherche de lieu (barre de recherche dans le topnav par ex). Les résultats de la recherche s'afficheraient sur un dropdown, on clique et ça nous amène sur l'adresse exacte sur la carte.
Ça peut être assez simple avec l'outil Nominatim d'OSM (https://nominatim.openstreetmap.org) qui contient une API : https://wiki.openstreetmap.org/wiki/FR:Nominatimhttps://code.ffdn.org/ffdn/celutz/-/issues/61Modification d'un point2019-04-22T15:22:37ZsebianModification d'un pointOn peut ajouter des points (panoramas, points d'intérêt). C'est très bien, mais ça serait top de gérer la modification de ces points directement depuis le main.html.
Cela pourrait passer par le déplacement du point sur la carte. Ce dép...On peut ajouter des points (panoramas, points d'intérêt). C'est très bien, mais ça serait top de gérer la modification de ces points directement depuis le main.html.
Cela pourrait passer par le déplacement du point sur la carte. Ce déplacement devrait être activable après avoir cliqué sur le point. Un clic droit serait préférable.
Le clic droit devrait activer un "context menu" contenant les infos du point (éditables) et la possibilité de déplacer le point pour modifier les coordonées GPS).
Le clic droit pourrait juste contenir "update" et un dropdown menu s'activerai sur la sidebar ou la topbar, permettant ainsi de modifier les champs et, par la même occasion, proposant de déplacer le point pour mettre à jour les coordonées GPS.https://code.ffdn.org/ffdn/celutz/-/issues/59Allow to hide/show the minimap on the panorama view2019-04-22T15:19:56ZsebianAllow to hide/show the minimap on the panorama viewCurrently, a small map is always shown on the bottom-right corner of the panorama view.
It would be nice to be able to hide the minimap, and keep a button or a bar to be able to display it again.Currently, a small map is always shown on the bottom-right corner of the panorama view.
It would be nice to be able to hide the minimap, and keep a button or a bar to be able to display it again.https://code.ffdn.org/ffdn/celutz/-/issues/54Add a way to switch language in the UI2019-04-22T15:19:55ZsebianAdd a way to switch language in the UICelutz is now fully internationalized (French, English, Spanish). For now, it auto-detects the language based on the browser preference, and you can also force the language in the URL.
It would be nice to add a language selector in the...Celutz is now fully internationalized (French, English, Spanish). For now, it auto-detects the language based on the browser preference, and you can also force the language in the URL.
It would be nice to add a language selector in the interface, probably in the top bar. Something like this: https://docs.djangoproject.com/en/1.10/topics/i18n/translation/#miscellaneoushttps://code.ffdn.org/ffdn/celutz/-/issues/53Contextual help in celutz2019-04-22T15:22:39ZsebianContextual help in celutzIt would be nice to have some contextual help inside celutz itself: some popups, tooltips, whatever, to explain how to do things (create a new reference point, calibrate a panorama, etc).
Related to #13 (legend for markers)It would be nice to have some contextual help inside celutz itself: some popups, tooltips, whatever, to explain how to do things (create a new reference point, calibrate a panorama, etc).
Related to #13 (legend for markers)https://code.ffdn.org/ffdn/celutz/-/issues/52Légende des marqueurs2019-04-22T15:19:54ZsebianLégende des marqueursAjouter une légende des marqueurs dans la sidebar ou dans la topbarAjouter une légende des marqueurs dans la sidebar ou dans la topbarhttps://code.ffdn.org/ffdn/celutz/-/issues/51permettre l'ajout d'un nouveau point de référence depuis la vue principale2019-04-22T15:19:53Zsebianpermettre l'ajout d'un nouveau point de référence depuis la vue principaleDe la même manière que depuis la vue du panorama, il serait interessant de pouvoir ajouter un nouveau point de référence sans passer par l'administration.
Cela se ferai de la même manière que la localisation par GPS sauf que cela ajoute...De la même manière que depuis la vue du panorama, il serait interessant de pouvoir ajouter un nouveau point de référence sans passer par l'administration.
Cela se ferai de la même manière que la localisation par GPS sauf que cela ajouterai le point dans la base de donnée.