<commit_before>[![] (http://www.compass.ie/wordpress/wp-content/uploads/Compass-logo-Final-300x104.png)](http://www.compass.ie)

# Compass Tessera

[**Visit the demo website.**](http://w08-iis.compass.ie/tesserademo/)  

Compass Tessera (as in [Tessera](http://en.wikipedia.org/wiki/Tessera)) is a simple shapefile tile engine written in C#.
The purpose of the library is to provide an easy way to render a shapefile into tiles that can be used as an overlay on Google Maps or similar services.
It's currently being used by 30 Local Authorities in Ireland as part of the [PMS project](http://www.compass.ie/pavement-management-system/) to display the official road network on an Android application operating offline.

## Usage example

```
TinyIoC.TinyIoCContainer.Current.AutoRegister();
TinyIoC.TinyIoCContainer.Current.Register<TileGenerator>().AsSingleton();
var tileGenerator = TinyIoC.TinyIoCContainer.Current.Resolve<TileGenerator>();
tileGenerator.Setup(HostingEnvironment.MapPath("~/"), "roads.shp");
```<commit_msg>updated demo url to azure<commit_after>[![] (http://www.compass.ie/wordpress/wp-content/uploads/Compass-logo-Final-300x104.png)](http://www.compass.ie)

# Compass Tessera

[**Visit the demo website.**](http://compasstessera.azurewebsites.net/)  

Compass Tessera (as in [Tessera](http://en.wikipedia.org/wiki/Tessera)) is a simple shapefile tile engine written in C#.
The purpose of the library is to provide an easy way to render a shapefile into tiles that can be used as an overlay on Google Maps or similar services.
It's currently being used by 30 Local Authorities in Ireland as part of the [PMS project](http://www.compass.ie/pavement-management-system/) to display the official road network on an Android application operating offline.

## Usage example

```
TinyIoC.TinyIoCContainer.Current.AutoRegister();
TinyIoC.TinyIoCContainer.Current.Register<TileGenerator>().AsSingleton();
var tileGenerator = TinyIoC.TinyIoCContainer.Current.Resolve<TileGenerator>();
tileGenerator.Setup(HostingEnvironment.MapPath("~/"), "roads.shp");
```
{'fraction_non_alphanumeric': 0.12391093901258471, 'fraction_numerical': 0.008712487899322363, 'mean_word_length': 5.561904761904762, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '31841', 'n_tokens_mistral': 661, 'n_tokens_neox': 609, 'n_words': 182}