[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[udig-devel] Loading map from file system
|
Hi all,
We have an existing RCP application in which I want to display a map in
a ViewPart (tiffs and ESRI shape files). I've gone through the
quickstart tutorials and have played around with the uDig application,
but looking at the Javadoc I can't see what object is responsible for
loading a map from the file system.
I have a ViewPart with the following code:
public void createPartControl(Composite parent) {
ViewportPane viewportPane = new ViewportPaneSWT(parent, new
MapEditor());
// load map from file system somehow
IMap map = ????;
map.setRenderManagerInternal(new RenderManagerDynamic());
renderManager = map.getRenderManagerInternal();
viewportPane.setRenderManager(renderManager);
}
There's probably some intermediate steps I'm missing. Do I load a map
directly from the file system, or do I add layers to a newly constructed
map? Any pointers would be great as I'm new to GIS (if you couldn't
tell).
Regards
Brendon Kelly
---
Application Programmer
Information Systems & Technology Service
South Australia Police