Example #1
0
        public IShape ReadShape(string shape, SpatialUnits?unitOverride = null)
        {
            shape = _shapeStringConverter.ConvertToWKT(shape);
            shape = WktSanitizer.Sanitize(shape);

            // Circle translation should be done last, before passing to NtsShapeReadWriter
            if (_options.Type == SpatialFieldType.Geography)
            {
                shape = TranslateCircleRadius(shape, unitOverride ?? _options.Units);
            }

#pragma warning disable 612
            return(_context.ReadShape(shape));

#pragma warning restore 612
        }