Output results not added to the view

592
0
08-11-2011 02:01 AM
VictorOlaya
New Contributor
Hi all,

I am developing a geoprocessing extension that generates output layers. Layers are created (by an external geoprocessing library) and I use the following Java code to set them as value of the corresponding output parameters

final IGPValue gpValue = (IGPValue) gpUtilities.makeGPLayerFromLayer((ILayer) value);
gpUtilities.packGPValue(gpValue, outputParam);

I have checked that the GPLayer is created and that, after that last line, the outputParam contains a reference to the layer. However, when the execution is finished, the layer is not added to the view. I can manually open it, and see that the layer has been correctly created, but I guess I am doing something wrong, since the outputs are not added to the display (and the "Add results of geoprocessing operations to the display" is checked).

Anyone has any idea about why this is happening?

Thanks in advance!

Victor
0 Kudos
0 Replies