Using a URL Field to Provide Direct Access to GIS Datasets from within XMap
Before jumping headlong into a series of step-by-step instructions that will ultimately achieve the outcome stated in the heading of this article, it would be wise to consider the end product as a means to provide a semblance context for the required steps.
The XMap OpenSpace layer that is available for download here contains a grid covering a portion of Southern Maine, the hinterland of DeLorme’s corporate headquarters. If you import the layer into XMap and zoom to one of the grid tiles, you will notice each tile is labeled “Download” and that this text is an active URL or link. The URL triggers the download of high-resolution orthoimagery for the selected tile in MrSID format. Click one of the links and you will be offered the option to save the corresponding Zipped MrSID file on your local hard drive. Unzip the file and, using the Map Data tab in XMap, add the image to your current project. This is an example of the use of the URL field within XMap for accessing remote data for a selected geographic area.
Now that we more clearly understand the goal, we can discuss the steps that were required to create this layer.
Step One – Research the Availability of the Data
In order for this project to be successful, the targeted data must be available for direct download. In the example previously mentioned, the imagery is archived on the Maine GeoLibrary Data Catalog site, where the Find function allows the visitor to search for imagery by 1:24,000 tiles. The result of a search is a long list of MrSID files, each of which can be individually downloaded. Although each of the URLs that are used to download the MrSID files is obviously unique, they follow a standard format:
http://megis.maine.gov/data/ortho_hf/[tile_ID].zip
Step Two – Find a Suitable Frame of Reference
As a means to help identify the specific tile ID for an area, the Maine GeoLibrary provides an index grid in shapefile format. Importing this file into XMap shows the coverage of each tile overlaid on the base map, and the attribute set for this layer includes the unique ID for tile. With this data, I was able to create a new attribute field within the index layer by combining the standard format of the URL identified in step one with each tile’s unique ID.
Step Three – Use a Formula to Create the New URL Field
The process of creating the new field in XMap involved the following steps:
- First I clicked the Attributes button and selected Design View
- Then I clicked Options and chose Add Field
- After naming the field, I selected URL as the Data Type and changed the String Size from 32 to 100 to accommodate the large number of characters in the URL
- In the formula window, I typed the following:
“http://megis.maine.gov/data/ortho_1f/” & [PHOTO] & “.zip”
In this case PHOTO was the name of the existing attribute field that contained the imagery tile ID. The following is an example of what the new field looked like in the Datasheet View:
http://megis.maine.gov/data/ortho_hf/ortho_hf395_4890.zip
- Finally I created another new field, this time using the String Data Type and in the formula window, I simply typed “Download”. I used the label function in the Tools menu of the Workspace to assign this new field as a label so that the word Download appeared at the center of each grid and offered access to the previously created URL
Step Four – Click the Download Label on the Map
This index grid now provides the means to download imagery for a selected geographic area.
Anyone using either the Editor or Enterprise versions of XMap can use this procedure to initiate direct access to any data that is archived online or at a remote location, and for which a geometric frame of reference is available.


While not every XMap user will find a need for the Magic Wand Selection function, several innovative applications have recently been brought to our attention. These include an energy company using the tool to manage gas pipeline maintenance schedules, and a public works department monitoring water supply lines.
