{"id":40882488,"url":"https://github.com/bertt/tesselate_building","last_synced_at":"2026-01-22T01:16:48.374Z","repository":{"id":40858598,"uuid":"232605726","full_name":"bertt/tesselate_building","owner":"bertt","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-09T01:28:05.000Z","size":96,"stargazers_count":12,"open_issues_count":2,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-05T22:06:51.907Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bertt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-08T16:22:39.000Z","updated_at":"2025-02-10T13:09:01.000Z","dependencies_parsed_at":"2024-01-04T14:46:28.758Z","dependency_job_id":"b0a0ebf1-30d6-4f3a-a5b4-3fe085ce969f","html_url":"https://github.com/bertt/tesselate_building","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bertt/tesselate_building","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertt%2Ftesselate_building","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertt%2Ftesselate_building/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertt%2Ftesselate_building/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertt%2Ftesselate_building/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bertt","download_url":"https://codeload.github.com/bertt/tesselate_building/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertt%2Ftesselate_building/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28648639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T21:29:11.980Z","status":"ssl_error","status_checked_at":"2026-01-21T21:24:31.872Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-22T01:16:47.739Z","updated_at":"2026-01-22T01:16:48.369Z","avatar_url":"https://github.com/bertt.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tesselate_building\n\nConsole tool for creating polyhedralsurface geometry from (building) footprint, elevation and height value. Shaders for the buildings are written to the 'shaders' column. Buildings can have multiple storeys.\n\nThis tool is designed to create the correct input information for creating 3D tiles with pg2b3dm (https://github.com/Geodan/pg2b3dm). This tool is used in the pg2b3dm 'getting started' sample see https://github.com/Geodan/pg2b3dm/blob/master/getting_started.md\n\n## Installation\n\n\nPrerequisite: .NET 8.0 SDK is installed https://dotnet.microsoft.com/download/dotnet/8.0\n\n```\n$ dotnet tool install -g tesselate_building\n```\n\nOr update\n\n```\n$ dotnet tool update -g tesselate_building\n```\n\n\n## Running\n\n```\n$ tesselate_building -U postgres -h localhost -d research -t bro.geotop3d\n```\n\n## command line options\n\nAll parameters are optional, except the -t --table option.\n\nIf --username and/or --dbname are not specified the current username is used as default.\n\n```\n -U, --username                Database user\n\n  -h, --host                    (Default: localhost) Database host\n\n  -d, --dbname                  Database name\n\n  -p, --port                    (Default: 5432) Database port\n\n  -t, --table                   Required. Database table, include database schema if needed\n\n  -i, --inputgeometrycolumn     (Default: geom) Input geometry column\n\n  -o, --outputgeometrycolumn    (Default: geom3d) Output geometry column\n\n  -f, --format                  (Default: mapbox) Output format mapbox/cesium\n\n  --heightcolumn                (Default: height) height column\n\n  --elevationcolumn             (Default: elevation) Elevation column\n\n  --idcolumn                    (Default: id) Id column\n\n  --stylecolumn                 (Default: style) Style column\n\n  --shaderscolumn                (Default: shaders) Shaders column \n\n  --help                        Display this help screen.\n\n  --version                     Display version information.\n  ```\n\n## Building elevation\n\nTo support terrains there is an option --elevationcolumn to specify an elevation column. \nThe values in the elevation column are added to the building z-values. \n\n\n## Building Styling\n\nFor building styling a json column is used. Please note the the json keys are case sensitive. \n\nSimple content (without storeys):\n\n```\n{\n  \"walls\": \"#00ff00\",\n  \"roof\": \" #ff0000\",\n  \"floor\": \"#D3D3D3\",\n}\n```\n\nStyle content with storeys:\n\n```\n{\n  \"roof\": \" #ff0000\",\n  \"floor\": \"#D3D3D3\",\n  \"storeys\": [\n    {\n      \"from\": 0,\n      \"to\": 0.5,\n      \"color\": \"#D3D3D3\"\n    },\n    {\n      \"from\": 0.5,\n      \"to\": 1,\n      \"color\": \"#D3SS3D3\"\n    },\n    {\n      \"from\": 1,\n      \"to\": 1.5,\n      \"color\": \"#D354S3D3\"\n    }\n  ]\n}\n```\n\nIf both element 'walls' and 'storeys' are defined the 'walls' property will be used.\n\n## Docker \n\nImage on Docker hub: https://hub.docker.com/repository/docker/bertt/tesselate_building\n\nRun app in Docker:\n\n```\n$ docker run -it bertt/tesselate_building -U postgres -d postgres -t delaware_buildings -f mapbox -i geom -o geom_triangle --idcolumn ogc_fid --stylecolumn style --shaderscolumn shaders\n```\n\nBuild sample application in Docker:\n\n```\n$ docker build -t bertt/tesselate_building .\n```\n\n## Dependencies\n\n- CommandLineParser https://github.com/commandlineparser/commandline\n- Dapper https://github.com/StackExchange/Dapper\n- Npgsql https://github.com/npgsql/npgsql\n- Wkx https://github.com/cschwarz/wkx-sharp\n\n## History\n\n2024-08-07: release 0.5.0, add support for elevation column\n\n2024-08-07: release 0.4.0, make compatible with pg2b3dm 2.13.0\n\n2023-01-04: release 0.3.0, make compatible with pg2b3dm 2.0.0\n\n2023-09-26: release 0.2.2, fix normals\n\n2023-08-18: release 0.2.1, set MetallicRoughness to 0 (gives white buildings in Cesium)\n\n2022-01-24: release 0.2 to from .NET 5 to .NET 6\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertt%2Ftesselate_building","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbertt%2Ftesselate_building","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertt%2Ftesselate_building/lists"}