Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 从带有接地字段的Postresql数据库加载数据集_C#_Windows_Npgsql - Fatal编程技术网

C# 从带有接地字段的Postresql数据库加载数据集

C# 从带有接地字段的Postresql数据库加载数据集,c#,windows,npgsql,C#,Windows,Npgsql,我正在使用C#和Npgsql访问Postresql数据库 I can load tables into a dataset using Dataset loaded_data; loaded_data.Clear(); string query = "SELECT * FROM postretable"; NpgsqlDataAdapter data_adapt = new NpgsqlDataAdapter(query,connection); data_adapt.Fill(l

我正在使用C#和Npgsql访问Postresql数据库

 I can load tables into a dataset using

 Dataset loaded_data;
 loaded_data.Clear();
 string query = "SELECT * FROM postretable";
 NpgsqlDataAdapter data_adapt = new NpgsqlDataAdapter(query,connection);
 data_adapt.Fill(loaded_data);

 However I get an error 
 "42883: no binary output function available for type earth" 
 when there are columns of type EARTH in the table. 
 Is there a way to provide a binary output function for EARTH ?

谢谢

地球类型似乎取决于立方体类型,它没有二进制输入/输出函数,因此Npgsql目前不支持。这是扩展中的一个PostgreSQL端限制,不幸的是,您不能对此做太多。看,这和立方体是一样的

但是,Npgsql 4.0.0版本(目前处于预览/rc中)通过NetTopologySuite.NET库包含对PostGIS(PostgreSQL空间扩展)的本机支持。这将为进行此类空间计算提供更完整、更准确的方法,并得到充分支持