jamiebull1 / geomeppy

GeomEppy is a scripting language for use with Eppy, which in turn is a scripting language for EnergyPlus IDF files and output files.
https://pypi.python.org/pypi/geomeppy
MIT License
37 stars 23 forks source link

Import geometry from GIS tools #14

Open jamiebull1 opened 6 years ago

jamiebull1 commented 6 years ago

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 the Block class.

Possibly useful:

FrancisBases commented 5 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.

jamiebull1 commented 5 years ago

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.

FrancisBases commented 5 years ago

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