Inheritance: ShapeReadWriter
Beispiel #1
0
		static SpatialIndex()
		{
			Context = new NtsSpatialContext(true);
			GeometryServiceProvider.Instance = new NtsGeometryServices();

			shapeReadWriter = new NtsShapeReadWriter(Context);
		}
Beispiel #2
0
		static SpatialIndex()
		{
			Context = NtsSpatialContext.GEO_KM;
			GeometryServiceProvider.Instance = new NtsGeometryServices();

			ShapeReadWriter = new NtsShapeReadWriter(Context);
		}
 private NtsShapeReadWriter CreateNtsShapeReadWriter(SpatialOptions opt, NtsSpatialContext ntsContext)
 {
     if (opt.Type == SpatialFieldType.Cartesian)
         return new NtsShapeReadWriter(ntsContext, false);
     return geoShapeReadWriter ?? (geoShapeReadWriter = new NtsShapeReadWriter(ntsContext, false));
 }
 public ShapeStringReadWriter(SpatialOptions options, NtsSpatialContext context)
 {
     this.options = options;
     this.ntsShapeReadWriter = CreateNtsShapeReadWriter(options, context);
     this.shapeStringConverter = new ShapeStringConverter(options);
 }