├── .gitattributes ├── .gitignore ├── BuildingLocator └── BuildingLocator.exe ├── Documentation_v3.html ├── Documentation_v3.md ├── Documentation_v3_Deu.md ├── IfcGeoRefChecker ├── IfcGeoRefChecker_v3 │ ├── IFCGeoRefCheckerCommand │ │ ├── App.config │ │ ├── IFCGeoRefCheckerCommand.csproj │ │ ├── Program.cs │ │ ├── Properties │ │ │ ├── AssemblyInfo.cs │ │ │ ├── Resources.Designer.cs │ │ │ ├── Resources.resx │ │ │ ├── Settings.Designer.cs │ │ │ └── Settings.settings │ │ └── packages.config │ ├── IfcGeoRefChecker_GUI │ │ ├── App.config │ │ ├── App.xaml │ │ ├── App.xaml.cs │ │ ├── Compare.xaml │ │ ├── Compare.xaml.cs │ │ ├── Export2IFC.xaml │ │ ├── Export2IFC.xaml.cs │ │ ├── IfcGeoRefChecker_GUI.csproj │ │ ├── Info.xaml │ │ ├── Info.xaml.cs │ │ ├── MainWindow.xaml │ │ ├── MainWindow.xaml.cs │ │ ├── Properties │ │ │ ├── AssemblyInfo.cs │ │ │ ├── Resources.Designer.cs │ │ │ ├── Resources.resx │ │ │ ├── Settings.Designer.cs │ │ │ └── Settings.settings │ │ ├── Resources │ │ │ ├── Documentation_v3.html │ │ │ └── Quick_Guide.html │ │ ├── Results.xaml │ │ ├── Results.xaml.cs │ │ ├── UpdateMan.xaml │ │ ├── UpdateMan.xaml.cs │ │ ├── icon_ico.ico │ │ ├── img │ │ │ ├── DD-BIM-LOGO.png │ │ │ └── icon_img.png │ │ └── packages.config │ ├── IfcGeoRefChecker_v3.sln │ └── IfcGeoRefChecker_v3 │ │ ├── App.config │ │ ├── App.xaml │ │ ├── App.xaml.cs │ │ ├── Appl │ │ ├── BldgContourCalculator.cs │ │ ├── Calc.cs │ │ ├── Calculations.cs │ │ ├── GeoRefChecker.cs │ │ ├── GeoRefComparer.cs │ │ ├── Level10.cs │ │ ├── Level20.cs │ │ ├── Level30.cs │ │ ├── Level40.cs │ │ ├── Level50.cs │ │ └── PlacementXYZ.cs │ │ ├── BimGisCad.dll │ │ ├── Geographic.dll │ │ ├── IO │ │ ├── IfcImport.cs │ │ ├── IfcReader.cs │ │ ├── IfcWriter.cs │ │ ├── InputGroup.cs │ │ ├── JsonInput.cs │ │ ├── JsonOutput.cs │ │ └── LogOutput.cs │ │ ├── IfcGeoRefChecker_v3.csproj │ │ ├── IfcGeometryExtractor.dll │ │ ├── MIConvexHull.xml │ │ ├── NETGeographic.dll │ │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings │ │ ├── egm2008.egm │ │ ├── egm2008.egm.cof │ │ ├── icon_ico.ico │ │ ├── img │ │ └── DD-BIM-LOGO.png │ │ └── packages.config └── icon_ico.ico ├── LICENSE ├── Quick_Guide.html ├── Quick_Guide.md ├── README.md ├── README_Deu.md ├── README_old.md └── pic ├── BMWi_4C_Gef_en.jpg ├── DD-BIM-LOGO.png ├── GeoRefChecker_GUI_1.png ├── GeoRefChecker_GUI_1_v3.png ├── GeoRefChecker_GUI_2.png ├── GeoRefChecker_GUI_2_v3.png ├── GeoRefChecker_Locator.png ├── GeoRefComparer_GUI1.png ├── GeoRefUpdater_GUI1_v3.png ├── GeoRefUpdater_GUI3_v3.png ├── GeoRefUpdater_GUI4_v3.png ├── icon_georef10.png ├── icon_georef20.png ├── icon_georef30.png ├── icon_georef40.png ├── icon_georef50.png ├── icon_img.png ├── ifc_georef10.png ├── ifc_georef20.png ├── ifc_georef30.png ├── ifc_georef40.png ├── ifc_georef50.png ├── logeoref10.png ├── logeoref20.png ├── logeoref30.png ├── logeoref40.png ├── logeoref50.png └── logo_htwdd.jpg /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | bld/ 21 | [Bb]in/ 22 | [Oo]bj/ 23 | [Ll]og/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | # Uncomment if you have tasks that create the project's static files in wwwroot 28 | #wwwroot/ 29 | 30 | # MSTest test Results 31 | [Tt]est[Rr]esult*/ 32 | [Bb]uild[Ll]og.* 33 | 34 | # NUNIT 35 | *.VisualState.xml 36 | TestResult.xml 37 | 38 | # Build Results of an ATL Project 39 | [Dd]ebugPS/ 40 | [Rr]eleasePS/ 41 | dlldata.c 42 | 43 | # DNX 44 | project.lock.json 45 | project.fragment.lock.json 46 | artifacts/ 47 | 48 | *_i.c 49 | *_p.c 50 | *_i.h 51 | *.ilk 52 | *.meta 53 | *.obj 54 | *.pch 55 | *.pdb 56 | *.pgc 57 | *.pgd 58 | *.rsp 59 | *.sbr 60 | *.tlb 61 | *.tli 62 | *.tlh 63 | *.tmp 64 | *.tmp_proj 65 | *.log 66 | *.vspscc 67 | *.vssscc 68 | .builds 69 | *.pidb 70 | *.svclog 71 | *.scc 72 | 73 | # Chutzpah Test files 74 | _Chutzpah* 75 | 76 | # Visual C++ cache files 77 | ipch/ 78 | *.aps 79 | *.ncb 80 | *.opendb 81 | *.opensdf 82 | *.sdf 83 | *.cachefile 84 | *.VC.db 85 | *.VC.VC.opendb 86 | 87 | # Visual Studio profiler 88 | *.psess 89 | *.vsp 90 | *.vspx 91 | *.sap 92 | 93 | # TFS 2012 Local Workspace 94 | $tf/ 95 | 96 | # Guidance Automation Toolkit 97 | *.gpState 98 | 99 | # ReSharper is a .NET coding add-in 100 | _ReSharper*/ 101 | *.[Rr]e[Ss]harper 102 | *.DotSettings.user 103 | 104 | # JustCode is a .NET coding add-in 105 | .JustCode 106 | 107 | # TeamCity is a build add-in 108 | _TeamCity* 109 | 110 | # DotCover is a Code Coverage Tool 111 | *.dotCover 112 | 113 | # NCrunch 114 | _NCrunch_* 115 | .*crunch*.local.xml 116 | nCrunchTemp_* 117 | 118 | # MightyMoose 119 | *.mm.* 120 | AutoTest.Net/ 121 | 122 | # Web workbench (sass) 123 | .sass-cache/ 124 | 125 | # Installshield output folder 126 | [Ee]xpress/ 127 | 128 | # DocProject is a documentation generator add-in 129 | DocProject/buildhelp/ 130 | DocProject/Help/*.HxT 131 | DocProject/Help/*.HxC 132 | DocProject/Help/*.hhc 133 | DocProject/Help/*.hhk 134 | DocProject/Help/*.hhp 135 | DocProject/Help/Html2 136 | DocProject/Help/html 137 | 138 | # Click-Once directory 139 | publish/ 140 | 141 | # Publish Web Output 142 | *.[Pp]ublish.xml 143 | *.azurePubxml 144 | # TODO: Comment the next line if you want to checkin your web deploy settings 145 | # but database connection strings (with potential passwords) will be unencrypted 146 | #*.pubxml 147 | *.publishproj 148 | 149 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 150 | # checkin your Azure Web App publish settings, but sensitive information contained 151 | # in these scripts will be unencrypted 152 | PublishScripts/ 153 | 154 | # NuGet Packages 155 | *.nupkg 156 | # The packages folder can be ignored because of Package Restore 157 | **/packages/* 158 | # except build/, which is used as an MSBuild target. 159 | !**/packages/build/ 160 | # Uncomment if necessary however generally it will be regenerated when needed 161 | #!**/packages/repositories.config 162 | # NuGet v3's project.json files produces more ignoreable files 163 | *.nuget.props 164 | *.nuget.targets 165 | 166 | # Microsoft Azure Build Output 167 | csx/ 168 | *.build.csdef 169 | 170 | # Microsoft Azure Emulator 171 | ecf/ 172 | rcf/ 173 | 174 | # Windows Store app package directories and files 175 | AppPackages/ 176 | BundleArtifacts/ 177 | Package.StoreAssociation.xml 178 | _pkginfo.txt 179 | 180 | # Visual Studio cache files 181 | # files ending in .cache can be ignored 182 | *.[Cc]ache 183 | # but keep track of directories ending in .cache 184 | !*.[Cc]ache/ 185 | 186 | # Others 187 | ClientBin/ 188 | ~$* 189 | *~ 190 | *.dbmdl 191 | *.dbproj.schemaview 192 | *.jfm 193 | *.pfx 194 | *.publishsettings 195 | node_modules/ 196 | orleans.codegen.cs 197 | 198 | # Since there are multiple workflows, uncomment next line to ignore bower_components 199 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 200 | #bower_components/ 201 | 202 | # RIA/Silverlight projects 203 | Generated_Code/ 204 | 205 | # Backup & report files from converting an old project file 206 | # to a newer Visual Studio version. Backup files are not needed, 207 | # because we have git ;-) 208 | _UpgradeReport_Files/ 209 | Backup*/ 210 | UpgradeLog*.XML 211 | UpgradeLog*.htm 212 | 213 | # SQL Server files 214 | *.mdf 215 | *.ldf 216 | 217 | # Business Intelligence projects 218 | *.rdl.data 219 | *.bim.layout 220 | *.bim_*.settings 221 | 222 | # Microsoft Fakes 223 | FakesAssemblies/ 224 | 225 | # GhostDoc plugin setting file 226 | *.GhostDoc.xml 227 | 228 | # Node.js Tools for Visual Studio 229 | .ntvs_analysis.dat 230 | 231 | # Visual Studio 6 build log 232 | *.plg 233 | 234 | # Visual Studio 6 workspace options file 235 | *.opt 236 | 237 | # Visual Studio LightSwitch build output 238 | **/*.HTMLClient/GeneratedArtifacts 239 | **/*.DesktopClient/GeneratedArtifacts 240 | **/*.DesktopClient/ModelManifest.xml 241 | **/*.Server/GeneratedArtifacts 242 | **/*.Server/ModelManifest.xml 243 | _Pvt_Extensions 244 | 245 | # Paket dependency manager 246 | .paket/paket.exe 247 | paket-files/ 248 | 249 | # FAKE - F# Make 250 | .fake/ 251 | 252 | # JetBrains Rider 253 | .idea/ 254 | *.sln.iml 255 | 256 | # CodeRush 257 | .cr/ 258 | 259 | # Python Tools for Visual Studio (PTVS) 260 | __pycache__/ 261 | *.pyc -------------------------------------------------------------------------------- /BuildingLocator/BuildingLocator.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dd-bim/IfcGeoRef/a501534ada7b64c33774bb560d9e09ee08e12886/BuildingLocator/BuildingLocator.exe -------------------------------------------------------------------------------- /IfcGeoRefChecker/IfcGeoRefChecker_v3/IFCGeoRefCheckerCommand/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /IfcGeoRefChecker/IfcGeoRefChecker_v3/IFCGeoRefCheckerCommand/IFCGeoRefCheckerCommand.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {06285ACD-D639-4BFE-A8E1-CBCF1AF6D9CB} 8 | Exe 9 | IFCGeoRefCheckerCommand 10 | IFCGeoRefCheckerCommand 11 | v4.7.1 12 | 512 13 | true 14 | true 15 | 16 | 17 | AnyCPU 18 | true 19 | full 20 | false 21 | bin\Debug\ 22 | DEBUG;TRACE 23 | prompt 24 | 4 25 | 26 | 27 | AnyCPU 28 | pdbonly 29 | true 30 | bin\Release\ 31 | TRACE 32 | prompt 33 | 4 34 | 35 | 36 | 37 | 38 | 39 | true 40 | bin\x64\Debug\ 41 | DEBUG;TRACE 42 | full 43 | x64 44 | prompt 45 | MinimumRecommendedRules.ruleset 46 | true 47 | 48 | 49 | bin\x64\Release\ 50 | TRACE 51 | true 52 | pdbonly 53 | x64 54 | prompt 55 | MinimumRecommendedRules.ruleset 56 | true 57 | 58 | 59 | 60 | ..\packages\Microsoft.Extensions.Configuration.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Configuration.dll 61 | 62 | 63 | ..\packages\Microsoft.Extensions.Configuration.Abstractions.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Configuration.Abstractions.dll 64 | 65 | 66 | ..\packages\Microsoft.Extensions.Configuration.Binder.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Configuration.Binder.dll 67 | 68 | 69 | ..\packages\Microsoft.Extensions.DependencyInjection.Abstractions.2.1.1\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll 70 | 71 | 72 | ..\packages\Microsoft.Extensions.Logging.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Logging.dll 73 | 74 | 75 | ..\packages\Microsoft.Extensions.Logging.Abstractions.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Logging.Abstractions.dll 76 | 77 | 78 | ..\packages\Microsoft.Extensions.Options.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Options.dll 79 | 80 | 81 | ..\packages\Microsoft.Extensions.Primitives.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Primitives.dll 82 | 83 | 84 | ..\packages\Newtonsoft.Json.12.0.2\lib\net45\Newtonsoft.Json.dll 85 | 86 | 87 | 88 | ..\packages\System.Buffers.4.4.0\lib\netstandard2.0\System.Buffers.dll 89 | 90 | 91 | 92 | ..\packages\System.Memory.4.5.1\lib\netstandard2.0\System.Memory.dll 93 | 94 | 95 | 96 | ..\packages\System.Numerics.Vectors.4.4.0\lib\net46\System.Numerics.Vectors.dll 97 | 98 | 99 | ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.1\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | ..\packages\Xbim.Common.5.1.267\lib\net47\Xbim.Common.dll 112 | 113 | 114 | ..\packages\Xbim.Ifc.5.1.267\lib\net47\Xbim.Ifc.dll 115 | 116 | 117 | ..\packages\Xbim.Ifc2x3.5.1.267\lib\net47\Xbim.Ifc2x3.dll 118 | 119 | 120 | ..\packages\Xbim.Ifc4.5.1.267\lib\net47\Xbim.Ifc4.dll 121 | 122 | 123 | ..\packages\Xbim.IO.MemoryModel.5.1.267\lib\net47\Xbim.IO.MemoryModel.dll 124 | 125 | 126 | 127 | 128 | 129 | 130 | ResXFileCodeGenerator 131 | Resources.Designer.cs 132 | Designer 133 | 134 | 135 | True 136 | Resources.resx 137 | 138 | 139 | 140 | SettingsSingleFileGenerator 141 | Settings.Designer.cs 142 | 143 | 144 | True 145 | Settings.settings 146 | True 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | {64be62a1-29c5-4d21-9cf7-1f0f80219ec6} 155 | IfcGeoRefChecker_v3 156 | 157 | 158 | 159 | -------------------------------------------------------------------------------- /IfcGeoRefChecker/IfcGeoRefChecker_v3/IFCGeoRefCheckerCommand/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | using IfcGeoRefChecker.Appl; 7 | using Xbim.Ifc4.Interfaces; 8 | using Newtonsoft.Json; 9 | using IfcGeoRefChecker.IO; 10 | using System.IO; 11 | 12 | namespace IFCGeoRefCheckerCommand 13 | { 14 | static class Program 15 | { 16 | 17 | /// 18 | /// Der Haupteinstiegspunkt für die Anwendung. 19 | /// 20 | [STAThread] 21 | static void Main(string[] args) 22 | { 23 | Dictionary CheckObjList = new Dictionary(); 24 | Dictionary> GroundWallObjects; 25 | Dictionary NamePathDict; 26 | 27 | //string testpath = @"C:\Users\possner\Desktop\BeispieldatenGeoRefChecker\Input\InputTest.json"; 28 | //string jPath = testpath; 29 | try 30 | { 31 | string jPath = args[0]; 32 | string jText = System.IO.File.ReadAllText(jPath); 33 | 34 | InputGroup inputGroup = JsonConvert.DeserializeObject(jText); 35 | 36 | var importObj = new IfcImport(inputGroup); 37 | 38 | NamePathDict = importObj.NamePathDict; 39 | CheckObjList = importObj.CheckObjs; 40 | GroundWallObjects = importObj.GroundWallObjects; 41 | 42 | foreach (var checkObj in CheckObjList) 43 | { 44 | string[] lDirectory = { inputGroup.outputDirectory, "IfcGeoRefChecker\\CheckExport" }; 45 | Directory.CreateDirectory(System.IO.Path.Combine(lDirectory)); 46 | 47 | string[] paths = { inputGroup.outputDirectory, "IfcGeoRefChecker\\CheckExport", checkObj.Key }; 48 | var path = System.IO.Path.Combine(paths); 49 | 50 | if (inputGroup.outLog) 51 | { 52 | try 53 | { 54 | //Log.Information("Export checking-log..."); 55 | 56 | var log = new LogOutput(checkObj.Value, path, checkObj.Key); 57 | 58 | //Log.Information("Export successful to: " + path); 59 | } 60 | catch (Exception exIO) 61 | { 62 | //Log.Error("Not able to export log. Error: " + exIO); 63 | } 64 | } 65 | 66 | if (inputGroup.outJson) 67 | { 68 | try 69 | { 70 | //Log.Information("Export JSON-file..."); 71 | 72 | var js = new JsonOutput(); 73 | js.JsonOutputFile(checkObj.Value, path); 74 | 75 | //Log.Information("Export successful to: " + path); 76 | } 77 | catch (Exception exIO) 78 | { 79 | //Log.Error("Not able to export json. Error: " + exIO); 80 | } 81 | } 82 | } 83 | } 84 | catch(Exception ex) 85 | { 86 | Console.WriteLine("Unable to check Georeferencing. Please enter a path to an existing *.json configuration file as the first commandline argument. See the documentation for more Information. Error: " + ex); 87 | } 88 | 89 | 90 | } 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /IfcGeoRefChecker/IfcGeoRefChecker_v3/IFCGeoRefCheckerCommand/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // Allgemeine Informationen über eine Assembly werden über die folgenden 6 | // Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, 7 | // die einer Assembly zugeordnet sind. 8 | [assembly: AssemblyTitle("IFCGeoRefCheckerCommand")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("IFCGeoRefCheckerCommand")] 13 | [assembly: AssemblyCopyright("Copyright © 2019")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly 18 | // für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von 19 | // COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. 20 | [assembly: ComVisible(false)] 21 | 22 | // Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird 23 | [assembly: Guid("06285acd-d639-4bfe-a8e1-cbcf1af6d9cb")] 24 | 25 | // Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: 26 | // 27 | // Hauptversion 28 | // Nebenversion 29 | // Buildnummer 30 | // Revision 31 | // 32 | // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, 33 | // übernehmen, indem Sie "*" eingeben: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /IfcGeoRefChecker/IfcGeoRefChecker_v3/IFCGeoRefCheckerCommand/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // Dieser Code wurde von einem Tool generiert. 4 | // Laufzeitversion: 4.0.30319.42000 5 | // 6 | // Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn 7 | // der Code neu generiert wird. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace IFCGeoRefCheckerCommand.Properties 12 | { 13 | 14 | 15 | /// 16 | /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. 17 | /// 18 | // Diese Klasse wurde von der StronglyTypedResourceBuilder-Klasse 19 | // über ein Tool wie ResGen oder Visual Studio automatisch generiert. 20 | // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen 21 | // mit der Option /str erneut aus, oder erstellen Sie Ihr VS-Projekt neu. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources 26 | { 27 | 28 | private static global::System.Resources.ResourceManager resourceMan; 29 | 30 | private static global::System.Globalization.CultureInfo resourceCulture; 31 | 32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 33 | internal Resources() 34 | { 35 | } 36 | 37 | /// 38 | /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. 39 | /// 40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 41 | internal static global::System.Resources.ResourceManager ResourceManager 42 | { 43 | get 44 | { 45 | if ((resourceMan == null)) 46 | { 47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("IFCGeoRefCheckerCommand.Properties.Resources", typeof(Resources).Assembly); 48 | resourceMan = temp; 49 | } 50 | return resourceMan; 51 | } 52 | } 53 | 54 | /// 55 | /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle 56 | /// Ressourcenlookups, die diese stark typisierte Ressourcenklasse verwenden. 57 | /// 58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 59 | internal static global::System.Globalization.CultureInfo Culture 60 | { 61 | get 62 | { 63 | return resourceCulture; 64 | } 65 | set 66 | { 67 | resourceCulture = value; 68 | } 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /IfcGeoRefChecker/IfcGeoRefChecker_v3/IFCGeoRefCheckerCommand/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /IfcGeoRefChecker/IfcGeoRefChecker_v3/IFCGeoRefCheckerCommand/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace IFCGeoRefCheckerCommand.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /IfcGeoRefChecker/IfcGeoRefChecker_v3/IFCGeoRefCheckerCommand/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /IfcGeoRefChecker/IfcGeoRefChecker_v3/IFCGeoRefCheckerCommand/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /IfcGeoRefChecker/IfcGeoRefChecker_v3/IfcGeoRefChecker_GUI/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /IfcGeoRefChecker/IfcGeoRefChecker_v3/IfcGeoRefChecker_GUI/App.xaml: -------------------------------------------------------------------------------- 1 |  6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /IfcGeoRefChecker/IfcGeoRefChecker_v3/IfcGeoRefChecker_GUI/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace IfcGeoRefChecker_GUI 10 | { 11 | /// 12 | /// Interaktionslogik für "App.xaml" 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /IfcGeoRefChecker/IfcGeoRefChecker_v3/IfcGeoRefChecker_GUI/Compare.xaml: -------------------------------------------------------------------------------- 1 |  9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 23 | 24 | 25 | 26 | 43 | 44 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /IfcGeoRefChecker/IfcGeoRefChecker_v3/IfcGeoRefChecker_GUI/Export2IFC.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | using System.Windows.Controls; 9 | using System.Windows.Data; 10 | using System.Windows.Documents; 11 | using System.Windows.Input; 12 | using System.Windows.Media; 13 | using System.Windows.Media.Imaging; 14 | using System.Windows.Shapes; 15 | using IfcGeoRefChecker.Appl; 16 | using IfcGeoRefChecker.IO; 17 | using Newtonsoft.Json; 18 | 19 | namespace IfcGeoRefChecker_GUI 20 | { 21 | /// 22 | /// Interaktionslogik für Export2IFC.xaml 23 | /// 24 | public partial class Export2IFC : Window 25 | { 26 | private string filePath; 27 | private string fileName; 28 | 29 | private GeoRefChecker jsonMap; 30 | 31 | public Export2IFC(string filePath, string fileName) 32 | { 33 | //this.direc = direc; 34 | this.filePath = filePath; 35 | this.fileName = fileName; 36 | 37 | var fd = new Microsoft.Win32.OpenFileDialog(); 38 | 39 | fd.Filter = "json files (*.json)|*.json"; 40 | fd.Multiselect = true; 41 | 42 | fd.ShowDialog(); 43 | 44 | var jsonPath = fd.FileName; 45 | var jsonName = fd.SafeFileName; 46 | 47 | var jsonObj = File.ReadAllText(jsonPath); 48 | 49 | //var jsonObj = File.ReadAllText(direc + "\\IfcGeoRefChecker\\buildingLocator\\json\\update.json"); 50 | 51 | this.jsonMap = new GeoRefChecker(jsonObj); 52 | 53 | InitializeComponent(); 54 | 55 | lb_jsonmap.Text = fileName; 56 | lb_jsonmap_json.Text = jsonName; 57 | } 58 | 59 | private void final_export_Click(object sender, RoutedEventArgs e) 60 | { 61 | getJsonContent(); 62 | 63 | var jsonUpd = JsonConvert.SerializeObject(jsonMap, Formatting.Indented); 64 | 65 | var write = new IfcWriter(filePath, fileName, jsonUpd); 66 | } 67 | 68 | private void getJsonContent() //Auslesen der update-JSON in Anbhängigkeit der gewählten Export-Funktion 69 | { 70 | var lev50map = (from l50 in jsonMap.LoGeoRef50 //Lesen des ersten GeoRef50-Eintrages (dieser enthält die neue Georef aus dem BuildingLocator) 71 | select l50).First(); 72 | 73 | //var lev50oth = from l50 in jsonMap.LoGeoRef50 //opt.: falls weitere Georef50-Objekte vorhanden sind, werden diese hier gelesen --> DEPRECATED 74 | // where l50 != lev50map 75 | // select l50; 76 | 77 | //foreach(var l50 in lev50oth) 78 | //{ 79 | // if(radio_50.IsChecked == true) 80 | // { 81 | // l50.CRS_Name = lev50map.CRS_Name; 82 | // } 83 | //} //DEPRECATED, da projekt nur noch eine Georef50-Instanz enthalten darf 84 | 85 | //if(radio_50.IsChecked == true) 86 | //{ 87 | // foreach(var l50 in lev50oth) 88 | // { 89 | // l50.Translation_Eastings = lev50map.Translation_Eastings; 90 | // l50.Translation_Northings = lev50map.Translation_Northings; 91 | 92 | // l50.RotationXY = lev50map.RotationXY; 93 | // } 94 | //} 95 | //else //DEPRECATED, da projekt nur noch eine Georef50-Instanz enthalten darf --> radio_50 ist standard-export 96 | 97 | if (radio_40.IsChecked == true) //Option GeoRef projektbezogen speichern 98 | { 99 | foreach (var l40 in jsonMap.LoGeoRef40) 100 | { 101 | l40.ProjectLocation[0] = ConvertUnit((double)lev50map.Translation_Eastings, jsonMap.LengthUnit); //Umwandlung zu Projektlängeneinheit, wenn nötig 102 | l40.ProjectLocation[1] = ConvertUnit((double)lev50map.Translation_Northings, jsonMap.LengthUnit); 103 | 104 | //l40.TrueNorthXY[0] = lev50map.RotationXY[1]; //Rotation on projected CRS is not equal to True North 105 | //l40.TrueNorthXY[1] = lev50map.RotationXY[0]; 106 | } 107 | 108 | lev50map.GeoRef50 = false; 109 | lev50map.Translation_Eastings = 0; 110 | lev50map.Translation_Northings = 0; 111 | lev50map.RotationXY[0] = 0; 112 | lev50map.RotationXY[1] = 0; 113 | } 114 | 115 | //else if (radio_30.IsChecked == true) //Option GeoRef baustellenbezogen speichern // Exportoption für LoGeoRef30 entfernt 116 | //{ 117 | // foreach (var l30 in jsonMap.LoGeoRef30) 118 | // { 119 | // l30.ObjectLocationXYZ[0] += ConvertUnit((double)lev50map.Translation_Eastings, jsonMap.LengthUnit); //Addition zur eventuellen vorhandenen Projektkoordinate, 120 | // l30.ObjectLocationXYZ[1] += ConvertUnit((double)lev50map.Translation_Northings, jsonMap.LengthUnit); //damit keine projektinterne Verschiebung stattfindet 121 | 122 | // l30.ObjectRotationX[0] = lev50map.RotationXY[0]; 123 | // l30.ObjectRotationX[1] = lev50map.RotationXY[1]; 124 | // } 125 | 126 | // lev50map.GeoRef50 = false; 127 | // lev50map.Translation_Eastings = 0; 128 | // lev50map.Translation_Northings = 0; 129 | // lev50map.RotationXY[0] = 0; 130 | // lev50map.RotationXY[1] = 0; 131 | //} 132 | //else if (radio_mix.IsChecked == true) //Option GeoRef-Location baustellenbezogen und Rotation projektbezogen speichern (Revit-konform) 133 | //{ 134 | // foreach (var l30 in jsonMap.LoGeoRef30) 135 | // { 136 | // l30.ObjectLocationXYZ[0] += ConvertUnit((double)lev50map.Translation_Eastings, jsonMap.LengthUnit); 137 | // l30.ObjectLocationXYZ[1] += ConvertUnit((double)lev50map.Translation_Northings, jsonMap.LengthUnit); 138 | // } 139 | 140 | // foreach (var l40 in jsonMap.LoGeoRef40) 141 | // { 142 | // l40.TrueNorthXY[0] = lev50map.RotationXY[1]; 143 | // l40.TrueNorthXY[1] = lev50map.RotationXY[0]; 144 | // } 145 | 146 | // lev50map.GeoRef50 = false; 147 | // lev50map.Translation_Eastings = 0; 148 | // lev50map.Translation_Northings = 0; 149 | // lev50map.RotationXY[0] = 0; 150 | // lev50map.RotationXY[1] = 0; 151 | //} 152 | 153 | if (check_height.IsChecked == true) 154 | { 155 | var lev20Site = (from l20Site in jsonMap.LoGeoRef20 156 | where l20Site.Reference_Object[1].Equals("IfcSite") 157 | select l20Site).Single(); 158 | 159 | var elev = tb_height.Text.Replace(",", "."); 160 | elev = elev.Replace(" ", ""); 161 | 162 | if (double.TryParse(elev, out var res)) 163 | { 164 | lev20Site.Elevation = ConvertUnit(res, jsonMap.LengthUnit); 165 | 166 | if (radio_50.IsChecked == true) 167 | { 168 | foreach (var l50 in jsonMap.LoGeoRef50) 169 | { 170 | l50.Translation_Orth_Height = res; 171 | l50.CRS_Vertical_Datum = tb_height_datum.Text; 172 | } 173 | } 174 | } 175 | else 176 | { 177 | MessageBox.Show("Error occured. Please provide a number for the absolute height!"); 178 | } 179 | } 180 | } 181 | 182 | private double ConvertUnit(double coordinate, string unit) 183 | { 184 | switch (unit) 185 | { 186 | case "m": 187 | break; 188 | 189 | case "mm": 190 | coordinate *= 1000; 191 | break; 192 | 193 | case "ft": 194 | coordinate /= 0.3048; 195 | break; 196 | 197 | case "in": 198 | coordinate *= 39.3701; 199 | break; 200 | 201 | default: 202 | break; 203 | } 204 | 205 | return coordinate; 206 | } 207 | 208 | private void check_10_Checked(object sender, RoutedEventArgs e) 209 | { 210 | var lev10Site = (from l10Site in jsonMap.LoGeoRef10 211 | where l10Site.Reference_Object[1].Equals("IfcSite") 212 | select l10Site).Single(); 213 | var lev10Bldg = (from l10Bldg in jsonMap.LoGeoRef10 214 | where l10Bldg.Reference_Object[1].Equals("IfcBuilding") 215 | select l10Bldg).Single(); 216 | 217 | lev10Site.AddressLines.Clear(); 218 | 219 | foreach (var addLine in lev10Bldg.AddressLines) 220 | { 221 | lev10Site.AddressLines.Add(addLine); 222 | } 223 | 224 | lev10Site.Postalcode = lev10Bldg.Postalcode; 225 | lev10Site.Town = lev10Bldg.Town; 226 | lev10Site.Region = lev10Bldg.Region; 227 | lev10Site.Country = lev10Bldg.Country; 228 | } 229 | 230 | private void check_10_Unchecked(object sender, RoutedEventArgs e) 231 | { 232 | var lev10Site = (from l10Site in jsonMap.LoGeoRef10 233 | where l10Site.Reference_Object[1].Equals("IfcSite") 234 | select l10Site).Single(); 235 | 236 | lev10Site.AddressLines.Clear(); 237 | //lev10Site.AddressLines[0] = null; 238 | //lev10Site.AddressLines[1] = null; 239 | //lev10Site.AddressLines[2] = null; 240 | lev10Site.Postalcode = null; 241 | lev10Site.Town = null; 242 | lev10Site.Region = null; 243 | lev10Site.Country = null; 244 | } 245 | 246 | private void edit_manually_Click(object sender, RoutedEventArgs e) 247 | { 248 | getJsonContent(); 249 | 250 | var jsonUpd = JsonConvert.SerializeObject(jsonMap, Formatting.Indented); 251 | 252 | var ifcResults = new Results(this.filePath, this.fileName, jsonUpd); 253 | ifcResults.Show(); 254 | } 255 | 256 | private void check_height_Checked(object sender, RoutedEventArgs e) 257 | { 258 | tb_height.IsEnabled = true; 259 | tb_height_datum.IsEnabled = true; 260 | } 261 | } 262 | } 263 | -------------------------------------------------------------------------------- /IfcGeoRefChecker/IfcGeoRefChecker_v3/IfcGeoRefChecker_GUI/Info.xaml: -------------------------------------------------------------------------------- 1 |  9 | 10 | 11 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /IfcGeoRefChecker/IfcGeoRefChecker_v3/IfcGeoRefChecker_GUI/Info.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Shapes; 14 | 15 | namespace IfcGeoRefChecker_GUI 16 | { 17 | /// 18 | /// Interaktionslogik für Info.xaml 19 | /// 20 | public partial class Info : Window 21 | { 22 | public Info() 23 | { 24 | InitializeComponent(); 25 | block_info.Text = 26 | "IfcGeoRefChecker Version 0.3.2.0 (18.07.2019)" + 27 | "\r\n" + 28 | "\r\nThe IFCGeoRefChecker is a tool for checking, comparing and updating IFC files regarding their georeferencing attributes." + 29 | "\r\n" + 30 | "\r\nThe tool was developed at HTW Dresden, University of Applied Sciences, Faculty of Spatial Information." + 31 | "\r\n(contact: christian.clemen@htw - dresden.de)" + 32 | "\r\n" + 33 | "\r\nThe application was developed based on the xBIM Toolkit. It also uses Newtonsoft.Json for Json-Output, Serilog for Logging, " + 34 | "\r\nand also from HTW Dresden: BimGisCadLib, BuildngLocator and IfcBuildingContourCalculator. "; 35 | 36 | block_terms.Text = 37 | "IFCGeoRefChecker is licensed under the MIT License. \r\n \r\nFor details check the attached documentation." + 38 | " It should be used for research purposes only." + 39 | " The functionality, which is used, is based on the xBIM Toolkit, available under GitHub or docs.xbim.net." + 40 | " For license issues regarding xBIM please consider Common Development and Distribution (CDDL)" + 41 | " under which the xBIM Toolkit is licensed together with Third Party Licences mentioned on their website." + 42 | " For the functionality and the results of this tool please respect the following terms of use: " + 43 | "\r\n \r\n1.EXCLUSION OF GUARANTEE" + 44 | "\r\nDresden, University of Applied Sciences does not guarantee the software, the data, the results or the documentation." + 45 | " It does not guarantee the correctness and usability of the contents or that they are not covered by any third party's rights," + 46 | " nor that access will be possible in a reliable way, free of viruses or errors." + 47 | "\r\n \r\n2.EXCLUSION OF LIABILITY" + 48 | "\r\nHTW Dresden, University of Applied Sciences is not liable for any damages," + 49 | " except those caused by a willful or grossly negligent violation of duties by either HTW Dresden, University of Applied Sciences," + 50 | " its legal representatives, or its assistants in fulfillment. This holds also for damages caused by any violation of duties in" + 51 | " contract negotiation or by carrying out unauthorised actions." + 52 | " In the case of damages caused by a reckless violation of contractual or pre - contractual duties by HTW Dresden," + 53 | " University of Applied Sciences, its legal representatives, or its assistants in fulfillment," + 54 | " liability for indirect damages and follow - up damages is excluded." + 55 | " The cogent liability according to the Product Liability Act is not touched by the regulations stated above."; 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /IfcGeoRefChecker/IfcGeoRefChecker_v3/IfcGeoRefChecker_GUI/MainWindow.xaml: -------------------------------------------------------------------------------- 1 |  9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |