iGIS 8.2.0 changes

This update of iGIS contains bug fixes as well as some new features. These include:

This update is not yet on the App Store and will be there shortly (as of 27-6-16)

Width and Colour Attributes of Polygon Outlines

As of iGIS 8.2.0, there is now an option to set the width of a polygon’s outline. There is also a method to set a colour attribute; similar to how a polygon’s fill colour can be assigned an attribute. This post will explain how to do both.

Outline Width

To set the outline width, go to project settings and select the layer you wish to edit. It must be a polygon layer. Scroll down and select “Style/Color”. You will now see a slider for the “Outline Width”. Sliding this will control how thick the polygon’s outline appears on the map. Note: the outline width on the style sample boxes will not change. 

OutlineWidthSlider

Outline Colour Attributes

Go into project settings and navigate to the polygon layer you wish to edit. Now if you select the “Color Attributes”, there are two sections in the table. The first one is the Fill Colour Attribute and the second is the Outline Colour Attribute. To select an outline attribute, scroll down until you get to the outline section and select the attribute you wish to use to colour the outlines of your polygons.

Screen Shot 2016-06-27 at 12.27.39 PM

Label Colour

As of iGIS 8.2.0, you can now choose a colour for a layer’s labels. This makes it easier to know which labels belong to a layer, especially if there are many layers on screen. To choose your label colour, go into project settings, select a layer and scroll down until you get to “Label Color”

LabelColourAndAttrib

Selecting this will bring you to the colour sliders:

Screen Shot 2016-06-27 at 12.01.37 PM

By default, Auto Colour is on. Auto Colour changes between white and black labels depending on the map type (satellite, hybrid, map, etc.). You must switch this off if you want a custom label colour.

Scale Dependant Rendering

As of iGIS 8.2.0, there is now a new way zoom scaling is handled for layers. These changes can be used to dramatically improve performance in your project. For example, you might display low detailed polygons when zoomed out and switch to a highly detailed layer when zooming into the map.

To see the new changes, go into project settings and select a layer. Scrolling down, you should now see two sliders:

AppearsAtDisappearsAtSliders

The “Appears At” slider controls the maximum zoom a layer is visible at. The “Disappears At” slider controls the minimum zoom a layer is visible at. In the screenshot above, the BuildingsPolygon layer will be shown from a state level to 150m. If the user zooms in closer than 150m or zooms out further than the state level, the layer will disappear.

Make a Field Mandatory

From iGIS 8.2.0 onwards, there is now an ability to make feature attribute fields mandatory. This is done via a layer’s .glc file. Here is an example of a working .glc with mandatory fields:

example_glc.zip

The mandatory parameter is passed in the header of an attribute or codelist. In other words, an attribute header that is mandatory will look something like this:

<Attribute column=”asset_id” readable-name=”Asset_ID” mandatory=”YES”>

and a codelist that is mandatory looks something like this:

<CodeList name=”TrueFalseCodes” type=”C” length=”1″ mandatory=”true”>

Notice how it doesn’t matter if you pass “YES” or “true”, iGIS will interpret it as mandatory. In fact, you can use YES, yes, TRUE, true,  1, y or Y to set mandatory.

If there is no mandatory parameter passed, the default is NO. 

If you like, you may explicitly set mandatory to NO, no, false, FALSE, n, N or 0 to ensure the attribute or codelist is not mandatory.

How do I create a .zip file?

iGIS currently uses .zip files to import and export data.

A zip file  is a compressed folder that saves on space, allowing faster transfers. A zip can be created naturally on modern desktop operating system.  Usually this is done by selecting the items you want to zip, right clicking on them and selecting the option along the lines of “compress” or “send to>compressed (zipped) folder”.

 

For iGIS to use spatial data, the .dbf, .shp and .shx must not be contained in a subfolder within the zip.

Clashing .glc files?

If you have had trouble with your projects using the wrong .glc files, it may be because you have CodeLists that are repeated across multiple .glc files.

It is necessary to ensure all names in the CodeList are unique.

For example, if you have two projects with unique .glc files, that contain the ‘same’ CodeLists (with unique values).

In this case, the .glc will associate with the wrong projects.

To remedy, provide each CodeList name with a unique identifier.

 

 

Retrieving data from iGIS

If you need to recover the data stored in iGIS you can retrieve it from your iPhone or iPad.

iGIS uses two sqlite databases; spatial-store.sqlite and Projects.sqlite. If you retrieve these files they can be used as a permanent backup or sent to Geometry for fault finding purposes.

Get these database files off your device using third party software like iFunBox  http://www.i-funbox.com/en_download.html

Using iFunBox, with your iPhone/iPad connected to your computer, open iTunes File Sharing:

Select iGIS (or iGIS HD) and select Open Sandbox

iFunBox2

Select the .database directory and copy both the Projects.sqlite and spatial-store.sqlite to your PC

iFunBox3

FAQ – I can’t import my shapefile. ‘Shapefile loading error: near …’

There was an error loading shapefile:
Shapefile loading error: near “-“:
Syntax error

iGIS does not recognise special characters in file names or column headings in the .dbf.
In this example, the import is erroring on the hyphen (-) in either the title of the file, or the column headings in the dbf.
By removing the hyphen, and using an underscore (_) instead, you can avoid this error and load your shapefile successfully.

 

Deleting the Cache manually (updated)

UPDATE: There is now a way to limit the image cache size. Go to iOS Settings>iGIS>Map Display and specify the number of tiles the application will cache.

In order to maintain high performance when panning around your map, iGIS creates a cache of the maptiles.

This cache grows over time, and while it is limited to 1000 maptiles (it will probably only ever reach 450MB), you may find that you need to regain some of that space for various reasons.

Currently, we do not have a feature within the app itself to clear the cache, however, you can do this manually by using the iExplore software.

Please follow these instructions in order to clear the cache.

Download iExplorer http://www.macroplant.com/iexplorer/ (or similar)

  1. Using iExplore, with your iPhone/iPad connected to your computer, navigate to: <*Your Device Name*>\Apps\iGIS\Library\Caches
iExplorer_and_Airmail

Directory Structure

2.  Delete the RMTileCache.db file

3.  Disconnect your device

4.  Run the application – the RMTileCache.db file will be recreated, and will gradually increase as you use iGIS.  You may need to repeat these steps again.

The world's first and leading iOS GIS