diff --git a/samples/features/json/geo-json/dotnet-states-openlayers2/sql-scripts/GetAllStates.sql b/samples/features/json/geo-json/dotnet-states-openlayers2/sql-scripts/GetAllStates.sql index a82ef19f..0ed855da 100644 --- a/samples/features/json/geo-json/dotnet-states-openlayers2/sql-scripts/GetAllStates.sql +++ b/samples/features/json/geo-json/dotnet-states-openlayers2/sql-scripts/GetAllStates.sql @@ -3,7 +3,7 @@ select ( select 'Feature' as [type], - [Border].AsGeoJSON() as [geometry], + dbo.AsGeoJSON([Border]) as [geometry], [StateProvinceName] as [properties.name], [StateProvinceCode] as [properties.code], [Border].STArea() as [properties.area], diff --git a/samples/features/json/geo-json/dotnet-states-openlayers2/sql-scripts/GetCities.sql b/samples/features/json/geo-json/dotnet-states-openlayers2/sql-scripts/GetCities.sql index 9e04d832..f1a600a8 100644 --- a/samples/features/json/geo-json/dotnet-states-openlayers2/sql-scripts/GetCities.sql +++ b/samples/features/json/geo-json/dotnet-states-openlayers2/sql-scripts/GetCities.sql @@ -3,7 +3,7 @@ select ( select 'Feature' as [type], - [Location].AsGeoJSON() as [geometry], + dbo.AsGeoJSON([Location]) as [geometry], [CityName] as [properties.name], ac.LatestRecordedPopulation as [properties.population] from Application.Cities ac, Application.StateProvinces asp