Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hy, has anybody an example concerning accessing data from a WFS server by using the DataInteropability in ArcObjects?

I'm getting the right field definistion, but don't know how to read the data.

Here my current Java code:

FMEWorkspaceFactory fmeWorkspaceFactory = new FMEWorkspaceFactory();
IPlugInWorkspaceHelper plugInWorkspaceHelper = fmeWorkspaceFactory.openWorkspace("C:\\temp");
FMEWorkspaceHelper fmeWorkspaceHelper = new FMEWorkspaceHelper(plugInWorkspaceHelper);
FMEDatasetHelper fmeDatasetHelper = new FMEDatasetHelper(fmeWorkspaceHelper.openDataset("test.fdl"));
IFields fields = fmeDatasetHelper.getFields(0);

I suppose, I have to use the "fetchAll" method of the FMEDatasetHelper class.

Thanks, Tom

share|improve this question
Problem solved by using this code: bitbucket – Schuller Tom Jan 4 '12 at 12:14
When you get a chance would you be able to copy your Comment (solution) to an Answer that you then Accept, please? It is quite permissible to do this and gets one more Unanswered Question off our list. – PolyGeo Apr 24 '13 at 10:38
up vote 1 down vote accepted

Take a look at the code below. Full code in git repository can be here:

    PrintStream out = System.out;
    FMEWorkspaceFactory fmeWorkspaceFactory = new FMEWorkspaceFactory();
    IPlugInWorkspaceHelper plugInWorkspaceHelper = fmeWorkspaceFactory.openWorkspace( pathToFdlFiles );
    FMEWorkspaceHelper fmeWorkspaceHelper = new FMEWorkspaceHelper( plugInWorkspaceHelper );
    printDatasets( fmeWorkspaceHelper );

    IPlugInDatasetHelper dsHelper = fmeWorkspaceHelper.openDataset( fdlFile );
    FMEDatasetHelper fmeDatasetHelper = new FMEDatasetHelper( dsHelper );

    printClasses( fmeDatasetHelper );

    out.println( "Class-name:" + fmeDatasetHelper.getClassName( featureClassIdx ) );
    IFields fields = fmeDatasetHelper.getFields( featureClassIdx );
    printFields( fields );

    FMEReader reader = new FMEReader( fmeDatasetHelper );
    List<ArrayRowBuffer> lst = reader.readFeatures( featureClassIdx );
    for (ArrayRowBuffer el : lst) {
        out.println( el );
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.