Trying to use this as an insert request, the error ocurs when parsing
the lineStringMember.
Ok, I just put in some fixes for this, and got the request working most
all the way through with the streams shapefile (fell over at the very
end though, after reporting success, with some backend shapefile
errors).
Lead me to fix a few other bugs, which may or may not have been in the
way for you. The first was the fid, which geoserver tries to parse as
an attribute. I threw out trying to parse xml attributes, as I think
it's outside the scope of the spec. The only one is fid, and we create
our own, so we don't need it. It could easily be coded back in if we
do.
I _think_ your error in parsing may be due from cutting and pasting,
without getting the spaces right, at least that's what my trouble was.
Did you get java.lang.NumberFormatException: For input string:
"5246736.62564677.43" ? To fix it just add a space at each new line.
After that I had another error, introduced in TransactionResponse with a
validation featureTypeInfo lookup for Inserts. It just looked up on
the typename, without a prefix, check the comments in
TransactionResponse, and geos-144 and 145 I think. There are all sorts
of lame errors around this stuff.
If you have more errors let me know, I'm in debug mode, and the insert
stuff is easily the nastiest code we've got in geoserver right now.
I'll maybe try to comment it up some more...
Oh yeah, and I had trouble with the boundedBy, as it's not an attribute
of streams, at least of the streams type that I have. Perhaps we
should ignore boundedBy, I'm not sure. Right now we treat it as an
attribute, in cite we have boundedBy columns, which get printed with
the right gml prefixing if that option is turned on. So if you don't
have a boundedBy attribute then things mess up. Guess we could
actually handle that more gracefully now, since we are using the
FeatureType to parse, so if a boundedBy is in the request but not in
the Attribute type then we can just ignore it. You can add that if you
feel like it.
Chris
<wfs:Transaction
service="WFS"
version="1.0.0"
xmlns="http://www.refractions.net"
xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.refractions.net
http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=streams"
>
<wfs:Insert>
<streams fid="test">
<gml:boundedBy>
<gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#0">
<gml:coordinates>564669.09,5246679.99 564669.09,5246975.92
564709.98,5246975.92 564709.98,5246679.99
</gml:coordinates>
</gml:Box>e
</gml:boundedBy>
<gml:MultiLineString
srsName="http://www.opengis.net/gml/srs/epsg.xml#0">
<gml:lineStringMember>
<gml:LineString>
<gml:coordinates decimal="." cs="," ts=" ">
564685.02,5246679.99 564680.22,5246731.15 564678.33,5246736.62
564677.43,5246823.18 564680.96,5246836.02 564681.5,5246842.73
564674.58,5246862.77 564669.39,5246893.2 564669.09,5246921.85
564672.65,5246931.03 564681.65,5246945.15 564707.06,5246963.7
564709.98,5246975.92
</gml:coordinates>
</gml:LineString>
</gml:lineStringMember>
</gml:MultiLineString>
</streams>
</wfs:Insert>
</wfs:Transaction>-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel
----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/