Hey all,

I created a new file format based on XML. A single XML file can contain several kinds of features (point, polygon, ...) so I created a IService subclass that provides several IGeoResource subclasses as members. My IService can resolve to a DataStore (MemoryDataStore).

My problems are the following :
1) When I choose "File > New > New Layer > Files", I select my XML file and then press "Next", I get an empty list of IGeoResources (on the screen). I can then press "Previous" and then "Next", my IGeoResources appear ! I now can really add them to my current map.
(screenshots in attachement)
2) If I only choose to import the same content in the local catalog, I get them in the Catalog view. I cannot use the context menu on the IService (right click) and choose "Add them to the current map". I only can use this operation on each IGeoResource. I have the same problem with drag and drop on the IService from Catalog view to Project Explorer view.

In both cases, if my XML file only contains one kind of information (only 1 IGeoResource), this works fine, the problem arises only when I have several members in the same IService.

I investigated uDig code and I found that some tests are done to automatically select the unique IGeoResource when there is only one IGeoResource in a IService. But the code doesn't seem to work in other cases.

Thanks for your help.

Vincent

PNG image

PNG image

PNG image

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to