Hi,

I believe that Jody has updated the tutorial so it only works for uDig 1.1.x.  You can download the latest SDK at:


Don't worry, the standard functionality is pretty stable.  The unstable functionality shows itself in the edit tools and saving layers.

It is best to work against these branches since I can quickly make modifications when you encounter issues.

Jesse


On 28-Mar-06, at 9:25 PM, Jeffrey Bergamini wrote:

Thanks Jesse, that's a big help.
 
A few issues with the distance tool tutorial (with SDK installed per the Quickstart):
  • The DistanceTool class is supposed to extend net.refractions.udig.project.ui.tool.SimpleTool, which doesn't seem to exist. There is an AbstractTool, but no SimpleTool. AbstractTool has the methods mousePressed(MapMouseEvent) and mouseReleased(MapMouseEvent), rather than onMousePressed(MapMouseEvent) and onMouseReleased(MapMouseEvent), suggested as overrides in the tutorial.
  • The import org.geotools.geometry.jts.JTS doesn't seem to exist, either, so I can't call the orthodromicDistance method. Only org.geotools.geometry.JTS
  • The calls to getContext().getActionBars().getStatusLineManager() don't work, since IToolContext doesn't have a method called getActionBars. This should be getContext.getStatusBar(), I think.
  • If I use AbstractTool as a super for DistanceTool (tried with constructor calls to super(MOUSE), super(MOTION), etc.) and override the mousePressed and mouseReleased methods, they are never called.
Also, as an aside, the tool doesn't show up on the toolbar until I first select it from the Tools->Info Tools menu, even though onToolbar is set to true in plugin.xml.
 
Sorry if these have previously been addressed. I tried to find a search option in the list archives, but didn't see one.
 
Jeff
 
On 3/28/06, Jesse Eichar <[EMAIL PROTECTED]> wrote:
Hi Jeff,

The easiest thing is to create a new plugin with your customized zoom
tools.  The distance tool tutorial explains how to create a tool and
plugin.  The NavCommandFactory is a good place to look for commands
that can be used to modify the ViewportModel.  Nav commands are used
to change the zoom and bounds of the map.  You can get at an instance
of the class from a tool implementation with the line:
getContext().getNavCommandFactory().


Jesse

On 28-Mar-06, at 3:05 PM, Jeffrey Bergamini wrote:

> Hi everybody,
>
> First, congratulations on all that uDig has become! It's a great tool.
>
> I'm working on an academic project that involves a WMS/WFS proxy/
> cache system that imposes some regulation on the bounding boxes of
> requests, i.e. they must be along certain grid lines (defined in
> WGS 84). I'd like to use uDig as a demonstration client, so that
> means I need to hook into the zooming/selection mechanisms and make
> sure uDig is making requests along those boundaries.
>
> What I have in mind (for an initial, simple, just-works
> demonstration) is that a user should be able to either:
> Press the Zoom button, and uDig will zoom to the most appropriate
> next tile; or
> Use the Adjust Current Zoom tool to select a new area, and uDig
> will make minor adjustments so that the area's boundaries lie along
> the grid lines.
> I'm using standard WMS/WFS with a simple extended Capabilities doc
> element that notifies a client that this tiling scheme is available.
>
> I've begun looking the at the plugin development tutorials and
> skimming some of the uDig source, but I think asking this list
> would be a more efficient way of getting started. Can anyone point
> me in the right direction as far as where this can and should be
> accomplished in code? Can it be developed as a plugin, or should I
> make a custom version of uDig for myself?
>
> Any help is greatly appreciated, and I figure that a couple minutes
> of typing time from those of you who are pretty familiar with uDig
> will save me many hours of wading through docs and code.
>
> Thanks a lot, and again, keep up the good work.
>
> Jeff Bergamini
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel

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

_______________________________________________
User-friendly Desktop Internet GIS (uDig)

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

Reply via email to