Friday, September 4, 2009

Introduction to ArcGIS Training Course


RIA Mobile GIS have scheduled another Training Course.
More information on the course can be found on the ArcGIS 9 Training page of our website. To register your interest, download the appropriate registration form and send it back to us.
Information on all our courses can be found on the Support and Training page of our website.

If you are interested in scheduling a course in your region, or are interested in organising an onsite course within your organisation, please contact us on (03) 6223 4919 or Contact Us by email.

Tuesday, August 25, 2009

ArcMap Field Calculations

Often in a feature class, you will have an attribute which stores the file name and path of a file that is linked to that feature. For example, you may have a photo, a video or a condition report (PDF) which contains additional information about the feature. You can then use the Hyperlinking functionality in ArcMap to view the files via your map.

If you are storing the file paths as full paths (as opposed to relative), you may encounter some problems if you want to move the location of the images, reports etc. You could manually go through and update the paths, or you can use these simple field calculations.

Change File Paths
FileField = [FILE_PATH]
OrigPath = "D:\Temp"
NewPath = "C:\temp"
output = Replace(
FileField , OrigPath, NewPath )

Remove File Path
FileField = [FILE_PATH]
iLength = Len (
FileField )
iLastInd = InStrRev (
FileField , "\" )
iDif =
iLength - iLastInd
output = Right ( FileField , iDif )

To use them:
  1. Open the table of the feature class in ArcMap
  2. Start an edit session
  3. Right click on the column header, and select Field Calculator
  4. Click the advanced check box
  5. Copy the script into the "Pre-Logic VBA Script Code" box
  6. Replace the FileField property to the field that contains the file path in your feature class (delete the [FILE_PATH] part, and double click the appropriate field in the Fields List of the calculator)
  7. If changing the file path, update the OrigPath and NewPath variables
  8. Type output into the bottom box
  9. Click ok
  10. Save your edits

Tuesday, August 11, 2009

Using ArcPad Training Course - Brisbane

Following on from the popularity of our Using ArcPad training courses in Adelaide, Darwin and Hobart, we have now scheduled one in Brisbane on the 8th of October. If you are interested in attending, please download the registration form from our website, and return it to us as soon as possible. Be quick - early bird discounts apply!

Course updates:
  • Adelaide - 19th August 2009
  • Course is fully booked. If you are interested in attending at a later date, please contact us and register your interest
  • Darwin - 1st September 2009
  • Early bird registrations close on the 12th August 2009 (register)
  • Hobart - 22nd September 2009
  • Early bird registrations close on the 19th August 2009 (register)
  • Brisbane - 8th October 2009
  • Early bird registrations close on the 11th September 2009 (register)

We have also had a considerable amount of interest in our ArcPad Application Builder training course. Stay tuned if you are interested, as we will look at scheduling one of these in the not too distant future. If you would like one in your area, then please let us know.

Wednesday, August 5, 2009

Hard Reset for Mobile Devices


Occasionally a hard reset is required to return your mobile device to its factory settings following field testing, program evaluations, etc.

Often the hard reset function is not listed in the User Guide for your device, and may be difficult to locate.

A useful reference for hard resetting mobile devices is the RTFM website, which lists a number of mobile devices including the popular HP IPAQ range of products.

Feel free to contact RIA with any further questions.
!!NOTE!! Performing a hard reset will erase all the data from your mobile device. Please make sure you have copied all the data/files you wish to keep to another secure location (e.g. desktop computer, memory card, USB thumb drive) before performing a hard reset.

Tuesday, August 4, 2009

Increasing the length of a text field in a File Geodatabase

I was recently working on a job where I needed to increase the length of a text field of a feature class in a File Geodatabase. Similarly to changing the type of a field, this was not as straightforward as you might think. The process I went through was:
  1. Create a temporary field to store the values of existing features
  2. Delete the original field
  3. Create a new field, with the increased length (using the same name as the original)
  4. Copy the values from the temp field into this new field
  5. Delete the temp field

So basically, a lot of work to make a very minor change. I ended up using Model Builder and writing a Python script to automate the process. Being the nice people that we are, we uploaded it to ArcScripts so anyone can download it.

If you are interested, you can download the script here.

Interested in finding out more about Model Builder? Stay tuned, RIA is currently in the process of developing an Introduction to Model Builder training course.

Friday, July 31, 2009

How rugged is a Nomad?

Ever wondered how rugged your Nomad really is? Take a look at this...



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

Another tip when naming fields in a feature class, for use with ArcPad: Avoid using SQLCE reserved words.
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

I recently had a call from a client using ArcPad 7.1, saying that their drop down lists (subtypes and coded value domains) were not appearing in ArcPad. I got a copy of their database, and performed my own check out to see what was happening.
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:
  1. To make you aware of the bug - I have logged this with ESRI so hopefully it will get fixed soon.
  2. To outline the troubleshooting process that I went through.
Hopefully someone will find this of use. If nothing else, it should serve as a reminder for me!

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...'
  • 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
  • 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)

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

Microsoft's ActiveSync Remote Display is a very handy applciation which allows you to control your PDA from your desktop. This is extremely useful in a number of ways, including giving demonstrations and capturing screenshots.
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:
  1. Connect your PDA to your desktop, and make sure the ActiveSync connection is established
  2. Navigate to the C:\Program Files\Windows Mobile Developer Power Toys\ActiveSync_Remote_Display\devices\wce400\armv4 folder
  3. Copy the cerdisp2.exe file
  4. Paste it to the \Windows directory of your PDA
You can then launch the Remote Display appilcation from the Start menu on your desktop. You will see a message pop up saying "The OS or CPU of this device is unknown to this application", which can be ignored. Once closed, you should then be able to control your PDA.

Monday, July 13, 2009

ArcPad 8 Service Pack 1 Released

Good news, ArcPad 8.0 Service Pack 1 and ArcGIS Server ArcPad Extension 8.0 Service Pack 1 have now been released. They can be downloaded from the following link:
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

  1. Close ArcCatalog (it will almost definitely have a lock on the database that you can't get rid of any other way)
  2. Rename Field1 to Field2
  3. Create a new field called Field1 (type=double)
  4. Copy any values across using the field calculator
  5. 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?

  1. Export your table/feature class to a Personal Geodatabase
  2. Open the database in Microsoft Access
  3. Open the table in Design View
  4. Alter the field format
  5. 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

Windows Vista has a few quirks when compared to previous Windows releases. One such quirk is when pairing a Bluetooth device with your system running Windows Vista, a COM PORT is automatically assigned to the Bluetooth device without user input. Previous versions of Windows (e.g. Windows XP) allowed users to select from the available COM PORTS list when setting up a Bluetooth pairing.

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

Tuesday, June 23, 2009

Configuring Laser Rangefinders in ArcPad

Laser Rangefinders are devices designed to measure distances from your current position to a specified target, and can be easily integrated with your Mobile Field Unit/PDA via Bluetooth.
Here are the steps required to configure your Laser Rangefinder with a PDA running ArcPad:

1) Setup a relationship by pairing your PDA with the Laser Rangefinder using the Bluetooth Manager on your PDA. You may be required to enter a passcode for the Laser Rangefinder, for the TruPulse 360B unit the Passcode is 1111.

2) Within ArcPad, from the GPS Drop Down menu go to 'Rangefinder Preferences'.
- Set the Protocol as "Lasercraft Contour" for TruPulse 360B unit (see support.esri.com for required protocol for other Rangefinders).
- Specify the COM Port to be the same as set between the PDA and your Laser Rangefinder in step 1 above.
- Set the Baud Rate to be 4800.

3) From the GPS Drop Down menu, select 'Rangefinder Active'.

4) For the dataset that you are capturing data, make sure it is editable within ArcPad. Now select the 'Offset Point' tool (or 'Offset Polyline' tool if you are capturing polylines).
- Capture a point on your ArcPad map for your current location using the screen input, or the GPS if your PDA has an active GPS.
- The GPS Offset Window will now be presented to the user.
- Measure the distance to the required feature using the Laser Rangefinder. The GPS Offset Window will now be updated with the measurements observed using the Laser Rangefinder.
- Note that if you have a PDA with an integrated GPS that is active, the XY Location information will also be updated in the GPS Offset Window.
- Click Ok to accept measurements, and you will be now presented the Attribute Form for the captured data.

Tips:
i) Make sure that your required Rangefinder Extensions are switched on within ArcPad (Advanced Options/Extensions Tab).
ii) Turning off the PDA will drop the Bluetooth connection between the PDA and your Laser Rangefinder. You should configure the options on your PDA (Start\Settings\System\Power) so that the device will not turn off after a certain amount of user inactivity.
iii) In addition to your basic Point Offset tool, there are a number of other functions you can utilise for Laser Rangefinders within ArcPad, refer to the ArcPad User Guide for more information.