Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

@mortar.io If you go from an OpenStreetMap footprint to an OpenStudio space you could use the fromFloorprint method, used here in the create_bar code.. It takes in a point3dVector and an extraction height. But this would give you a single space representing the full building footprint, which isn't ideal. In URBANopt we have code to create core and perimeter zones from a GeoJSON feature, you could leverage that code but change the input format. Note while OpenStudio has built in methods for GeoJSON it doesn't have any for OpenStreetMap, but I have seen some efforts to develop code to convert OpenStreetMap to GeoJSON.

The core and perimeter is ok for some building types such as office that can be modeled a singled blended space type across the entire footprint, but in some case you may want to manually sub-divide the footprint. One idea we had that has not been implemented was to convert from GeoJSON to FloorSpaceJS. So this automates the initial tracing, but then still requires manual sub-division and space type assignment.

Using gbXML is another option, but I think going into FloorSpaceJS to sub-divide is good unless you are also developing a method to subdivide. There are a number of tools with advanced generative design for building layouts; some of those tools have pathways to OpenStudio. Hope this helps. Please update this if you do decide to write code that others can use or contribute to.

@mortar.io If you go from an OpenStreetMap footprint to an OpenStudio space you could use the fromFloorprint method, used here in the create_bar code.. It takes in a point3dVector and an extraction extrusion height. But this would give you a single space representing the full building footprint, which isn't ideal. In URBANopt we have code to create core and perimeter zones from a GeoJSON feature, you could leverage that code but change the input format. Note while OpenStudio has built in methods for GeoJSON it doesn't have any for OpenStreetMap, but I have seen some efforts to develop code to convert OpenStreetMap to GeoJSON.

The core and perimeter is ok for some building types such as office that can be modeled a singled blended space type across the entire footprint, but in some case you may want to manually sub-divide the footprint. One idea we had that has not been implemented was to convert from GeoJSON to FloorSpaceJS. So this automates the initial tracing, but then still requires manual sub-division and space type assignment.

Using gbXML is another option, but I think going into FloorSpaceJS to sub-divide is good unless you are also developing a method to subdivide. There are a number of tools with advanced generative design for building layouts; some of those tools have pathways to OpenStudio. Hope this helps. Please update this if you do decide to write code that others can use or contribute to. to.