Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] How to get the object Layer from its path?

Schmitt, Magna (CIP) wrote:
But if this layer is not selected or displayed in the "MapEditor", how can I get the Layer just by its path?

Hi Magna,

What are you trying to do (big picture)?

Is your shapefile already in the catalog? (CatalogPlugin.getDefault().getLocalCatalog())

Once it is in the catalog, you can acquire an IGeoResource and create a Layer from that...

Cory.


Back to the top