Calculate hotspot polygonal length [SOLVED]

  • Hello, I need to obtain the length of a hotspot polygonal in units of measurement corresponding to the coordinates ATH ATV. That is to say that maintains the same value in any FOV.
    Thanks,
    Fernando

    Note: polyline="true" (hotspot polygonal is a polyline)

    3 Mal editiert, zuletzt von Fernando (22. Mai 2020 um 17:16)

  • If I understand you correctly

    translation difficulties *huh*

  • Hi Sergey,

    My pano is a plain image (as a map). I see that getlooktodistance get the spherical distance in degrees from 0 to 180 degree. I see that ATH and ATV are degrees too.

    The polyline in a plain image is as a rute. I need to measure it for later to convert it to meters.

    Perhaps I must set a reference maxime distance between two known points to 180 degree and then calculate the value from other angles.

    Example:
    180 degree it is equivalent to 500 meters, then 90 degree to 250 meters in the plain image.
    I will test this idea. The final goal is to measure distances in meters from the values of ath, atv.

    Thanks very much for your answer, I wait for your comments. *smile*

  • Hi,

    measurements would be only possible on a known flat surface.
    Most easy on a 2d map, there just linearly get the distances between the polygon points.

    Here an older example from a construction documentation - hover the lines with the mouse to see their length:
    https://krpano.com/examples/map_line_measurement/

    There this is done by calculating the length of the polylines and of one invisible 'scale'-line that has a known length.

    Here the xml:
    https://krpano.com/viewsource.htm…rement/tour.xml

    and here the related actions:


    Best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!