Empty template shapefiles for creating new point, line and polygon features.

Before you can create and edit features in iGIS you need some layers to store your data in. Layers are created by importing existing shapefiles which have been created in third party software into iGIS. If you do not have any shapefiles, you can download the below attached zip file which contains a template point, line and polygon shapefile. The attached shapefiles should be imported into iGIS using the import settings;

Projection System: [EPSG: 4326] WGS 84 (Lat/Lon)
Characterset: UTF-8

empty template shapefiles – 4326 WGS84

Rendering a layer with feature specific colours

As the shapefile format does not store feature rendering details within it’s shape attribute, iGIS supports feature specific colour rendering via the definition of hexadecimal colour code values within an attribute of the shapefile.

To use this functionality your shapefile will need a ‘Text’ type field containing hexadecimal colour code values.

The below screen print from ArcMap shows a display colour attribute field called ‘disp_col’ containing hexadecimal colour code values per feature.

A shapeifle like the one seen in the image above could then be imported into iGIS, and added to a project with  its  ‘color attribute’ option for the layer set to the ‘disp_col’ attribute.

When the project is opened features for the layer will be rendered with their defined colour.

There are many hexadecimal colour code charts and tools available online.

http://www.colorpicker.com/

Importing shapefile data into iGIS via USB.

Follow the below steps to import your shapefile data into iGIS via USB .

  1. On your computer, add your shapefile data to a compressed zipped folder. i.e. ‘07102011.zip’
  2. Connect your iPhone/iPad to your computer via it’s USB cable, and open iTunes.
  3. Select your iPhone/iPad under DEVICES in the left hand navigation panel [Image 1. (1)] Select Apps [Image 1. (2)] Select iGIS [Image 1. (3)]
  4. Use the ‘Add…’ button to add your zipped shapefile data. [Image 1. (4)] Once the data is loaded it will be listed as per; [Image 1. (5)]
  5. The zipped data will now be on your iPhone/iPad so you can eject your device [Image 1. (6)] and unplug the USB cable.
  6. On your iPhone, open iGIS and select ‘Import’. The import menu open in USB mode so your zipped data will be discovered in the iGIS Documents directory and will begin to extract. All extracted shapefiles will then be listed as per;  [Image 2.]
  7. Select the shapefile and define, it’s projection and character set. Select Import. [Image 3.]
  8. The data will begin loading, and indexes will be created.  [Image 4.]

* If your zip file contains multiple shapefiles of the same projection and character set, you can import all the files together by selecting ‘Import All,’  defining the projection and character set,  and then selecting ‘Import All’ again to initiate the process.

Image 1 - iTunes import steps.

Image 2 - iGIS import steps.

Image 3 - iGIS import steps.

Image 4 - iGIS import steps.

Loading Russian/Cyrillic shapefiles

Several iGIS users are having trouble loading Russian language shapefiles. The trick is to get the right character set. The character set that we’ve had most luck with is ‘Eurpopean Languages – CP1251′ or ‘Windows Cyrillic – CP1251′. Not obvious but it works for at least some datasets.

Loading and using Raster Imagery

In iGIS v5, we have added the ability to load and view your own raster imagery on maps. Many of our users have asked for this functionality, and new features of iOS 4 have allowed us to do it. Working with raster imagery is CPU and memory intensive when done poorly, so we had to think of a process which avoids overloading the iPhone’s resources.

What we have chosen to do is pre-process imagery using an opensource tool, MapTiler. This tool converts many image formats into a series of tiles, similar to the Google map tiles. We then use these tiles in the app as an overlay on the map, allowing us to retain great map speed, since the app doesn’t have to re-project to re-process any imagery. We’re very happy with the results, and hope that you will be too.

Several steps are involved in getting your imagery onto the app, however once you have been through the process a first time, you should find these steps simple to replicate and well worth the effort.

  1. Install the MapTiler software on your PC or Mac – only needed the first time.
  2. Re-project and tile your maps using MapTiler.
  3. Zip up the resulting imagery directory.
  4. Copy the zip file to the iPhone using our importer or via USB (we’ve got USB importing in V5 too).
  5. Add the layer to the map.

To install MapTiler, please download from maptiler.org, and follow the instructions on the web site to install.

Once you have the software installed on your Mac or PC. Follow the wizard interface. I’ve provided the settings that I’ve used below.

Chose the Google Map compatible tiles – that’s what we’re using.

Choose the file that you wish to convert.

If your imagery is geo-referenced you should see projection information in this screen. Otherwise you may have to define the geo-referencing information yourself using the ‘Georeference’ button.

The Zoom Levels are automatically calculated, however you may have to zoom the may in or out to see the imagery. You can always reduce the minimum or increase the maximum zoom to see the imagery at more scales.

PNG produces the best results, but you may want to try JPEG if space is an issue, however you may end up with black borders around the imagery.

Choose a directory where the resulting files will be created.

Select Google Maps here. Others could be chosen too. This helps when testing.

Select the defaults here.

Press Render to start creating image tiles.

Once the rendering is complete, which may take a long time depending on the size of your imagery, it is a good idea to test the results. Click on the directory hyperlink to go the tile directory.

You will see that a directory has been created with several sub-directories. Have a look at the images in the directories to see what the tiler has done.

Don’t delete tilemapresource.xml, this is the file we use in iGIS.

Click on googlemaps.html to test out whether MapTiler did it’s job. You may need to zoom in or out to see the imagery on the map.

You need to zip or compress the directory that Map Tiler created. On a Mac use Compress on a PC you can use a free zip utility, like 7 Zip.

Start iTunes with your iPhone connected, and bring up the File Sharing section under the Apps tab on your device. See Help on Import for more information. Add the zip file you created and this will automatically sync to the iPhone.

Go into Import mode on your iPhone and the imagery will appear.

Select your image and press Import.

Now edit your Project settings and choose Add Layer. Select the Imagery layer type.

Add the image that you have just created.

Go to your project, pan and zoom to your imagery in the map. Hopefully you see the imagery perfectly aligned to your other data.

Note: The project extent button will not automatically zoom to image bounds. You will have to manually pan and zoom. We’ll fix this in an update.

I hope that you’ve been able to follow this tutorial. Please contact us if you have any queries and I hope that you enjoy using iGIS with your own imagery.

Andrew

www.maptiler.org

iGIS support for MapInfo Professional Users

Whilst iGIS currently only supports the import and export of spatial data in ESRI’s shapefile format, MapInfo Professional users do not need to miss out on all the fun, as they can easily utilise their softwares built in Universal Translator tool functionality to convert MapInfo TAB datasets to and from ESRI Shapefile datasets.

Support for conversion from MapInfo TAB files to ESRI Shapefiles;

Support for conversion from ESRI Shapefiles to MapInfo TAB files;

Custom Data Entry Forms

With iGIS you are able to design your own customized data entry forms, making data entry so much easier. What you can do with customized forms is:

  • rename form fields to be more readable,
  • set default values for fields,
  • add a help prompt,
  • use a date/time picker,
  • use code lists to select from a set of values with readable text

We’ll be adding new features over time to make data entry on iGIS as easy as it can be.

To start using customized forms, you will need at least version 4.0.3 of iGIS. You can check that by touching the Info button.

You define the format of the data entry form in an XML file, which is imported along with the data. This file is of type .glc and have the same name as the shapefile.

T
he .glc file defines information for each shapefile attribute so that a nice data entry form can be produced.

To start using customized forms, we recommend that you follow the following steps:

  • Step 1. Download the below linked sample glc shapefile data and become familiar with the format by; investigating the file in a text editor, importing it into iGIS, editing the shapefile in iGIS.
  • Step 2. Use the generate .glc file tool on the WiFi import menu to create a *.glc template for your own shapefile data.
  • Step 3. Edit your iGIS created *.glc template file with a text editor to add lookup code lists. Use the sample *.glc file from step 1 as a syntax reference.
  • Step 4. Import your shapefile into iGIS with your *.glc file, and begin editing your data with codelists.

Sample Form

We’ve produced a sample .glc file which is available here; FieldPoints2.zip

Use these samples to create your own customized forms. The sample data entry form is:

 

Generating .glc Files

You can generate a .glc file in the WiFi import screen, by selecting a shapefile, then pressing the Generate GLC file tool.

We recommend that you download the sample .glc file and shapefile and import these into a blank project to start using custom data entry forms. You can then generate your own .glc files based on your data.

Further Information

What field types are supported for iGIS *.glc files?

A full listing of supported field types can be found here; All supported field types

Readable Names

Instead of seeing the shapefile names, which can be truncated, you can show a readable name by using readable-name=”Nice Name”.

Identifiers

You can define an attribute as a unique identifier. this will usually be a number, denoted by the data-type of ‘N’. Set the field-type of ‘AutoIncrement’ to automatically produce the next highest number.

<Attribute column=”Id” readable-name=”Identifier”>
<Value data-type=”N” length=”6″>
<field-type>AutoIncrement</field-type>…

Code Lists

Use code lists to show readable values instead of codes in your forms. For example, the code list below will show ‘Small’ instead of ’1′ in the form. Note that this code list has a name, in this case ‘SizeCodes’, which will be used by the attributes.

<CodeList name="SizeCodes" type="N" length="1">
   <value code="1">Small</value>
   <value code="2">Medium</value>
   <value code="3">Large</value>
</CodeList>

To use a code list, in the attribute set the field-type to ‘CodeList’ and the field-param to the code list name.

<Attribute column="ShortInt" readable-name="Size">

<Value data-type="N" length="4">

<field-type>CodeList</field-type>

<field-param>SizeCodes</field-param> ...

Default Values and Prompts

For text and number fields, use default to set a default value for the field. If you don’t set a default, you can set a prompt for the field, to aid data entry.

You can’t use both default values and prompts. Default values don’t work with codelists.

Dates

As the date type in shapefiles only hold dates, not times, we recommend that you use a text field to hold dates, which contains both dates and times. Use at least a 25 character field with field-type of ‘Date’. Setting the default value to current will mean that the timestamp is autopopulated when the attribute edit window is invoked in the App.


<Attribute column="Timestamp" readable-name="Timestamp">

<Value data-type="C" length="25">

<field-type>Date</field-type>

<default>current</default>

</Value> ...

Can I load the shapefiles I export from iGIS into Google Earth Pro?

Yes, however Google Earth pro will only allow you to import shapefiles if they contain an associated projection file (*.prj) 

The current version of iGIS does not read or write shapefile *.prj files so you will need to create these with a third-party product or manually with a text editor and the relevant WKT representation text.

For help in discovering your relevant WKT representation text, see the linked site in the below article;
Which EPSG code relates to the projection of my shapefile data?.

Read and write functionality for shapefile projection files may be included in a future iGIS release.

Why does the iGIS import page not fully load in my internet browser?

The iGIS import page requires Java Applet functionality to be correctly enabled and configured in the web browser you are using.

Please visit the below java.com applet test page to ensure that Java is working correctly;

 http://www.java.com/en/download/help/testvm.xml

 If the applet does not display properly the page describes additional steps to work through.

 If the applet at the page does displays correctly it will return your Java configuration details.

The world's first and leading iOS GIS