[osm-hu] Mapillary

Feri Veres lion at cmsbazar.hu
2021. Ápr. 26., H, 08:11:24 UTC


2021. 04. 26. 8:20 keltezéssel, KAMI911 KAMI911 írta:
> Ha a Mapillary tools-sal töltitek fel, ez nem lehet segítség?
>
>
>       Derive image direction and Upload
>
>   * Derive image direction (image heading or camera angle) based on
>     image latitude and longitude. If images are missing direction, the
>     direction is derived automatically, if direction is present, it
>     will be derived and overwritten only if the flag |--interpolate
>     directions| is specified.
>
>
Esetleg valami Mapillary független megoldás nincs erre? Kód példa:

https://github.com/mapillary/mapillary_tools/blob/073aa96278e8de46cae77b6d4062f7269e81bc8d/mapillary_tools/geo.py#L143

Általánosan is hasznos lenne az ilyen képekbe ez a javítás a track 
alapján. Nekem is teljesen rosszul rakja bele a Mapillary App:


Üdv,

Feri

def compute_bearing(start_lat, start_lon, end_lat, end_lon):
     '''
     Get the compass bearing from start to end.
     Formula from
     http://www.movable-type.co.uk/scripts/latlong.html
     '''
     # make sure everything is in radians
     start_lat = math.radians(start_lat)
     start_lon = math.radians(start_lon)
     end_lat = math.radians(end_lat)
     end_lon = math.radians(end_lon)

     dLong = end_lon - start_lon

     dPhi = math.log(math.tan(end_lat / 2.0 + math.pi / 4.0) /
                     math.tan(start_lat / 2.0 + math.pi / 4.0))
     if abs(dLong) > math.pi:
         if dLong > 0.0:
             dLong = -(2.0 * math.pi - dLong)
         else:
             dLong = (2.0 * math.pi + dLong)

     y = math.sin(dLong) * math.cos(end_lat)
     x = math.cos(start_lat) * math.sin(end_lat) - \
         math.sin(start_lat) * math.cos(end_lat) * math.cos(dLong)
     bearing = (math.degrees(math.atan2(y, x)) + 360.0) % 360.0

     return bearing

--------- következő rész ---------
Egy csatolt HTML állomány át lett konvertálva...
URL: <http://lists.openstreetmap.org/pipermail/talk-hu/attachments/20210426/2bad57c9/attachment.htm>
--------- következő rész ---------
A non-text attachment was scrubbed...
Name: gpskepek.png
Type: image/png
Size: 11025 bytes
Desc: nem elérhető
URL: <http://lists.openstreetmap.org/pipermail/talk-hu/attachments/20210426/2bad57c9/attachment.png>


További információk a(z) Talk-hu levelezőlistáról