<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>GIS on Marko Apfel</title><link>http://blog.marko-apfel.de/tags/gis/</link><description>Recent content in GIS on Marko Apfel</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Tue, 14 Jul 2015 17:15:00 +0200</lastBuildDate><atom:link href="http://blog.marko-apfel.de/tags/gis/index.xml" rel="self" type="application/rss+xml"/><item><title>F#, ArcGIS Runtime and error “Cannot create unknown type '{http://schemas.esri.com/arcgis/runtime/2013}MapView'”</title><link>http://blog.marko-apfel.de/posts/f-sharp-arcgis-runtime-and-error-cannot-create-unknown-type-http-schemas-esri-com-arcgis-runtime-2013-mapview/</link><pubDate>Tue, 14 Jul 2015 17:15:00 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/f-sharp-arcgis-runtime-and-error-cannot-create-unknown-type-http-schemas-esri-com-arcgis-runtime-2013-mapview/</guid><description>&lt;p&gt;By playing with F# and ArcGIS Runtime I tried to re-create a sample C# project with F#.&lt;/p&gt;
&lt;p&gt;For the WPF part I used the Visual Studio extension &lt;a href="https://visualstudiogallery.msdn.microsoft.com/e0907c99-bb04-4eb8-9692-9333d5ff4399"&gt;F# Empty Windows App (WPF)&lt;/a&gt; and &lt;a href="https://visualstudiogallery.msdn.microsoft.com/ad49fd5c-930c-4fe6-a30e-2d0d6778c565"&gt;F# Windows App (WPF, MVVM)&lt;/a&gt; the NuGet packages &lt;a href="https://www.nuget.org/packages/FSharp.ViewModule.Core/"&gt;FSharp.ViewModule.Core&lt;/a&gt; and &lt;a href="https://www.nuget.org/packages/FsXaml.Wpf/"&gt;FsXaml for WPF&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Visual Studio – Getting compilation error “The type 'XAML' is not defined.”</title><link>http://blog.marko-apfel.de/posts/visual-studio-getting-compilation-error-the-type-xaml-is-not-defined/</link><pubDate>Thu, 09 Jul 2015 06:34:00 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/visual-studio-getting-compilation-error-the-type-xaml-is-not-defined/</guid><description>&lt;p&gt;During compilation of the &lt;a href="https://visualstudiogallery.msdn.microsoft.com/e0907c99-bb04-4eb8-9692-9333d5ff4399"&gt;F# Empty Windows App (WPF)&lt;/a&gt; I got that error (check the output pane carefully).&lt;/p&gt;
&lt;p&gt;&lt;a href="image_6.png"&gt;&lt;figure&gt;
 &lt;img src="http://blog.marko-apfel.de/posts/visual-studio-getting-compilation-error-the-type-xaml-is-not-defined/image-thumb-2.png" alt="image" loading="lazy" decoding="async" title="image"&gt;&lt;figcaption&gt;image&lt;/figcaption&gt;&lt;/figure&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To solve this issue you have to thrust of the XAML Type Provider of this project. This you can do via the Visual Studio options:&lt;/p&gt;</description></item><item><title>Showing own KML files in Google Maps via assistance of Dropbox</title><link>http://blog.marko-apfel.de/posts/showing-own-kml-files-in-google-maps-via-assistance-of-dropbox/</link><pubDate>Tue, 04 Jun 2013 06:16:00 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/showing-own-kml-files-in-google-maps-via-assistance-of-dropbox/</guid><description>&lt;h2 id="workflow"&gt;Workflow&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Create KML file&lt;/li&gt;
&lt;li&gt;Save it to your public Dropbox folder&lt;/li&gt;
&lt;li&gt;Copy the public link&lt;br&gt;
&lt;a href="image_4.png"&gt;&lt;figure&gt;
 &lt;img src="http://blog.marko-apfel.de/posts/showing-own-kml-files-in-google-maps-via-assistance-of-dropbox/image-thumb-1.png" alt="image" loading="lazy" decoding="async" title="image"&gt;&lt;figcaption&gt;image&lt;/figcaption&gt;&lt;/figure&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Paste this link in the search field of Google Maps&lt;br&gt;
&lt;a href="image_10.png"&gt;&lt;figure&gt;
 &lt;img src="http://blog.marko-apfel.de/posts/showing-own-kml-files-in-google-maps-via-assistance-of-dropbox/image-thumb-4.png" alt="image" loading="lazy" decoding="async" title="image"&gt;&lt;figcaption&gt;image&lt;/figcaption&gt;&lt;/figure&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="result"&gt;Result&lt;/h2&gt;
&lt;p&gt;Enjoy your KML data in Google Maps&lt;/p&gt;</description></item><item><title>LINQ and ArcObjects</title><link>http://blog.marko-apfel.de/posts/linq-and-arcobjects/</link><pubDate>Wed, 12 Sep 2012 15:20:00 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/linq-and-arcobjects/</guid><description>&lt;h2 id="motivation"&gt;Motivation&lt;/h2&gt;
&lt;p&gt;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 sources such as SQL, XML etc.&lt;/p&gt;
&lt;p&gt;Like SQL also LINQ to SQL provides a declarative notation of problem solving – i.e. you don’t need describe in detail how a task could be solved, you describe what to be solved at all. This frees the developer from error-prone iterator constructs.&lt;/p&gt;</description></item><item><title>Interop effects by resolving and instantiating types with ArcObjects</title><link>http://blog.marko-apfel.de/posts/interop-effects-by-resolving-and-instantiating-types-with-arcobjects/</link><pubDate>Fri, 25 Nov 2011 14:10:00 +0100</pubDate><guid>http://blog.marko-apfel.de/posts/interop-effects-by-resolving-and-instantiating-types-with-arcobjects/</guid><description>&lt;h2 id="problem"&gt;Problem&lt;/h2&gt;
&lt;p&gt;this code does not work&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-cs" data-lang="cs"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;Type&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;typeof&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ESRI&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ArcGIS&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Framework&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;AppRefClass&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Object&lt;/span&gt; &lt;span class="n"&gt;obj&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Activator&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;CreateInstance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;but yet this code&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-cs" data-lang="cs"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;Type&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Type&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;GetTypeFromCLSID&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;typeof&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ESRI&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ArcGIS&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Framework&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;AppRefClass&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="n"&gt;GUID&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;System&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Object&lt;/span&gt; &lt;span class="n"&gt;obj&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Activator&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;CreateInstance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="reason"&gt;Reason&lt;/h2&gt;
&lt;p&gt;In the first variant the runtime tries to cast to &lt;code&gt;AppRefClass&lt;/code&gt;. This is not possible.&lt;/p&gt;
&lt;p&gt;And in the second one, the runtime does not knows anything about &lt;code&gt;AppRefClass&lt;/code&gt;. So it leave it as &lt;code&gt;IUnknown&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Ressourcen für Esri 2011 Präsentationen und Code-Beispiele</title><link>http://blog.marko-apfel.de/posts/ressourcen-fur-esri-2011-prasentationen-und-code-beispiele/</link><pubDate>Tue, 31 May 2011 15:56:00 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/ressourcen-fur-esri-2011-prasentationen-und-code-beispiele/</guid><description>&lt;p&gt;Aufgrund mehrfacher Nachfrage, hier nochmal zusammengefasst die Links zu Präsentationen und Code-Beispielen von Vorträgen und Workshop mit meinem Mitwirken:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://prezi.com/ntphelyvygsf"&gt;ESRI 2011 - Workshop &amp;ldquo;Professionelle Softwareentwicklung mit ArcObjects&amp;rdquo;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://prezi.com/cje6dz9uxxnd"&gt;ESRI 2011 - Customizing ArcGIS Desktop&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://prezi.com/bsmod7x8hivk"&gt;ESRI 2011 - ArcObjects 10&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Die Sourcen finden sich unter:&lt;/p&gt;</description></item><item><title>Umfrage-Auswertung zum Workshop “Professionelle Softwareentwicklung mit ArcObjects” auf der ESRI 2011</title><link>http://blog.marko-apfel.de/posts/umfrage-auswertung-zum-workshop-professionelle-softwareentwicklung-mit-arcobjects-auf-der-esri-2011/</link><pubDate>Fri, 27 May 2011 04:04:00 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/umfrage-auswertung-zum-workshop-professionelle-softwareentwicklung-mit-arcobjects-auf-der-esri-2011/</guid><description>&lt;p&gt;Als erstes möchten Jochen und ich uns bei euch Teilnehmern bedanken für das große positive Feedback zu diesem Workshop. Das waren sicher für uns alle 3 sehr spannende Stunden – für euch im technischen Inhalt und für uns in der Frage euren Geschmack zu treffen. Ein derartiger Workshop war eine Premiere für Esri im Rahmen der GIS Konferenz - und eure Einwertung kann man durchaus als einen Arbeitsauftrag an uns auffassen diesbzgl am Ball zu bleiben.&lt;/p&gt;</description></item><item><title>Suppressing Add-in-registration task during build process</title><link>http://blog.marko-apfel.de/posts/suppressing-add-in-registration-task-during-build-process/</link><pubDate>Mon, 16 May 2011 07:17:00 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/suppressing-add-in-registration-task-during-build-process/</guid><description>&lt;p&gt;If you develop ArcGIS Add-ins with Visual Studio under limited permissions you get during the build process an error, that the stuff could not be registered.&lt;/p&gt;
&lt;p&gt;Normally its enough to run one times this build as an admin. Then all needed information are set and also taken for users with limited access.&lt;/p&gt;</description></item><item><title>Calling esriRegasm manually (outside an ArcGIS-installation)</title><link>http://blog.marko-apfel.de/posts/calling-esriregasm-manually-outside-an-arcgis-installation/</link><pubDate>Tue, 26 Apr 2011 20:53:00 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/calling-esriregasm-manually-outside-an-arcgis-installation/</guid><description>&lt;p&gt;Since &lt;em&gt;ArcGIS 10&lt;/em&gt; during the &lt;em&gt;Visual Studio&lt;/em&gt; build an additional target with the execution of a program named &lt;code&gt;esriRegasm&lt;/code&gt; is called. Amongst other things this program adds the COM-categories in the registry.&lt;/p&gt;</description></item><item><title>Experiences with the new Add-In concept of ArcGIS 10</title><link>http://blog.marko-apfel.de/posts/experiences-with-the-new-add-in-concept-of-arcgis-10/</link><pubDate>Wed, 08 Sep 2010 12:08:00 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/experiences-with-the-new-add-in-concept-of-arcgis-10/</guid><description>&lt;h2 id="namespaces-of-components-in-an-add-in"&gt;Namespaces of components in an Add-In&lt;/h2&gt;
&lt;p&gt;It seems that there is only one namespace for all components in an Add-In allowed. The namespace is defined over an attribute of the tag &lt;code&gt;&amp;lt;AddIn&amp;gt;&lt;/code&gt;. And this tag is allowed only once per &lt;code&gt;config.esriaddinx&lt;/code&gt; file.&lt;/p&gt;</description></item><item><title>Set ApartmentState for ArcObjects-logic in separate threads</title><link>http://blog.marko-apfel.de/posts/set-apartmentstate-for-arcobjects-logic-in-separate-threads/</link><pubDate>Wed, 08 Sep 2010 10:54:00 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/set-apartmentstate-for-arcobjects-logic-in-separate-threads/</guid><description>&lt;h2 id="problem-context"&gt;Problem context&lt;/h2&gt;
&lt;p&gt;We use a &lt;code&gt;backgroundworker&lt;/code&gt; to load &lt;code&gt;.MXD&lt;/code&gt; documents from several places of the system and extract meta data and thumbnails which a GUI component shows in an asynchronous way.&lt;/p&gt;
&lt;p&gt;The unit tests for this logic throws an exception during the access the thumbnail:&lt;/p&gt;</description></item><item><title>Caching of toolbar names in ArcMap</title><link>http://blog.marko-apfel.de/posts/caching-of-toolbar-names-in-arcmap/</link><pubDate>Tue, 08 Jun 2010 10:06:00 +0200</pubDate><guid>http://blog.marko-apfel.de/posts/caching-of-toolbar-names-in-arcmap/</guid><description>&lt;p&gt;For little GUI-changes in own ArcMap-customizations normally it is enough to start the application and look that every entry is visible. Especially for refactoring of an own toolbar it was still enough to verify that the toolbar is already shown in the choice-list.&lt;/p&gt;</description></item><item><title>F# and ArcObjects, Part 3</title><link>http://blog.marko-apfel.de/posts/f-sharp-and-arcobjects-part-3/</link><pubDate>Fri, 26 Mar 2010 13:15:00 +0100</pubDate><guid>http://blog.marko-apfel.de/posts/f-sharp-and-arcobjects-part-3/</guid><description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Maybe a little bit dirty, but for learning was it OK. ;-)&lt;/p&gt;</description></item><item><title>F# and ArcObjects, Part 2</title><link>http://blog.marko-apfel.de/posts/f-sharp-and-arcobjects-part-2/</link><pubDate>Thu, 25 Mar 2010 14:49:00 +0100</pubDate><guid>http://blog.marko-apfel.de/posts/f-sharp-and-arcobjects-part-2/</guid><description>&lt;p&gt;After accessing one feature now i iterate through all features of a feature class:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fs" data-lang="fs"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nf"&gt;open&lt;/span&gt; &lt;span class="nf"&gt;System;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nf"&gt;#I&lt;/span&gt; &lt;span class="nf"&gt;&amp;#34;C:\Program&lt;/span&gt; &lt;span class="nf"&gt;Files\ArcGIS\DotNet&amp;#34;;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nf"&gt;#r&lt;/span&gt; &lt;span class="nf"&gt;&amp;#34;ESRI.ArcGIS.System.dll&amp;#34;;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nf"&gt;#r&lt;/span&gt; &lt;span class="nf"&gt;&amp;#34;ESRI.ArcGIS.DataSourcesGDB.dll&amp;#34;;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nf"&gt;#r&lt;/span&gt; &lt;span class="nf"&gt;&amp;#34;ESRI.ArcGIS.Geodatabase.dll&amp;#34;;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nf"&gt;open&lt;/span&gt; &lt;span class="nf"&gt;ESRI.ArcGIS.esriSystem;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nf"&gt;open&lt;/span&gt; &lt;span class="nf"&gt;ESRI.ArcGIS.DataSourcesGDB;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nf"&gt;open&lt;/span&gt; &lt;span class="nf"&gt;ESRI.ArcGIS.Geodatabase;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nf"&gt;let&lt;/span&gt; &lt;span class="nf"&gt;aoInitialize&lt;/span&gt; &lt;span class="nf"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;new&lt;/span&gt; &lt;span class="nf"&gt;AoInitializeClass();;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nf"&gt;let&lt;/span&gt; &lt;span class="nf"&gt;status&lt;/span&gt; &lt;span class="nf"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;aoInitialize.Initialize(esriLicenseProductCode.esriLicenseProductCodeArcEditor);;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nf"&gt;let&lt;/span&gt; &lt;span class="nf"&gt;workspacefactory&lt;/span&gt; &lt;span class="nf"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;new&lt;/span&gt; &lt;span class="nf"&gt;SdeWorkspaceFactoryClass();;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nf"&gt;let&lt;/span&gt; &lt;span class="nf"&gt;connection&lt;/span&gt; &lt;span class="nf"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;&amp;#34;SERVER=okul;DATABASE=p;VERSION=sde.default;INSTANCE=sde:sqlserver:okul;USER=s;PASSWORD=g&amp;#34;;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nf"&gt;let&lt;/span&gt; &lt;span class="nf"&gt;workspace&lt;/span&gt; &lt;span class="nf"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;workspacefactory.OpenFromString(connection,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="nf"&gt;);;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nf"&gt;let&lt;/span&gt; &lt;span class="nf"&gt;featureWorkspace&lt;/span&gt; &lt;span class="nf"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;(box&lt;/span&gt; &lt;span class="nf"&gt;workspace)&lt;/span&gt; &lt;span class="nf"&gt;:?&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;IFeatureWorkspace;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nf"&gt;let&lt;/span&gt; &lt;span class="nf"&gt;featureClass&lt;/span&gt; &lt;span class="nf"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;featureWorkspace.OpenFeatureClass(&amp;#34;Praxair.SFG.BP_L_ROHR&amp;#34;);;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nf"&gt;let&lt;/span&gt; &lt;span class="nf"&gt;queryFilter&lt;/span&gt; &lt;span class="nf"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;new&lt;/span&gt; &lt;span class="nf"&gt;QueryFilterClass();;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nf"&gt;let&lt;/span&gt; &lt;span class="nf"&gt;featureCursor&lt;/span&gt; &lt;span class="nf"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;featureClass.Search(queryFilter,&lt;/span&gt; &lt;span class="nf"&gt;true);;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nf"&gt;let&lt;/span&gt; &lt;span class="nf"&gt;featureCursorSeq&lt;/span&gt; &lt;span class="nf"&gt;(featureCursor&lt;/span&gt; &lt;span class="kn"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;IFeatureCursor)&lt;/span&gt; &lt;span class="nf"&gt;=&lt;/span&gt; 
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nf"&gt;let&lt;/span&gt; &lt;span class="nf"&gt;actualFeature&lt;/span&gt; &lt;span class="nf"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;ref&lt;/span&gt; &lt;span class="nf"&gt;(featureCursor.NextFeature())&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nf"&gt;seq&lt;/span&gt; &lt;span class="nf"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;while &lt;/span&gt;&lt;span class="nf"&gt;(!actualFeature)&lt;/span&gt; &lt;span class="nf"&gt;&amp;lt;&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;null&lt;/span&gt; &lt;span class="k"&gt;do
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nf"&gt;yield&lt;/span&gt; &lt;span class="nf"&gt;actualFeature&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;do &lt;/span&gt;&lt;span class="nf"&gt;actualFeature&lt;/span&gt; &lt;span class="nf"&gt;:=&lt;/span&gt; &lt;span class="nf"&gt;featureCursor.NextFeature()&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nf"&gt;};;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nf"&gt;featureCursorSeq&lt;/span&gt; &lt;span class="nf"&gt;featureCursor&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nf"&gt;|&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;Seq.iter&lt;/span&gt; &lt;span class="nf"&gt;(fun&lt;/span&gt; &lt;span class="nf"&gt;feature&lt;/span&gt; &lt;span class="nf"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;Console.WriteLine&lt;/span&gt; &lt;span class="nf"&gt;((!feature).OID));;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item><item><title>F# and ArcObjects, Part 1</title><link>http://blog.marko-apfel.de/posts/f-sharp-and-arcobjects-part-1/</link><pubDate>Thu, 25 Mar 2010 10:58:00 +0100</pubDate><guid>http://blog.marko-apfel.de/posts/f-sharp-and-arcobjects-part-1/</guid><description>&lt;p&gt;After having a first look on F# its time to ask: How could i use F# with ArcObjects.&lt;/p&gt;
&lt;p&gt;So my first steps was to do something with a feature in a F# interactive session.
And these are my first code lines:&lt;/p&gt;</description></item></channel></rss>