openlayers: ol.format.WFS's writeTransaction cannot pass geometrycollection type

Hi,

When I did some thing like this

                          var node = formatWFS.writeTransaction(null, updateArr, null, {                            
                                featureNS: 'http://asds.com.au',
                                featurePrefix: 'FT',
                                featureType: 'OPERATION_EDIT',
                                srsName: 'EPSG:28355',
                                gmlOptions: formatGML

It will call an error at

serializersNS[node.namespaceURI][node.localName]
            .call(opt_this, node, value, objectStack)

because of serializersNS[node.namespaceURI][node.localName] is undefined.

And I found the reason is this <geometrycollection></geometrycollection>

updateArr is an array of ol.Feature which contain ol.geom.GeometryCollection type data.

I’m not quite sure is it a bug or not

Cheers

About this issue

  • Original URL
  • State: open
  • Created 9 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

for everybody stumbling across this issue, this is the workaround i used: convert the circle to a polygon with the fromCircle function from ol/geom/polygon.js. I think it is not as efficient as saving circles directly, but it works.