From 64c309a2e3c9af95ddc6abfec9d4d505eb4e0bd7 Mon Sep 17 00:00:00 2001 From: Thomas Ryan Date: Mon, 15 Jun 2020 11:48:43 -0700 Subject: [PATCH] Fix the CreatePoint() example (#2404) The Point.CreatePoint() method has two variants: public Point CreatePoint(CoordinateSequence coordinates); public Point CreatePoint(Coordinate coordinate); It does not support a variant that takes two decimals as described in this example. Visual Studio 2019 marks the current version of line 90 as an error. Rather those decimal values need to be wrapped in a Coordinate object that can be constructed from those values. I have updated line 90 to reflect this change. --- entity-framework/core/modeling/spatial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entity-framework/core/modeling/spatial.md b/entity-framework/core/modeling/spatial.md index feb7aaf3cf..3090d990d6 100644 --- a/entity-framework/core/modeling/spatial.md +++ b/entity-framework/core/modeling/spatial.md @@ -87,7 +87,7 @@ You can use constructors to create geometry objects; however, NTS recommends usi ``` csharp var geometryFactory = NtsGeometryServices.Instance.CreateGeometryFactory(srid: 4326); -var currentLocation = geometryFactory.CreatePoint(-122.121512, 47.6739882); +var currentLocation = geometryFactory.CreatePoint(new Coordinate(-122.121512, 47.6739882)); ``` > [!NOTE]