-
Notifications
You must be signed in to change notification settings - Fork 861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
批量插入含几何属性的实体集到postgis,报错geometry不存在 #369
Comments
1、DBConnConfiguration.pgFreeSql.Insert(listNavaid).NoneParameter() .ExecuteAffrows(); |
经过测试 demo LegacyPostgis 设置 srid 会所述的错误,经过增加 NetTopologySuite 类型映射后测试正常(可以保存 srid 数据)。 目前 FreeSql.Provider.PostgreSQL v1.7.0-preview0712 版本同时保留两种 gis 类型映射,可自行选择。 |
Demo.zip
一、错误描述:
1、将实体集合(含PostgisGeometry类型属性)批量插入Postgis空间表时,有时能成功,有时报错,不稳定。
2、查询命令也是有时成功,有时报错。
Postgis已扩展,geodata库.public架构.Navaid表,search_path="$User",public。关于Geometry列、geometry _columns视图的增删改查权限都已开启。
二、环境 :
.Net Core 3.1
Postgresql 9.6
Postgis 2.3
FreeSql 1.6.0
Npgsql 4.1.3
目前能想到的原因有两个
1、数据库关于geometry列的权限问题。
2、Npgsql.LegacyPostgis对geometry类型的映射问题。
The text was updated successfully, but these errors were encountered: