Using GeoStream with .NET |
To use GeoStream in your .NET application, follow our tutorials about using GeoBase, and place the following appropriate code before you start using GeoBase in your application (for example, at the beginning of static void main()).
Repository.Default = new GeoStreamRepository("http://serverName");
To switch between Local and GeoStream modes set the Repository to the appropriate type.
For local mode:
Repository.Default = new SimpleRepository("fileName.gbfs");
For GeoStream mode:
Repository.Default = new GeoStreamRepository("http://serverName");
As an example, using the local GeoStream server:
Repository.Default = new GeoStreamRepository("http://localhost/GeoStream");