dear list:
  I met a problem when i use WFS_t  to insert a polygon into postgreSQL after i 
update geoserver 1.7.5 to geoserver 2.0.X
      here is the xml  i use:
<wfs:Transaction service="WFS" version="1.0.0"
   xmlns:wfs="http://www.opengis.net/wfs";
   xmlns:topp="http://www.openplans.org/topp";
   xmlns:gml="http://www.opengis.net/gml";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   
xsi:schemaLocation="http://www.opengis.net/wfshttp://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsdhttp://www.openplans.org/topphttp://localhost:8080/geoserver/wfs/DescribeFeatureType?typename=topp:landuse";>
 <wfs:Insert>  
 <topp:landuse> 
 <topp:name>qwe</topp:name>   
 <topp:landtype>11</topp:landtype>   
 <topp:extension>0</topp:extension>  
 <topp:updatetime>2011-06-10T18:33:00+08:00</topp:updatetime>   
  <topp:the_geom>  
  <gml:MultiPolygon srsName="http://www.opengis.net/gml/srs/epsg.xml#4326";> 
  <gml:polygonMember> 
   <gml:Polygon> 
    <gml:outerBoundaryIs> 
     <gml:LinearRing> 
     <gml:coordinates xmlns:gml="http://www.opengis.net/gml";  decimal="." 
cs="," ts=" "  >
  101.68189629945225,26.56970831418776 101.68204720261398,26.562917671909524 
101.68793242592178,26.56653934779125 101.68189629945225,26.56970831418776
     </gml:coordinates>  
     </gml:LinearRing> 
     </gml:outerBoundaryIs> 
    </gml:Polygon> 
   </gml:polygonMember> 
   </gml:MultiPolygon> 
  </topp:the_geom>  
  </topp:landuse>  
</wfs:Insert> 
 </wfs:Transaction>

and the WFS_TransactionResponse  shows 
:<wfs:InsertResult><wfs:TranactionResult><wfs:Status><wfs:FAILED/>
</wfs:status><wfs:Message>Error performing insert:Error inserting 
features</wfs:message>
 
BUT  when i pasted  the same xml in the geoserver demos requests to sent the 
same request,
the WFS_TransactionResponse  shows :
- <wfs:InsertResult>
  <ogc:FeatureId fid="landuse.206" />
  </wfs:InsertResult>
- <wfs:TransactionResult>
- <wfs:Status>
  <wfs:SUCCESS />
  </wfs:Status>
  </wfs:TransactionResult>
  </wfs:WFS_TransactionResponse>
 
then i checked it in the postgreSQL:
 <topp:name>qwe</topp:name>   
  <topp:landtype>11</topp:landtype>   
  <topp:extension>0</topp:extension>   
  <topp:updatetime>2011-06-10T18:33:00+08:00</topp:updatetime>
these four Columns do have the correct value,
but there is nothing in the the_geom columns!!!
 
by the  way: my application with this wfs_t request do  works in geoserver 
1.7.5  
and i want to konw how to use the same request in geoserver 2.0.2 or is there 
anything wrong whit my xml?
 
any suggestions are welcome!
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to