Open jamiebull1 opened 6 years ago
Hello Jamie congratulations on this contribution. Can you update all issues, so it's possible to see items. For example this issue is already tackled i guess. Cheers.
Hi @FrancisBase . This issue is not at all tackled. There are lots of ways the GIS data can be formatted, so I think to tackle this issue properly, we need to define an expected format or formats to accept, and then a function or functions to read them in and create EnergyPlus geometry.
Ok here is an example of using open source libraries to be able to multi format read and possible also write (although for building by building basis its ok to stick with shp or geojson for example).
# See all available drivers supported by GDAL
import fiona
from fiona._drivers import GDALEnv
env = GDALEnv()
# This will print all available Drivers supported by GDAL
# All these can be used for reading data from them
# and most often also writing data into
env.start().drivers().keys()
Source: https://automating-gis-processes.github.io/CSC/notebooks/L2/data_io.html
It would be great if we could import buildings from GIS software and build models automatically. Main issue seems like it would be converting the coordinates from whatever format they are in to the simple
[(x1,y1,z1), ..., (xn,yn,zn)]
format we use in theBlock
class.Possibly useful: