forked from SharpMap/SharpMap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExampleCodeSession.cs
More file actions
22 lines (21 loc) · 872 Bytes
/
ExampleCodeSession.cs
File metadata and controls
22 lines (21 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
namespace ExampleCodeSnippets
{
[NUnit.Framework.SetUpFixture]
public class ExampleCodeSession
{
[NUnit.Framework.SetUp]
public void SetUp()
{
var gss = new NetTopologySuite.NtsGeometryServices();
var css = new SharpMap.CoordinateSystems.CoordinateSystemServices(
new ProjNet.CoordinateSystems.CoordinateSystemFactory(),
new ProjNet.CoordinateSystems.Transformations.CoordinateTransformationFactory(),
SharpMap.Converters.WellKnownText.SpatialReference.GetAllReferenceSystems());
GeoAPI.GeometryServiceProvider.Instance = gss;
SharpMap.Session.Instance
.SetGeometryServices(gss)
.SetCoordinateSystemServices(css)
.SetCoordinateSystemRepository(css);
}
}
}