id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 2772,Interleaved feature adding to different layers is not possible with KML OGR driver,moellney,condit,"I came to a problem with the creation of layers. I have to calculate positions and at these positions different features should be added. I would like to add the features to different layers to better select later, what to see and what not.... So I mainly have (pseudo code) {{{ pLayer1 = create layer1(); pLayer2 = create layer2(); for (i = 1; i<1000; i++) { pos = calc_position (i); pLayer1.addFeature(createFeature1(pos)); pLayer2.addFeature(createFeature2(pos)); } }}} Is this ment to be supported If so, the implementation of KML export is broken, because with the creation of a new layer the output of the other layer is closed. There is no buffering of the layer context until the datasource is closed... Or do i really have to write two for loops: {{{ pLayer1 = create layer1(); for (i = 1; i<1000; i++) { pos = calc_position (i); pLayer1.addFeature(createFeature1(pos)); } pLayer2 = create layer2(); for (i = 1; i<1000; i++) { pos = calc_position (i); pLayer2.addFeature(createFeature2(pos)); } }}} ",defect,closed,normal,1.9.0,OGR_SF,1.6.0,normal,fixed,KML,warmerdam