GithubHelp home page GithubHelp logo

reyery / cea-osm-gwr-mapper Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 21 KB

Maps building properties from GWR data to OpenStreetMaps building geometries in CEA format

License: MIT License

Python 100.00%

cea-osm-gwr-mapper's Introduction

cea-plugin-template

To install, clone this repo to a desired path (you would need to have git installed to run this command. Alternatively you can also run this command in the CEA console):

git clone https://github.com/reyery/cea-osm-gwr-mapper.git DESIRED_PATH

Open CEA console and enter the following command to install the plugin to CEA:

pip install -e PATH_OF_PLUGIN_FOLDER

(NOTE: PATH_OF_PLUGIN_FOLDER would be the DESIRED_PATH + 'cea-osm-gwr-mapper')

In the CEA console, enter the following command to enable the plugin in CEA:

cea-config write --general:plugins cea_osm_gwr_mapper.gwr_mapper.GWRMapperPlugin

Now you should be able to enter the following command to run the plugin:

cea gwr-mapper

cea-osm-gwr-mapper's People

Contributors

reyery avatar

Stargazers

Amedeo Ceruti avatar

Watchers

James Cloos avatar  avatar

Forkers

shanshanhsieh

cea-osm-gwr-mapper's Issues

hardcoded GWR header

The current code reads GWR database with a specific data structure: subset of Datensatz 5.
There is a risk of misinterpreting the table if the data structure is different from the source.
Below is a mapping table, hope it helps to make the script applicable to any data structure.
(haven't experience any issue yet)

GWR_COLUMN_NAMES = {
    'EGID': 'federal_id',
    'GEBNR': 'official_building_number',
    'GBEXZ': 'building_designation',
    'GKODE': 'e_coordinate',
    'GKODN': 'n_coordinate', 
    'GKSCE': 'coordinate_origin',
    'GLOC1': 'local_code_1',
    'GLOC2': 'local_code_2',
    'GLOC3': 'local_code_3',
    'GLOC4': 'local_code_4',
    'GQUART': 'quarter',
    'GSTAT': 'building_status',
    'GKAT': 'building_category', 
    'GKLAS': 'building_class',
    'GBAUJ': 'construction_year', 
    'GBAUM': 'construction_month',
    'GBAUJM': 'construction_year_month',
    'GBAUP': 'construction_period',
    'GRENJ': 'renovation_year',
    'GABBJ': 'demolition_year', 
    'GAREA': 'building_area',
    'GVOL': 'building_volume', 
    'GVOLSCE': 'building_volume_source',
    'GVOLNORM': 'building_volume_norm', 
    'GASTW': 'number_floors', 
    'GAZZI': 'number_living_rooms', 
    'GSCHUTZR': 'civil_defence_room', 
    'GEBF': 'energy_reference_area', 
    'GWAERZH1': 'heating_tech_1', 
    'GENH1': 'heating_source_1',
    'GWAERSCEH1': 'heating_info_source_1', 
    'GWAERDATH1': 'heating_update_date_1', 
    'GWAERZH2': 'heating_tech_2', 
    'GENH2': 'heating_source_2', 
    'GWAERSCEH2': 'heating_info_source_2',
    'GWAERDATH2': 'heating_update_date_2', 
    'GWAERZW1': 'hot_water_tech_1', 
    'GENW1': 'hot_water_source_1', 
    'GWAERSCEW1': 'hot_water_info_source_1', 
    'GWAERDATW1': 'hot_water_update_date_1',
    'GWAERZW2': 'hot_water_tech_2', 
    'GENW2': 'hot_water_source_2', 
    'GWAERSCEW2': 'hot_water_info_source_2', 
    'GWAERDATW2': 'hot_water_update_date_2', 
    'Create_Date': 'create_date',
    'Update_Date': 'update_date', 
    'GGDENR': 'district_number', 
    'GDENAME': 'district_name', 
    'GDEKT': 'canton',
}

fail to install plugin

I tried to install this plugin. I was able to clone it, but I'm stuck on the second step: "pip install -e PATH_OF_PLUGIN_FOLDER".
For this command, I copied the following line into the CEA console:
"pip install -e C:\Users\mm\Documents\CityEnergyAnalyst\osm_GWEMapper"
However, I received the error:
"failed to create process."

I also tried to clone the plugin into a different folder (PATH) but still recive same error.

Could you please provide some hints on this matter?
Thank you,
Maryam

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.