Due to changes to the API and data we are not currently supporting the Elgin System Connection. Please contact the Astun Support Portal if you require any further information.

This example assumes that the Elgin data is in PostgreSQL, with the connection information in an include file called datashare.inc. This is not entirely standard, but the important part here is the DATA string.

In this example we have included three different layer snippets for:

This example assumes that there are the following three manatw symbols "mat at work" in the MapServer symbols file: 

ImageImage NameSnippet for .sym fileImageImage NameSnippet for .sym file
manatw-B.png


SYMBOL
	NAME 'matatw-B'
	TYPE PIXMAP
	IMAGE 'images/matatw-B.png'
END


roadworks.png


SYMBOL
	NAME 'roadworks-red'
	TYPE PIXMAP
	IMAGE 'images/roadworks.png'
END


manatw-G.png


SYMBOL
	NAME 'matatw-G'
	TYPE PIXMAP
	IMAGE 'images/matatw-G.png'
END


roadworks_yellow.png


SYMBOL
	NAME 'roadworks-yellow'
	TYPE PIXMAP
	IMAGE 'images/roadworks_yellow.png'
END


manatw-F.png


SYMBOL
	NAME 'matatw-F'
	TYPE PIXMAP
	IMAGE 'images/matatw-F.png'
END


roadworks_orange.png


SYMBOL
	NAME 'roadworks-orange'
	TYPE PIXMAP
	IMAGE 'images/roadworks_orange.png'
END


We have also included some others if you should wish to use them. To configure iShare to use the attached symbols then you will need to:

For each Elgin Roadworks layer you wish to display you will need to add a LAYER entry into the .MAP file.

You may copy the following Snippets into your .MAP file using the Map Editor in Studio.

LAYER
	INCLUDE "datashare.inc"
	DATA "wkb_geometry from (select * from roadworks where impact = 'Delays possible') as foo using srid=27700 using unique ogc_fid"
	METADATA
		"qstring_validation_pattern" "."
	END
	NAME "roadworks_possible"
	STATUS OFF
	TYPE POINT
	UNITS METERS
	CLASS
		NAME "Delays possible"
		STYLE
			SYMBOL "manatw-F"
		END
	END
END


LAYER
	INCLUDE "datashare.inc"
	DATA "wkb_geometry from (select * from roadworks where impact = 'Delays unlikely') as foo using srid=27700 using unique ogc_fid"
	METADATA
		"qstring_validation_pattern" "."
	END
	NAME "roadworks_unlikely"
	STATUS OFF
	TYPE POINT
	UNITS METERS
	CLASS
		NAME "Delays unlikely"
		STYLE
			SYMBOL "manatw-B"
		END
	END
END


LAYER
	INCLUDE "datashare.inc"
	DATA "wkb_geometry from (select * from roadworks where impact = 'Delays likely') as foo using srid=27700 using unique ogc_fid"
	METADATA
		"qstring_validation_pattern" "."
	END
	NAME "roadworks_likely"
	STATUS OFF
	TYPE POINT
	UNITS METERS
	CLASS
		NAME "Delays likely"
		STYLE
			SYMBOL "manatw-G"
		END
	END
END