关于使用wfs向postgis数据库中写数据返回的异常

Franciswink 2012-06-12 11:06:57
在地图上画出一个点后,想把它的feature 保存到postgis数据库上。
我不是用官方那个例子画的,是掉的之前同事写好的接口
然后给feature.states设置为insert,并且给layer的协议设为了wfs
生成XML已经没有问题了
XML数据如下:

<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Insert>
<feature:g_sign xmlns:feature="https://trueline/gpsGis"><feature:the_geom>
<gml:Point xmlns:gml="http://www.opengis.ne/gml"srsName="EPSG:4326">
<gml:pos>138.94220358252 35.056418137769</gml:pos>
</gml:Point>
</feature:the_geom>
<feature:sign_type>itemTwo</feature:sign_type><feature:area_cd>100</feature:area_cd>
</feature:g_sign>
</wfs:Insert>
</wfs:Transaction>


然后给出了非法数据的异常,不知道是哪里的数据非法了- -

<?xml version="1.0" ?><ServiceExceptionReport version="1.2.0" xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.or/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd"> <ServiceException>
java.lang.IllegalArgumentException: java.lang.ClassCastException@1355faejava.lang.ClassCastException@1355fae
</ServiceException>
</ServiceExceptionReport>


跪求各位大神帮忙解决 T-T
...全文
198 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

2,154

社区成员

发帖
与我相关
我的任务
社区描述
它是一种特定的十分重要的空间信息系统。它是在计算机硬、软件系统支持下,对整个或部分地球表层(包括大气层)空间中的有关地理分布数据进行采集、储存、管理、运算、分析、显示和描述的技术系统。
社区管理员
  • 地理信息系统
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧