Punto de restauración.

This commit is contained in:
2025-07-16 08:58:35 +02:00
parent d009cb7695
commit e1e1441892
9 changed files with 599 additions and 579 deletions

View File

@@ -771,12 +771,12 @@ class _PVPlantSite(ArchSite._Site):
import PVPlantImportGrid
x, y, zone_number, zone_letter = utm.from_latlon(lat, lon)
self.obj.UtmZone = zone_list[zone_number - 1]
zz = PVPlantImportGrid.getElevationFromOE([[lat, lon]])
self.obj.Origin = FreeCAD.Vector(x * 1000, y * 1000, zz[0].z)
#self.obj.OriginOffset = FreeCAD.Vector(x * 1000, y * 1000, 0) #??
point = PVPlantImportGrid.getElevationFromOE([[lat, lon]])
self.obj.Origin = FreeCAD.Vector(point[0].x, point[0].y, point[0].z)
self.obj.Latitude = lat
self.obj.Longitude = lon
self.obj.Elevation = zz[0].z
self.obj.Elevation = point[0].z
class _ViewProviderSite(ArchSite._ViewProviderSite):