Beispiel #1
0
 public BoundingBox3DTests()
 {
     _fixture = new Fixture();
     GeometryServiceProvider.SetInstanceIfNotAlreadySetDirectly(
         new NtsGeometryServices(
             GeometryConfiguration.GeometryFactory.CoordinateSequenceFactory,
             GeometryConfiguration.GeometryFactory.PrecisionModel,
             GeometryConfiguration.GeometryFactory.SRID
             )
         );
 }
 public void OneTimeSetUp()
 {
     GeometryServiceProvider.SetInstanceIfNotAlreadySetDirectly(NtsGeometryServices.Instance);
 }
Beispiel #3
0
 // this is a method with a special name in a class with a special name; we don't call it
 // directly. Instead, ModuleInit.Fody recognizes this and adds a module initializer that
 // calls this method when NTS is loaded, before anything else of ours can run.
 public static void Initialize() => GeometryServiceProvider.SetInstanceIfNotAlreadySetDirectly(Gisoft.NetTopologySuite.NtsGeometryServices.Instance);
 static AbstractStdMapHandler()
 {
     GeometryServiceProvider.SetInstanceIfNotAlreadySetDirectly(NtsGeometryServices.Instance);
 }
Beispiel #5
0
 public BuildingsController()
 {
     GeometryServiceProvider.SetInstanceIfNotAlreadySetDirectly(new NtsGeometryServices());
 }