more measurements

This commit is contained in:
Motiejus Jakštys 2019-11-30 01:31:13 +02:00
parent 8abeae03c1
commit 61471c1d77
2 changed files with 14 additions and 8 deletions

View File

@ -79,11 +79,11 @@ Koeficientas L13 plocio atidejimui (+/-0.001)
%+.3f""" % (L13/(L10+L11+L12+L13)) + """
=== Apskaiciuoti keliu ir grioviu plociai BRAIZYMUI (0.001 tikslumu) ===
Kelio A-03 plotis
%.3f""" % KA03_plotis + """
%.3f""" % A03_plotis + """
Kelio A-05 plotis
%.3f""" % KA05_plotis + """
%.3f""" % A05_plotis + """
Kelio A-08 plotis
%.3f""" % KA08_plotis + """
%.3f""" % A08_plotis + """
Griovio G-11 plotis
%.3f""" % G11_plotis + """
=== Apskaiciuota daugiakampio krastine D1 (0.001 tikslumu) ===
@ -96,18 +96,18 @@ Griovio G-11 plotis
=== Keliu ir grioviu asiu ilgiai (0.001 m tikslumu) ===
== Kelias A-03 ==
Asies 11-12-13-14-15-16-17-18 ilgis
*******
%.3f""" % keliu_ilgiai['A-03'] + """
==Kelias A-05 ==
Asies 4-5-6-7-8-9-10 ilgis
*******
%.3f""" % keliu_ilgiai['A-05'] + """
== Kelias A-08 ==
Asies 1-2-3 ilgis
*******
%.3f""" % keliu_ilgiai['A-08'] + """
== Griovys G-11 ==
Asies 19-20-21-22-23-24 ilgis
*******
%.3f""" % keliu_ilgiai['G-11'] + """
Visas keliu/Grioviu tinklo ilgis (pagal asis)
*******
%.3f""" % sum(keliu_ilgiai.values()) + """
=== Uzlietu zemenaudmenu plotai (0.001 m2 tikslumu) ===
Miskas
*******

View File

@ -2,6 +2,7 @@
from collections import namedtuple
from decimal import Decimal as Dec
from math import sin, cos, pi
from shapely.geometry import LineString
import numpy as np
def normalize(ang):
@ -189,6 +190,11 @@ keliai = {
),
}
keliu_ilgiai = {}
for id, kelias in keliai.items():
keliu_ilgiai[id] = LineString([Points[i].xy for i in kelias.virsunes]).length
print(keliu_ilgiai)
if __name__ == '__main__':
print("angle sum %.4f, theoretical angle sum %d" % \