[OpenLayers-Users] how to save added collection in server side

杨华杰 yhjhoo at gmail.com
Wed Jan 30 21:19:34 PST 2013


And how to "change the logging to GeoTools Developer logging", can you give
me some guide. The log which I provide is getting from geoserver


On Thu, Jan 31, 2013 at 1:17 PM, 杨华杰 <yhjhoo at gmail.com> wrote:

> I checked the xml passed to geoserver, there is no suspect at all.
>
>
> Here is it:
>
> http://caas.sg/geoserver/wfs/DescribeFeatureType&version=1.1.0&typename=CAAS:feature"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <wfs:Insert>
> <feature:feature xmlns:feature="http://caas.sg">
> <feature:the_geom>
> <gml:GeometryCollection xmlns:gml="http://www.opengis.net/gml"
> srsName="EPSG:4326">
> <gml:geometryMember>
> <gml:Point srsName="EPSG:4326"><gml:pos>92 -12</gml:pos></gml:Point>
> </gml:geometryMember>
> <gml:geometryMember>
> <gml:Point srsName="EPSG:4326">
> <gml:pos>70 -12</gml:pos>
> </gml:Point>
> </gml:geometryMember>
> </gml:GeometryCollection>
> </feature:the_geom>
> <feature:mapid>2052525f-80da-4f6e-83c0-cc9b87bdf218</feature:mapid>
> <feature:versionname>versionName</feature:versionname>
> <feature:strokecolor>#EE9900</feature:strokecolor>
> <feature:defaultstrokewidth>3</feature:defaultstrokewidth>
> <feature:selectedstrokewidth>4</feature:selectedstrokewidth>
> <feature:strokedashstyle>solid</feature:strokedashstyle>
> <feature:fillcolor>#F8D699</feature:fillcolor>
> <feature:geometrytype>arrow</feature:geometrytype>
> </feature:feature>
> </wfs:Insert>
> </wfs:Transaction>
>
>
> On Thu, Jan 31, 2013 at 1:13 PM, Matt Priour <mpriour at kestrelcomputer.com>wrote:
>
>>
>> On 01/30/2013 10:16 PM, 杨华杰 wrote:
>>
>> org.geoserver.wfs.WFSException: Error performing insert: java.lang.String
>> cannot be cast to com.vividsolutions.jts.geom.Geometry
>>
>>
>> That line is the key to determining what went wrong. You have a string
>> representation of a geometry that is unparsable by the WFS server. The
>> error message doesn't give any more details than that unfortunately.
>> However, since you are using Geoserver, if you have admin access to the
>> server, you can change the logging to GeoTools Developer logging and get as
>> much detail as possible. Just make sure and NEVER EVER leave the server in
>> that logging mode in a production machine.
>>
>> Hope that helps
>>
>> Matt Priour
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130131/59f90d74/attachment.html>


More information about the Users mailing list