<?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; ArcGIS Mobile</title>
	<atom:link href="http://john.selkirks.net/category/esri/arcgis-mobile/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>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>
	</channel>
</rss>
