Exemplo n.º 1
0
 public GeometryTransformerInputFormatter(
     IGeometryTransformerFactory factory,
     int targetCrs)
 {
     _factory   = factory;
     _targetCrs = targetCrs;
 }
Exemplo n.º 2
0
 public GeometryTransformationMiddleware(
     FieldDelegate next,
     IGeometryTransformerFactory factory,
     int defaultSrid)
 {
     _next        = next ?? throw new ArgumentNullException(nameof(next));
     _factory     = factory ?? throw new ArgumentNullException(nameof(factory));
     _defaultSrid = defaultSrid;
 }
Exemplo n.º 3
0
        /// <inheritdoc />
        protected override void Complete(IConventionContext context)
        {
            if (Definition is null)
            {
                throw new InvalidOperationException();
            }

            DefaultSrid        = Definition.DefaultSrid;
            TransformerFactory = new GeometryTransformerFactory(Definition.CoordinateSystems);
        }