<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>John Selkirk - GIS Development &#187; ESRI</title>
	<atom:link href="http://john.selkirks.net/category/esri/feed/" rel="self" type="application/rss+xml" />
	<link>http://john.selkirks.net</link>
	<description>My thoughts on development with an emphasis on GIS</description>
	<lastBuildDate>Fri, 21 Aug 2009 12:41:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Exporting from ESRI GDB to CAD</title>
		<link>http://john.selkirks.net/2009/04/22/exporting-from-esri-gdb-to-cad/</link>
		<comments>http://john.selkirks.net/2009/04/22/exporting-from-esri-gdb-to-cad/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 13:41:21 +0000</pubDate>
		<dc:creator>John Selkirk</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[ESRI]]></category>
		<category><![CDATA[GIS]]></category>

		<guid isPermaLink="false">http://john.selkirks.net/2009/04/22/exporting-from-esri-gdb-to-cad/</guid>
		<description><![CDATA[I am implementing a project that needs to export from the ESRI GDB into DXF format. There are many ways to do this but one of the main requirements is that we should not had to the list of royalties required to deploy the system. The application will use an ArcGIS Engine Runtime license so [...]]]></description>
			<content:encoded><![CDATA[<p>I am implementing a project that needs to export from the ESRI GDB into DXF format. There are many ways to do this but one of the main requirements is that we should not had to the list of royalties required to deploy the system. The application will use an ArcGIS Engine Runtime license so that is that I have to run within.</p>
<p>After some investigation I found a component online which is completely .NET based with royalty free distribution. The component is <a href="http://www.woutware.com/cadlib2.0.html">Cablib by WoutWare</a>. The API is simple and easy to use but provides all the power that is needed for this project.</p>
]]></content:encoded>
			<wfw:commentRss>http://john.selkirks.net/2009/04/22/exporting-from-esri-gdb-to-cad/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Finding out if a File Geodatabase Feature Class is compressed</title>
		<link>http://john.selkirks.net/2008/09/04/finding-out-if-a-file-geodatabase-feature-class-is-compressed/</link>
		<comments>http://john.selkirks.net/2008/09/04/finding-out-if-a-file-geodatabase-feature-class-is-compressed/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 13:12:13 +0000</pubDate>
		<dc:creator>John Selkirk</dc:creator>
				<category><![CDATA[ArcGIS Mobile]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Filebased Geodatabase]]></category>

		<guid isPermaLink="false">http://john.selkirks.net/2008/09/04/finding-out-if-a-file-geodatabase-feature-class-is-compressed/</guid>
		<description><![CDATA[Compressed file geodatabases (fGDB) are a great thing. They render data amazingly fast and search quickly but take up a miniscule amount of disk space. Good job to ESRI on getting it right.
They are not editable though, and therefore need to be removed from any candidate editable feature classes you may be looking at.
The following [...]]]></description>
			<content:encoded><![CDATA[<p>Compressed file geodatabases (fGDB) are a great thing. They render data amazingly fast and search quickly but take up a miniscule amount of disk space. Good job to ESRI on getting it right.</p>
<p>They are not editable though, and therefore need to be removed from any candidate editable feature classes you may be looking at.</p>
<p>The following piece of code can be used to determine if the ftrClass is editable:</p>
<blockquote><div>
<div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 55.9%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; height: 109px; background-color: #f4f4f4; border-bottom-style: none">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">ICompressionInfo info = featureClass.FullName <span style="color: #0000ff">as</span> ICompressionInfo;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 55.59%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; height: 16px; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #0000ff">if</span> (info != <span style="color: #0000ff">null</span>)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">{</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">    <span style="color: #0000ff">if</span> (info.IsCompressed == <span style="color: #0000ff">true</span>)</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">        <span style="color: #0000ff">return</span> <span style="color: #0000ff">true</span>;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">}</pre>
</div>
</div>
</blockquote>
<div> This also handles when you are dealing with a feature class that is not from a fGDB as it will not implement <a href="http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriGeoDatabase/ICompressionInfo.htm">ICompressionInfo</a>.</div>
<div>&nbsp;</div>
]]></content:encoded>
			<wfw:commentRss>http://john.selkirks.net/2008/09/04/finding-out-if-a-file-geodatabase-feature-class-is-compressed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ESRI AxToolbarControl and Windowless ActiveX controls are not supported</title>
		<link>http://john.selkirks.net/2008/08/25/esri-axtoolbarcontrol-and-windowless-activex-controls-are-not-supported/</link>
		<comments>http://john.selkirks.net/2008/08/25/esri-axtoolbarcontrol-and-windowless-activex-controls-are-not-supported/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 15:15:47 +0000</pubDate>
		<dc:creator>John Selkirk</dc:creator>
				<category><![CDATA[ArcGIS Engine]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Software Development]]></category>

		<guid isPermaLink="false">http://john.selkirks.net/2008/08/25/esri-axtoolbarcontrol-and-windowless-activex-controls-are-not-supported/</guid>
		<description><![CDATA[This is something that I encountered before but it cropped up again this morning and I thought it was time to get it on &#8216;paper&#8217;.
To allow for complete control of the application configuration, GO! Sync Mapbook uses reflection to load all of it&#8217;s components. This seems to cause a problem in Vista with machines that [...]]]></description>
			<content:encoded><![CDATA[<p>This is something that I encountered before but it cropped up again this morning and I thought it was time to get it on &#8216;paper&#8217;.</p>
<p>To allow for complete control of the application configuration, GO! Sync Mapbook uses reflection to load all of it&#8217;s components. This seems to cause a problem in Vista with machines that have <a href="http://support.microsoft.com/kb/875352">Data Execution Prevention (DEP)</a> running. The ActiveX controls that makeup ArcGIS Engine do not load properly.</p>
<p>There is a pretty good article <a href="http://www.realtime-vista.com/administration/2007/04/disabling_data_execution_preve.htm">here</a> that shows how to turn it off completely.</p>
<p>I used the following command line to fix it:</p>
<p><strong><em>bcdedit /set nx AlwaysOff</em></strong></p>
<p>You need to run the command prompt as Administrator for it to work.</p>
]]></content:encoded>
			<wfw:commentRss>http://john.selkirks.net/2008/08/25/esri-axtoolbarcontrol-and-windowless-activex-controls-are-not-supported/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ArcSDE And Active Directory</title>
		<link>http://john.selkirks.net/2008/01/29/arcsde-and-active-directory/</link>
		<comments>http://john.selkirks.net/2008/01/29/arcsde-and-active-directory/#comments</comments>
		<pubDate>Tue, 29 Jan 2008 14:26:13 +0000</pubDate>
		<dc:creator>John Selkirk</dc:creator>
				<category><![CDATA[ArcGIS Server]]></category>
		<category><![CDATA[ESRI]]></category>
		<category><![CDATA[Software Development]]></category>

		<guid isPermaLink="false">http://john.selkirks.net/?p=40</guid>
		<description><![CDATA[So I recently needed to connect into an ArcSDE database (direct connect) using the Operating System login and I realized that I had no idea how to do it.
Luckily, ESRI have a great EDN post about it which explains everything.
Essentially, you do not populate the IPropertySet with the USER and PASSWORD values but rather set [...]]]></description>
			<content:encoded><![CDATA[<p>So I recently needed to connect into an ArcSDE database (direct connect) using the Operating System login and I realized that I had no idea how to do it.</p>
<p>Luckily, ESRI have a great <a href="http://edndoc.esri.com/arcobjects/9.2/NET/c778d2bb-eb36-4793-9c89-20795811c5eb.htm">EDN post</a> about it which explains everything.</p>
<p>Essentially, you do not populate the IPropertySet with the USER and PASSWORD values but rather set the AUTHENTICATION_MODE to <em>OSA</em>.</p>
<p>The rest of the connection parameters are the same and since we normally use connection files in our applications it means that the connection file just needs to be changed.</p>
<p>GEOPRESS_LOCATION(Home)</p>
]]></content:encoded>
			<wfw:commentRss>http://john.selkirks.net/2008/01/29/arcsde-and-active-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Filebased Geodatabase Date Filtering</title>
		<link>http://john.selkirks.net/2007/08/16/filebased-geodatabase-date-filtering/</link>
		<comments>http://john.selkirks.net/2007/08/16/filebased-geodatabase-date-filtering/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 13:38:32 +0000</pubDate>
		<dc:creator>John Selkirk</dc:creator>
				<category><![CDATA[ESRI]]></category>
		<category><![CDATA[Filebased Geodatabase]]></category>
		<category><![CDATA[Software Development]]></category>

		<guid isPermaLink="false">http://john.selkirks.net/?p=28</guid>
		<description><![CDATA[So I had to add some functionality to filter by date and normally this is really simple in ArcObjects as you use the IQueryFilter::WhereClause and enter a date formatted where clause in there.
One problem though. I am using Filebased Geodatabase and I did not know what the correct way to encode the date is! I [...]]]></description>
			<content:encoded><![CDATA[<p>So I had to add some functionality to filter by date and normally this is really simple in ArcObjects as you use the IQueryFilter::WhereClause and enter a date formatted where clause in there.</p>
<p>One problem though. I am using Filebased Geodatabase and I did not know what the correct way to encode the date is! I thought about it for a little while and then decided to use the trusty Query Builder from within ArcMap. It worked a charm.</p>
<p><a href="http://gisdev.files.wordpress.com/2007/08/image.png"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="240" alt="image" src="http://gisdev.files.wordpress.com/2007/08/image-thumb.png" width="207" border="0"></a> </p>
<p>It is hard to see but they encode the date by pre-pending &#8216;date &#8216; and encoding the actual date in &#8216;yyyy-mm-dd&#8217; format.</p>
<p>Must archive this somewhere in my brain where it will not get lost!</p>
]]></content:encoded>
			<wfw:commentRss>http://john.selkirks.net/2007/08/16/filebased-geodatabase-date-filtering/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>64-bit Windows and ArcGIS</title>
		<link>http://john.selkirks.net/2007/07/13/64-bit-windows-and-arcgis/</link>
		<comments>http://john.selkirks.net/2007/07/13/64-bit-windows-and-arcgis/#comments</comments>
		<pubDate>Fri, 13 Jul 2007 12:45:43 +0000</pubDate>
		<dc:creator>John Selkirk</dc:creator>
				<category><![CDATA[ESRI]]></category>
		<category><![CDATA[Software Development]]></category>

		<guid isPermaLink="false">http://john.selkirks.net/?p=23</guid>
		<description><![CDATA[So&#160;we predominantly use C# for development at TC Technology for many reasons which I will leave for a different post. During 64-bit testing though we found that it can be interesting when dealing with:

64-bit Windows
ArcGIS 9.2
.NET 2.0 

at the same time. When trying to initialize AO using the following code


IAoInitialize init = new AoInitializeClass();


it fails [...]]]></description>
			<content:encoded><![CDATA[<p>So&nbsp;we predominantly use C# for development at <a href="http://www.tctechnology.com" target="_blank">TC Technology</a> for many reasons which I will leave for a different post. During 64-bit testing though we found that it can be interesting when dealing with:</p>
<ul>
<li>64-bit Windows</li>
<li>ArcGIS 9.2</li>
<li>.NET 2.0 </li>
</ul>
<p>at the same time. When trying to initialize AO using the following code</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;max-height:200px;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, 'Courier New', courier, monospace;background-color:white;border-style:none;margin:0;padding:0;">IAoInitialize init = <span style="color:#0000ff;">new</span> AoInitializeClass();</pre>
</div>
</div>
<p>it fails with an error like this:</p>
<p>System.Runtime.InteropServices.COMException<br />Retrieving the COM class factory for component with CLSID {2237A429-E4AC-40D6-96A5-5B6CCF40D56B} failed due to the following error: 80040154.</p>
<p>We did some digging and, thankfully, <a href="http://forums.esri.com/thread.asp?c=159&amp;f=1707&amp;t=219248&amp;mc=6" target="_blank">someone</a> has already figured it out. It turns out that if you build any .NET code with the &#8216;Any CPU&#8217; option which is the default then ArcObjects based applications fail. This makes sense as the c++ dlls that are built for AO are 32-bit so the application/assemblies that are consuming them also need to be 32-bit.</p>
<p>Fixing the problem is pretty easy (although if you have a bunch of assemblies like we do tedious!). </p>
<p>First thing to do is&nbsp;select &#8216;Configuration Manager&#8217;&nbsp;from the &nbsp;Solution Platforms drop down (the one with &#8216;Any CPU right now&#8217;):</p>
<p><a href="http://gisdev.files.wordpress.com/2007/07/image.png"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="21" alt="image" src="http://gisdev.files.wordpress.com/2007/07/image-thumb.png" width="240" border="0"></a> </p>
<p>It actually brings up the same configuration window as the Debug/Release configuration!</p>
<p><a href="http://gisdev.files.wordpress.com/2007/07/image1.png"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="149" alt="image" src="http://gisdev.files.wordpress.com/2007/07/image-thumb1.png" width="240" border="0"></a> </p>
<p>From the &#8216;Active solution platforms&#8217; drop-down select &#8216;New&#8217;:</p>
<p><a href="http://gisdev.files.wordpress.com/2007/07/image2.png"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="154" alt="image" src="http://gisdev.files.wordpress.com/2007/07/image-thumb2.png" width="240" border="0"></a> </p>
<p>and from the resultant &#8216;New Solution Platform&#8217; select <em>x86</em>. This is create a new configuration for x86 only. This way when it is run on a 64-bit environment the OS will know that it should be run as a 32-bit application.</p>
]]></content:encoded>
			<wfw:commentRss>http://john.selkirks.net/2007/07/13/64-bit-windows-and-arcgis/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>ESRI User Conference</title>
		<link>http://john.selkirks.net/2007/06/25/esri-user-conference-2/</link>
		<comments>http://john.selkirks.net/2007/06/25/esri-user-conference-2/#comments</comments>
		<pubDate>Mon, 25 Jun 2007 00:39:53 +0000</pubDate>
		<dc:creator>John Selkirk</dc:creator>
				<category><![CDATA[ESRI]]></category>
		<category><![CDATA[User Conference]]></category>

		<guid isPermaLink="false">http://john.selkirks.net/?p=11</guid>
		<description><![CDATA[So to give some metadata to the picture in the last post it is an image of the user conference on the first morning with a &#8216;bunch&#8217; of people waiting to get in the door.From what I heard the conference numbers did not really go up and more astonishingly about 40% of the attendees where [...]]]></description>
			<content:encoded><![CDATA[<p>So to give some metadata to the picture in the last post it is an image of the user conference on the first morning with a &#8216;bunch&#8217; of people waiting to get in the door.From what I heard the conference numbers did not really go up and more astonishingly about 40% of the attendees where first timers! I think that the conference was good and went past as fast as usual.More of my thoughts over the coming weeks but I am glad that ArcGIS Mobile is getting the attention it deserves.</p>
]]></content:encoded>
			<wfw:commentRss>http://john.selkirks.net/2007/06/25/esri-user-conference-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>esri uc</title>
		<link>http://john.selkirks.net/2007/06/18/esri-uc/</link>
		<comments>http://john.selkirks.net/2007/06/18/esri-uc/#comments</comments>
		<pubDate>Mon, 18 Jun 2007 17:38:04 +0000</pubDate>
		<dc:creator>John Selkirk</dc:creator>
				<category><![CDATA[ESRI]]></category>
		<category><![CDATA[User Conference]]></category>

		<guid isPermaLink="false">http://john.selkirks.net/?p=10</guid>
		<description><![CDATA[

]]></description>
			<content:encoded><![CDATA[<p><a href="http://media.shozu.com/cache/portal/media/18b8ea/16777220"><img src="http://media.shozu.com/cache/portal/media/18b8ea/16777220_journal" /></a></p>
<p align="right"><a href="http://www.shozu.com/portal/index.do" target="_new"><img src="http://www.shozu.com/resources/messages/logo_blog.gif" alt="Posted by ShoZu" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://john.selkirks.net/2007/06/18/esri-uc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ESRI User Conference</title>
		<link>http://john.selkirks.net/2007/06/06/esri-user-conference/</link>
		<comments>http://john.selkirks.net/2007/06/06/esri-user-conference/#comments</comments>
		<pubDate>Wed, 06 Jun 2007 00:01:03 +0000</pubDate>
		<dc:creator>John Selkirk</dc:creator>
				<category><![CDATA[ESRI]]></category>
		<category><![CDATA[User Conference]]></category>

		<guid isPermaLink="false">http://john.selkirks.net/?p=9</guid>
		<description><![CDATA[Well it&#8217;s almost that time again for some 13,000 people to meet up in San Diego. Just booked my flight yesterday (late I know) and I am starting to get jazzed.There should be some really good buzz around what will be in ArcGIS 9.3 and the 10.0 release. Most of the information was announced at the [...]]]></description>
			<content:encoded><![CDATA[<p>Well it&#8217;s almost that time again for some 13,000 people to meet up in San Diego. Just booked my flight yesterday (late I know) and I am starting to get jazzed.There should be some really good buzz around what will be in ArcGIS 9.3 and the 10.0 release. Most of the information was announced at the BP conference or Dev Summit but we shall see!It will be nice to see is ArcGIS Mobile is getting more attention. It deserves it!</p>
]]></content:encoded>
			<wfw:commentRss>http://john.selkirks.net/2007/06/06/esri-user-conference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Decided to create a new blog about GIS</title>
		<link>http://john.selkirks.net/2007/06/02/decided-to-create-a-new-blog-about-gis/</link>
		<comments>http://john.selkirks.net/2007/06/02/decided-to-create-a-new-blog-about-gis/#comments</comments>
		<pubDate>Sat, 02 Jun 2007 15:51:10 +0000</pubDate>
		<dc:creator>John Selkirk</dc:creator>
				<category><![CDATA[Blogs]]></category>
		<category><![CDATA[ESRI]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://john.selkirks.net/?p=6</guid>
		<description><![CDATA[Well it happened. I decided that a bunch of the things I am writing about have no place being on our family blog (mainly focused around Euan and what we do as a family) and Work (focused on only the technology used and created at TC Technology).This is a good thing. People have RSS aggregators and software [...]]]></description>
			<content:encoded><![CDATA[<p>Well it happened. I decided that a bunch of the things I am writing about have no place being on our family blog (mainly focused around Euan and what we do as a family) and Work (focused on only the technology used and created at TC Technology).This is a good thing. People have RSS aggregators and software to read these feeds anyway so they are not visiting multiple websites these days.Watch this space for some thoughts that I have in the GIS community mainly around development in the GIS world but also some external GIS influences! </p>
]]></content:encoded>
			<wfw:commentRss>http://john.selkirks.net/2007/06/02/decided-to-create-a-new-blog-about-gis/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
