{"id":37048370,"url":"https://github.com/bertt/cityjson","last_synced_at":"2026-01-14T05:38:32.239Z","repository":{"id":38127807,"uuid":"282832651","full_name":"bertt/cityjson","owner":"bertt","description":".NET Library for reading/writing CityJSON","archived":false,"fork":false,"pushed_at":"2025-11-24T14:56:25.000Z","size":15474,"stargazers_count":17,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-27T12:40:24.984Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-07-27T08:02:59.000Z","updated_at":"2025-11-24T14:56:31.000Z","dependencies_parsed_at":"2025-05-26T03:03:31.342Z","dependency_job_id":null,"html_url":"https://github.com/bertt/cityjson","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/bertt/cityjson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertt%2Fcityjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertt%2Fcityjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertt%2Fcityjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertt%2Fcityjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bertt","download_url":"https://codeload.github.com/bertt/cityjson/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertt%2Fcityjson/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28410960,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"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-14T05:38:29.463Z","updated_at":"2026-01-14T05:38:32.233Z","avatar_url":"https://github.com/bertt.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CityJSON\n\n.NET Standard 2.0 Library for reading and writing CityJSON files (https://www.cityjson.org/)\n\nNuGet package: https://www.nuget.org/packages/bertt.CityJSON/\n\n## Dependencies\n\n- NetTopologySuite\n\n## Sample code\n\nReading CityJSON file:\n\n```\nvar json = File.ReadAllText(\"fixtures/minimal.city.json\");\nvar cityjsonDocument = JsonConvert.DeserializeObject\u003cCityJsonDocument\u003e(json);\n```\n\nWriting CityJSON file:\n\n```\nvar json = CityJsonWriter.Write(cityjsonDocument);\nFile.WriteAllText(\"output.city.json\", json);\n```\n\nOr use the convenience method:\n\n```\nCityJsonWriter.WriteToFile(cityjsonDocument, \"output.city.json\");\n```\n\nSample reading CityJSON 2.0 Seq file and converting to NetTopologySuite:\n\n```\nvar cityJsondocuments = CityJsonSeqReader.ReadCityJsonSeq(\"./fixtures/cityjsonseq/paris_tower.city.jsonl\");\n```\n\nWriting CityJSON 2.0 Seq file:\n\n```\nCityJsonSeqWriter.WriteCityJsonSeq(cityJsondocuments, \"output.city.jsonl\");\n```\n\nConvert CityJSONDocument to NetTopologySuite:\n\n```\nvar features = cityjsonDocument.ToFeatures(vertices, transform);\n```\n\nConverting CityJSON object to NetTopologySuite:\n\n```\nvar feature = cityObject.ToFeature(vertices, transform);\n```\n\n## Tools\n\n- cj2glb: from CityJSON to GLB\n\nCreated glTF file contains 3D Tiles extensions EXT_Mesh_features + EXT_Structural_Metadata for storing attribute information. Also a tileset.json\nfile is created with a reference to the glTF. When there is no projection info in the input file, some default projection is used.\n\nSample usage cj2glb:\n\n- Download CityGML from https://www.citygmlwiki.org/index.php?title=FZK_Haus,_CityGML_3.0,_LoD2,_No_Storeys,_Boundary_Surfaces\nand unzip\n\n- Convert to CityJSON using citygml4j/citygml-tools:\n\n```\n$ docker run -v /data/fzkhaus:/data citygml4j/citygml-tools:2.4.0 to-cityjson /data/01-FZK-Haus-LoD2-Tex-no-Storey-CG30-V01.gml \n```\n\nResult: 01-FZK-Haus-LoD2-Tex-no-Storey-CG30-V01.json\n\n- Convert to GLB using cj2glb:\n\n```\ncj2glb 01-FZK-Haus-LoD2-Tex-no-Storey-CG30-V01.json fzk_haus.glb\n```\n\nResult: fzk_haus.glb\n\n![fzkhaus.png](fzkhaus.png)\n\n## Supports\n\n- Geometry type support: Solid, CompositeSurface, MultiSurface, MultiSolid, CompositeSolid;\n\n- Interior rings;\n\n- Appearance support: Textures, Vertices-Texture; \n\n- CityObject - Address \n\n- Metadata support (EXT_Mesh_Features + EXT+Structural_Metadata)\n\n- Creates tileset.json for use in 3D Tiles\n\n- Reading and writing CityJSON files\n\n## Limitations\n\n- No support for extensions, materials;\n\n## History\n\n2026-01-05: release 2.5 - from .NET 6.0 to .NET Standard 2.0\n\n2025-11-12: release 2.4 - Adding writing support\n\n2025-06-19: release 2.3 - Adding attributes support\n\n2025-05-06: release 2.2 - Adding textures support\n\n2025-01-15: release 2.1 - Reading CityJSON 2.0 Seq files\n\n2024-12-06: release 2.0 - Refactoring - Reading geometries\n\n2024-12-04: release 1.1 - to .NET 8.0\n\n2022-11-22: from CityJSON 1.0.1 to CityJSON 1.1.2\n\n2022-11-22: to .NET 6\n\n2020-07-27: original coding\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertt%2Fcityjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbertt%2Fcityjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertt%2Fcityjson/lists"}