Select to view content in your preferred language

Add-Ins and Database Modifications for MapSAR

3064
0
08-15-2012 03:44 PM
RobertPincus
Regular Contributor
I am pretty close to posting 3 Add-Ins for MapSAR.  I think it's important to get the foundation to the program squared away be we move too far along. So I think it is a good time to edit the database a little. I know it will break some things but the changes to that code should not be too difficult to fix.

My proposed changes are mainly
1. Exchange feature classes where tables should be used. From speaking with Jon, the only reason he did this was to help the user. By creating tools, we can go even farther in helping the user edit tabular data.

2. Eliminate the two feature datasets. Feature datasets are primarly used for layers with similar spatial references and for topology. MapSAR does not use either of these.

3. Exchange domains with tables. Using domains, custon code has to assume where the database is. Having tables in the MXD makes it easier to find the underlying data. If everything that MapSAR needs to function is in the Mxd, code can then navigate the table of contents to find the actual table in the database. This eliminates the need for MapSAR to always have to be at the same location.

In light of this, the first Add-In edits the Incident table. The second Add-In edits the Reporting_Party table, and the third edit the Team_Member table.

I do have an Add-In to test. I have attached a beta version of an Add-In called Change_Project. It's designed to change the projections of the feature classes for MapSAR. It has one limitation in that the feature classes that were in the Incident and Resources_Clues_Routes feature datasets are moved to the root level of the database. Changing the pointers in the MXD should only take a minute or so. The Add-In itself has you point to the file geodatabase( SAR_Default.gdb) and then use a pulldown to select a new projection. Right now it's hard coded to give a list of projections NAD 1983 UTM Zone 1N - 24N. I can make it more comprehensive if need be, ore even customizable. I am pulling the list from here http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/esriSRProjCSType_Constan...

Please test this and let me know how it works. It was written C# in VS2010 and ArcGIS 10.0.

Thanks,
Robert
0 Kudos
0 Replies