Hi,

The problem is that you are trying to insert coordinates in a projected 
coordinate system, but specifying "4326", a geographic coordinate system.

So you need to change the srsName attribute to refection the srs of your 
data.

-Justin

bishal shrestha wrote:
> 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:name>testname</topp:name>
>     </topp:names>
>   </wfs:Insert>
> </wfs:Transaction>
> 
> 
> and i get error
> <ServiceExceptionReport version="1.2.0" 
> xsi:schemaLocation="http://www.opengis.net/ogc 
> http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd";>
> −
> <ServiceException code="InvalidParameterValue">
> 
>       
> 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)
> </ServiceException>
> </ServiceExceptionReport>
> 
> 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:name>testname</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
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Geoserver-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel


-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to