ESRI Dev Summit

I am heading out to the Dev Summit fir the first time in a few years and am super excited about it.

Seeing the tweets from people it looks like the BP part of it was really good. That and the fact that the Dev Summit has not disappointed yet means I think it is going to be a good one.

The Silverlight guys have been doing some awesome stuff in front of the REST API. They have also been doing some cool demos for this week by the sounds of it.

Many of the mobile APIs have there first showing and I really want to hear what they have been up to and what people are saying about it.

More to come!

Exporting from ESRI GDB to CAD

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.

After some investigation I found a component online which is completely .NET based with royalty free distribution. The component is Cablib by WoutWare. The API is simple and easy to use but provides all the power that is needed for this project.

ArcSDE And Active Directory

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 the AUTHENTICATION_MODE to OSA.

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.

GEOPRESS_LOCATION(Home)

Filebased Geodatabase Date Filtering

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 thought about it for a little while and then decided to use the trusty Query Builder from within ArcMap. It worked a charm.

image

It is hard to see but they encode the date by pre-pending ‘date ‘ and encoding the actual date in ‘yyyy-mm-dd’ format.

Must archive this somewhere in my brain where it will not get lost!

64-bit Windows and ArcGIS

So 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 with an error like this:

System.Runtime.InteropServices.COMException
Retrieving the COM class factory for component with CLSID {2237A429-E4AC-40D6-96A5-5B6CCF40D56B} failed due to the following error: 80040154.

We did some digging and, thankfully, someone has already figured it out. It turns out that if you build any .NET code with the ‘Any CPU’ 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.

Fixing the problem is pretty easy (although if you have a bunch of assemblies like we do tedious!).

First thing to do is select ‘Configuration Manager’ from the  Solution Platforms drop down (the one with ‘Any CPU right now’):

image

It actually brings up the same configuration window as the Debug/Release configuration!

image

From the ‘Active solution platforms’ drop-down select ‘New’:

image

and from the resultant ‘New Solution Platform’ select x86. 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.

ESRI User Conference

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 ‘bunch’ 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.

ESRI User Conference

Well it’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!

Decided to create a new blog about GIS

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!