Friday, July 31, 2009
How rugged is a Nomad?
Not that we recommend you try this though!
Wednesday, July 22, 2009
Using ArcPad Training Courses
RIA Mobile GIS provide and run a number of Training Courses, which are designed to assist organisations and users achieve the most from their Mobile System.
Currently we have three 'Using ArcPad' courses scheduled around Australia:
- Adelaide - Wed 19th August, 2009 (the day after OZRI SA)
- Darwin - Tue 1st September, 2009 (the day after OZRI NT)
- Hobart - Tue 22nd September, 2009
If you are interested in attending a course in a different region, then please let us know.
More information on the course can be found on the Support and Training page of our website. To register you interest, download the appropriate resgistration form and send it back to us:
Get in fast! Numbers are limited, and early bird discounts apply.
Tuesday, July 21, 2009
Field Naming Tips #2
You will find that if you do use any of these words, you will not be able to check any features in. When you select the AXF from the ArcPad Data Manager Toolbar, it will correctly list the number of features that you have created in the field (in the summary section), but then when you try to check it in, it says there are no edits in the selected layer. Unfortunately there are no error messages displayed telling you why the check in failed. I have lodged another request with ESRI, so we will see how we go in the future.
The complete list of SQLCE reserved words can be found here.
Subtype Field Names: Make them different to the feature class name
First of all, I checked the feature class in ArcCatalog and ArcMap. All of the lists appeared as expected there.
Next I checked the .axf.xml check out log, which gets created in the same directory as the AXF file. Usually this reveals a lot about why check out was not successful, for things such as data and schema errors. Again, this was empty.
I then opened up the AXF file in ArcPad Studio, and it turned out that the Data Tables branch of the AXF structure was empty. This is where all of these tables are stored within the AXF.
After digging around for a while, I realised that the feature class was called Heritage, which was the same as the Subtype field. Turns out that this was the cause of the problem; if I renamed that field, it all worked as expected.
There are two reason for writing this blog:
- To make you aware of the bug - I have logged this with ESRI so hopefully it will get fixed soon.
- To outline the troubleshooting process that I went through.
Friday, July 17, 2009
GUIDs and Global ID Fields for Related Tables in ArcPad
When working with related tables, you will often need some form of unique value to make up the Primary Key / Foreign Key relationship. This is particularly important in ArcPad, where more than likely, you will have multiple field officers collecting data at the same time.
Perhaps the most convenient way of achieving this is through the use of Global IDs and GUIDs. Both of these data types store registry style strings consisting of 36 characters enclosed in curly brackets: for example, {90A942E1-BC7C-4F1E-94D5-AACAAD24F08C}. What this means is that there are a total of 2128 possible values – which makes the likelihood of repeating a value within your database about as likely as South Africa winning the next World Cup.
What is the difference between the two? ArcGIS actively maintains the Global ID fields (i.e. when a new feature is created, a GUID value will be assigned), whereas the GUID fields are left blank. It is up to the user to maintain these fields.
So to use these in your relationship class, you need to use the Global ID in the Origin Table as the Primary Key, and have a GUID field in the Destination Table as the Foreign Key. This way, ArcGIS and ArcPad will automatically copy the Primary Key Global ID into the Foreign Key GUID field.
To explain this a bit better, let's work through an example. Let's assume that we have a relationship between a feature class 'Weeds' and a related table 'Inspections'. Here, you would:
- Set up the feature class with the required fields
- Set up the related table with the required fields
- Add the Global ID field to the Weeds feature class
- Right click on the Weeds feature class in ArcCatalog
- Select 'Add Global IDs...'
- Right click on the Weeds feature class in ArcCatalog
- Add a GUID field to the Inspections table
- Right click on the Inspections table in ArcCatalog
- Select Properties
- In the Fields page, add a field called 'Weed_ID' and make it type GUID
- Right click on the Inspections table in ArcCatalog
- Create a relationship class between the feature class and the table
- Right click in ArcCatalog
- Select New à Relationship Class...
- Follow the prompts. Make the:
- Origin Table = Weeds feature class
- Destination Table = Inspections Table
- Primary Key = GlobalID (Weeds feature class)
- Foreign Key = Weed_ID (Inspection table)
- Origin Table = Weeds feature class
- Right click in ArcCatalog
Some considerations if using this approach:
- You must use ArcPad 8 Service Pack 1 – previous versions do not support GUIDs or GlobalIDs
- In order to check the layer out to AXF, your feature class must be a versioned SDE feature class
- As you are working with Relationship classes and ArcSDE, you will need ArcEditor or ArcInfo licenses to check the data back in (interestingly, you can still check out with just an ArcView license)
Remember that you can always set up the relationship using standard field types (numeric, text etc.), which you will need to do if you are not using an SDE database. Some simple coding can provide you with unique values to use in the relationship.
Remote Display
The application can be downloaded from here. You will also need ActiveSync or Windows Mobile Device Center (Vista).
Unfortunately the application does not natively support Windows Mobile 5 or 6. To get it to work with these PDA's:
- Connect your PDA to your desktop, and make sure the ActiveSync connection is established
- Navigate to the C:\Program Files\Windows Mobile Developer Power Toys\ActiveSync_Remote_Display\devices\wce400\armv4 folder
- Copy the cerdisp2.exe file
- Paste it to the \Windows directory of your PDA
Monday, July 13, 2009
ArcPad 8 Service Pack 1 Released
http://support.esri.com/index.cfm?fa=downloads.patchesServicePacks.viewPatch&PID=26&MetaID=1537
Some improvements to note are:
· Improved detection of generic USB Serial Port GPS, Garmin USB GPS, and Bluetooth Serial Port GPS devices on the Windows platform
· Map.Select no longer fails with a script error when used with AXF layers
· Map.Layers(x) returns Nothing if the layer x is not present, as per previous versions of ArcPad
· Improved hardware button support
· Related Table form samples.
· .NET integration samples
More information on the release of Service Pack 1 is available at:
http://downloads2.esri.com/support/downloads/pad_/ArcPad8.0_SP1_ReadMe.pdf
Wednesday, July 8, 2009
Changing Field types in File Geodatabases
Ever tried changing the data type of a field in a feature class or table in a File Geodatabase? If you haven't, then believe me, it is not as easy as you would think. The only way of doing it is to actually create a new field and copy the values across.
As an example, let's say we want to change Field1 from an integer to a double field
- Close ArcCatalog (it will almost definitely have a lock on the database that you can't get rid of any other way)
- Rename Field1 to Field2
- Create a new field called Field1 (type=double)
- Copy any values across using the field calculator
- Delete Field2
From this point on, you have to put up with Field1 being the last field in the table, which can be pretty annoying if you have spent the time setting up your feature classes in a logical order, with similar attributes situated near one another.
What is the alternative I hear you ask?
- Export your table/feature class to a Personal Geodatabase
- Open the database in Microsoft Access
- Open the table in Design View
- Alter the field format
- Copy your table/feature class back to the file Geodatabase
You can also use this same method for renaming fields.
Warning! Be very cautious when doing this. Things can go wrong if you are not careful. Do not change any of the special fields (ObjectID, Shape etc.) as your table will become corrupt. You should always create a backup copy of your data before playing around with the schema of any databases.
Friday, July 3, 2009
Pairing Bluetooth Devices in Windows Vista
Often some software or terminal input programs may only go up to a specified number of COM PORTS (e.g. COM PORT 20 as a maximum), which causes problems if the Bluetooth Device Manager in Vista has automatically paired your Bluetooth device to an available COM PORT above this threshold.
To get around this issue:
- From Windows Control Panel, navigate to Vista's Device Manager
- Go to the Ports category
- Locate the listed pairing/relationship to your Bluetooth Device
- Right-click on this listing and go to Properties
- Within the Advanced Settings window, there is a drop down box where you can specify the COM PORT for that particular Bluetooth connection