4 min

LINQ and ArcObjects

Motivation LINQ (language integrated query) is a component of the Microsoft. NET Framework since version 3.5. It allows a SQL-like query to various data sour...

ArcObjectsC#
2 min

"Failure has occurred while loading a type."

Motivation During programming suddenly this error (“Failure has occurred while loading a type”) was thrown by accessing a artifact of a referenced library. I...

ArcObjectsC#Interop
1 min

Casing of COM-Interop registered components

During a refactoring i realized that renaming of components, which will be registered for COM-Interop, must be done carefully. In my case i changed the casin...

ArcGISArcObjectsInterop
2 min

F# and ArcObjects, Part 3

Today i played a little bit with IFeature-sequences and piping data. The result was a calculator of the bounding box around all features in a feature class....

ArcObjectsF#
1 min

F# and ArcObjects, Part 2

After accessing one feature now i iterate through all features of a feature class: open System;; #I "C:\Program Files\ArcGIS\DotNet" ;; #r "ESRI.ArcGIS.Syste...

ArcObjectsF#
1 min

F# and ArcObjects, Part 1

After having a first look on F# its time to ask: How could i use F# with ArcObjects. So my first steps was to do something with a feature in a F# interactive...

ArcObjectsF#
1 min

Nachtrag: Casting Anti-Pattern

Wie so oft im Leben sind manche Dinge auf den zweiten Blick komplexer als sie auf dem Ersten den Anschein haben. Es kam die Anfrage, ob es nicht doch einen U...

ArcObjectsC#
1 min

Casting Anti-Pattern

in unten stehendem Code ist ein Anti-Pattern, welches immer wieder im ArcObjects-Kontext zu beobachten ist. if (element is IMapSurroundFrame) { IMapSurround...

ArcObjectsC#
1 min

Catching COM-Exceptions from ArcObjects

to catch the COM-Exception in own applications thrown from the underlaying ArcObjects-Library could be done with: catch (COMException ComEx) { Console.WriteL...

ArcObjectsInterop