hi all i am trying to insert a point by wfs insert method. my request is like
<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/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd http://www.openplans.org/topp http://localhost:8080/geoserver/wfs/DescribeFeatureType?typename=topp:names”>
wfs:Insert
topp:names
topp:the_geom
<gml:Point srsName=“http://www.opengis.net/gml/srs/epsg.xml#4326”>
<gml:coordinates decimal=“.” cs=“,” ts=" ">
3067306.8, 629596.371196683
</gml:coordinates>
</gml:Point>
</topp:the_geom>
topp:nametestname</topp:name>
</topp:names>
</wfs:Insert>
</wfs:Transaction>
and i get error
−
org.geotools.referencing.operation.projection.PointOutsideEnvelopeException: 3067306.8 outside of (-180.0,180.0)
Parsing failed for Point: org.geoserver.wfs.WFSException: org.geotools.referencing.operation.projection.PointOutsideEnvelopeException: 3067306.8 outside of (-180.0,180.0)
org.geotools.referencing.operation.projection.PointOutsideEnvelopeException: 3067306.8 outside of (-180.0,180.0)
3067306.8 outside of (-180.0,180.0)
but when i give
<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/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd http://www.openplans.org/topp http://localhost:8080/geoserver/wfs/DescribeFeatureType?typename=topp:names”>
wfs:Insert
topp:names
topp:the_geom
<gml:Point srsName=“http://www.opengis.net/gml/srs/epsg.xml#4326”>
<gml:coordinates decimal=“.” cs=“,” ts=" ">
2.0,1.0
</gml:coordinates>
</gml:Point>
</topp:the_geom>
topp:nametestname</topp:name>
</topp:names>
</wfs:Insert>
</wfs:Transaction>
then it is ok. how can i insert points like ‘3067306.8, 629596.371196683’ ? thanks in advance