Hello List,
I have a problem to update my Geometry.Collection geometries.
My system is OL 2.7, GeoServer 1.6.3 and Oracle 10g.
I have some Geometry.Collections which are a bundle of some polygons and
other geometry objects. There are stored in the Oracle 10g database as
SDO_GEOMETRY-type: 2004, which meens a collection of geometries.
The GetFeature-Request shows me a right XML-structure of:
<NAMESPACE:THE_GEOM>
<gml:GeometryCollection
srsName="http://www.opengis.net/gml/srs/epsg.xml#23032">
<gml:geometryMember>
<gml:Polygon>
<gml:outerBoundaryIs>
<gml:LinearRing>
<gml:coordinates xmlns:gml="http://www.opengis.net/gml"
decimal="." cs="," ts=" ">
some coordinates
</gml:coordinates>
</gml:LinearRing>
</gml:outerBoundaryIs>
<gml:innerBoundaryIs>
<gml:LinearRing>
<gml:coordinates xmlns:gml="http://www.opengis.net/gml"
decimal="." cs="," ts=" ">
some coordinates
</gml:coordinates>
</gml:LinearRing>
</gml:innerBoundaryIs>
</gml:Polygon>
</gml:geometryMember>
</gml:GeometryCollection>
</NAMESPACE:THE_GEOM>
but if I post a update transaction of a Geometry.Collection like this:
<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" service="WFS"
version="1.0.0" xsi:schemaLocation
="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd" xmlns:xsi="http
://www.w3.org/2001/XMLSchema-instance"><wfs:Update
typeName="NAMESPACE:FEATURE" xmlns:NAMESPACE="URI">
<wfs:Property>
<wfs:Name>THE_GEOM</wfs:Name>
<wfs:Value>
<gml:GeometryCollection xmlns:gml="http://www.opengis.net/gml"
srsName="EPSG:23032">
<gml:geometryMember>
<gml:Polygon srsName="EPSG:23032">
<gml:outerBoundaryIs>
<gml:LinearRing>
<gml:coordinates decimal="." cs="," ts=" ">
some coordinates
</gml:coordinates>
</gml:LinearRing>
</gml:outerBoundaryIs>
<gml:innerBoundaryIs>
<gml:LinearRing>
<gml:coordinates decimal="." cs="," ts=" ">
some coordinates
</gml:coordinates>
</gml:LinearRing>
</gml:innerBoundaryIs>
</gml:Polygon>
</gml:geometryMember>
</gml:GeometryCollection>
</wfs:Value>
</wfs:Property>
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:FeatureId fid="FEATUREID"/>
</ogc:Filter>
</wfs:Update>
</wfs:Transaction>
it will fail about a unknown declaration of gml-element:
gml:GeometryCollection.
The GeoServer log wrote out this error:
2009-03-30 10:43:58,150 DEBUG [org.geotools.xml] - Could not find
declaration for: {http://www.opengis.net/gml\}GeometryCollection. Checking if
containing type declares a single particle.
2009-03-30 10:43:58,151 DEBUG [org.geotools.xml] - Could not find
declaration for: {http://www.opengis.net/gml\}GeometryCollection. Performing
lookup by ignoring namespace
2009-03-30 10:43:58,151 DEBUG [org.geotools.xml] - Could not find
declaration for: {http://www.opengis.net/gml\}GeometryCollection. Creating a
mock element declaration and parsing anyways...
I've took a look into the org.geotools.xml.gml and there is in the
GMLComplexTypes.js a GeometryCollection for parsing defined.
Realy I don't know what is wrong. The "gml:GeometryCollection" exists but
why the gml parser could not find it.
Has anyone a solution or part of answer how it could happend. Or has anyone
trigger the same problem?
Realy thanks 2StepForward
--
View this message in context: http://www.nabble.com/Geometry.Collection-gml-parsing-failed-tp22782921p22782921.html
Sent from the GeoServer - User mailing list archive at Nabble.com.