<?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; Filebased Geodatabase</title>
	<atom:link href="http://john.selkirks.net/category/filebased-geodatabase/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>
		<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>
	</channel>
</rss>
