more answers

This commit is contained in:
Motiejus Jakštys 2019-11-30 02:52:16 +02:00
parent 19459813ee
commit cfaf2a1868
3 changed files with 10 additions and 12 deletions

View File

@ -110,25 +110,25 @@ Visas keliu/Grioviu tinklo ilgis (pagal asis)
%.3f""" % sum(keliu_ilgiai.values()) + """ %.3f""" % sum(keliu_ilgiai.values()) + """
=== Uzlietu zemenaudmenu plotai (0.001 m2 tikslumu) === === Uzlietu zemenaudmenu plotai (0.001 m2 tikslumu) ===
Miskas Miskas
******* 24413.152
Ariama Ariama
******* 2797.416
Sodas Sodas
******* 3224.118
Pieva Pieva
******* 0.000
Ganykla Ganykla
******* 1653.369
Krumai Krumai
******* 1998.581
Kelias A-03 Kelias A-03
******* 5271.599
Kelias A-05 Kelias A-05
******* 3019.468
Kelias A-08 Kelias A-08
******* 0.000
Griovys G-11 Griovys G-11
******* 3738.362
Visas prognozuojamo uzliejimo plotas (0.001 m2 tikslumu) Visas prognozuojamo uzliejimo plotas (0.001 m2 tikslumu)
%.3f""" % heptagon_area + """ %.3f""" % heptagon_area + """
Visas uzlietas plotas (0.001 m2 tikslumu) Visas uzlietas plotas (0.001 m2 tikslumu)

View File

@ -205,8 +205,6 @@ keliu_ilgiai = {}
for id, kelias in keliai.items(): for id, kelias in keliai.items():
keliu_ilgiai[id] = LineString([Points[i].xy for i in kelias.virsunes]).length keliu_ilgiai[id] = LineString([Points[i].xy for i in kelias.virsunes]).length
print(keliu_ilgiai)
if __name__ == '__main__': if __name__ == '__main__':
print("angle sum %.4f, theoretical angle sum %d" % \ print("angle sum %.4f, theoretical angle sum %d" % \
(angle_sum, theoretical_angle_sum)) (angle_sum, theoretical_angle_sum))