You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to create GeoJSON file from a SQL Server table with the geographies of the world countries, I get the following error on both the Russian Federation and Antarctica:
Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Data.Entity.SqlServer.SqlSpatialServices.GetSpatialTypeName(DbGeometry geometryValue) at alatas.GeoJSON4EntityFramework.GeoJsonGeometry._Closure$__13-0._Lambda$__0(Type t) in C:\a\1\s\GeoJSON4EntityFramework\Base\GeoJsonGeometry.vb:line 31 at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source) at alatas.GeoJSON4EntityFramework.GeoJsonGeometry.FromDbGeometry(DbGeometry inp, Boolean withBoundingBox) in C:\a\1\s\GeoJSON4EntityFramework\Base\GeoJsonGeometry.vb:line 30 at alatas.GeoJSON4EntityFramework.Feature.FromDbGeography(DbGeography inp, Boolean withBoundingBox) in C:\a\1\s\GeoJSON4EntityFramework\Elements\Feature.vb:line 50
They are not the biggest geographies I have in the DB because USA, Canada, and Australia, for example, are much bigger in terms of the number of polygons and points.
I've tried to reduce their size, but I still get the error.
The geographies are valid and made only by Polygons (they are MULTIPOLYGON type)
I've tried also to convert the Geography field to a Geometry, but I get always the same error: Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Data.Entity.SqlServer.SqlSpatialServices.GetSpatialTypeName(DbGeometry geometryValue) at alatas.GeoJSON4EntityFramework.GeoJsonGeometry._Closure$__13-0._Lambda$__0(Type t) in C:\a\1\s\GeoJSON4EntityFramework\Base\GeoJsonGeometry.vb:line 31 at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source) at alatas.GeoJSON4EntityFramework.GeoJsonGeometry.FromDbGeometry(DbGeometry inp, Boolean withBoundingBox) in C:\a\1\s\GeoJSON4EntityFramework\Base\GeoJsonGeometry.vb:line 30 at alatas.GeoJSON4EntityFramework.Feature.FromDbGeometry(DbGeometry inp, Boolean withBoundingBox) in C:\a\1\s\GeoJSON4EntityFramework\Elements\Feature.vb:line 46
What could be the cause?
The text was updated successfully, but these errors were encountered:
When I try to create GeoJSON file from a SQL Server table with the geographies of the world countries, I get the following error on both the Russian Federation and Antarctica:
Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Data.Entity.SqlServer.SqlSpatialServices.GetSpatialTypeName(DbGeometry geometryValue) at alatas.GeoJSON4EntityFramework.GeoJsonGeometry._Closure$__13-0._Lambda$__0(Type t) in C:\a\1\s\GeoJSON4EntityFramework\Base\GeoJsonGeometry.vb:line 31 at System.Linq.Enumerable.WhereSelectArrayIterator
2.MoveNext()at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable
1 source) at alatas.GeoJSON4EntityFramework.GeoJsonGeometry.FromDbGeometry(DbGeometry inp, Boolean withBoundingBox) in C:\a\1\s\GeoJSON4EntityFramework\Base\GeoJsonGeometry.vb:line 30 at alatas.GeoJSON4EntityFramework.Feature.FromDbGeography(DbGeography inp, Boolean withBoundingBox) in C:\a\1\s\GeoJSON4EntityFramework\Elements\Feature.vb:line 50
They are not the biggest geographies I have in the DB because USA, Canada, and Australia, for example, are much bigger in terms of the number of polygons and points.
I've tried to reduce their size, but I still get the error.
The geographies are valid and made only by Polygons (they are MULTIPOLYGON type)
I've tried also to convert the Geography field to a Geometry, but I get always the same error:
Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Data.Entity.SqlServer.SqlSpatialServices.GetSpatialTypeName(DbGeometry geometryValue) at alatas.GeoJSON4EntityFramework.GeoJsonGeometry._Closure$__13-0._Lambda$__0(Type t) in C:\a\1\s\GeoJSON4EntityFramework\Base\GeoJsonGeometry.vb:line 31 at System.Linq.Enumerable.WhereSelectArrayIterator
2.MoveNext()at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable
1 source) at alatas.GeoJSON4EntityFramework.GeoJsonGeometry.FromDbGeometry(DbGeometry inp, Boolean withBoundingBox) in C:\a\1\s\GeoJSON4EntityFramework\Base\GeoJsonGeometry.vb:line 30 at alatas.GeoJSON4EntityFramework.Feature.FromDbGeometry(DbGeometry inp, Boolean withBoundingBox) in C:\a\1\s\GeoJSON4EntityFramework\Elements\Feature.vb:line 46
What could be the cause?
The text was updated successfully, but these errors were encountered: