Hi Users,

First thank you for all helping with issues. 

I have issue with saving polygon. Iam using Open layers,  GeoServer and PostGis 
database.

When I click Save, OL sending below xml in POST

<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:ewfspolygons xmlns:feature="http://localhost:7080/geoserver/ewfs";>
<feature:geom>
<gml:Polygon xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:32631";>
<gml:exterior>
<gml:LinearRing>
<gml:posList>-73.970192845691 40.799048013099 -73.969630677417 40.799301297706 
-73.96921059563 
40.798955347999 -73.969704809497 40.798448778785 -73.970192845691 
40.799048013099</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</feature:geom>
<feature:map_id>1</feature:map_id>
<feature:feature_type>POLYGON</feature:feature_type>
<feature:feature_label>Block</feature:feature_label>
<feature:color>#0000FF</feature:color>
</feature:ewfspolygons>
</wfs:Insert>
</wfs:Transaction>


And in GeoServer, the geom data is empty,

        feature[0] = 
SimpleFeatureImpl:ewfspolygons=[SimpleFeatureImpl.Attribute: id<id 
id=fid-108616e_142716e06bc_-7fb9>=0, SimpleFeatureImpl.Attribute: map_id<map_id 
id=fid-108616e_142716e06bc_-7fb9>=1, SimpleFeatureImpl.Attribute: 
feature_type<feature_type id=fid-108616e_142716e06bc_-7fb9>=POLYGON, 
SimpleFeatureImpl.Attribute: feature_label<feature_label 
id=fid-108616e_142716e06bc_-7fb9>=Block, SimpleFeatureImpl.Attribute: geom<geom 
id=fid-108616e_142716e06bc_-7fb9>=, SimpleFeatureImpl.Attribute: color<color 
id=fid-108616e_142716e06bc_-7fb9>=#0000FF]
        idgen = GenerateNew
        inputFormat = text/xml; subtype=gml/3.1.1
    releaseAction = ALL
2013-11-20 12:30:10,689 ERROR [geoserver.ows] - 
org.geoserver.wfs.WFSException: Error performing insert: java.lang.String 
cannot be cast to com.vividsolutions.jts.geom.Geometry

Where it is wrong, please suggest?  Thank you in advance.

Br. Giri
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to