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

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

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