Stefan,

You wrote: "don't realy think that the name example is helpful for the start. Of
course there may be applications for that.. but who does need to parse
all layer names? Why can the operator not just provide a layer?"

Your question confuses me a little bit. The plug-in allows renaming of
existing layers based on matching of patterns. This might not be
useful for many people. I suppose I think and work with layers more
than a typical GIS user because of my CAD background. For my purposes
the ability to globally rename layer names based on patterns is very
helpful. As an example, all TIGER shapefiles in the US come with a
standard file names that aren't very user friendly. I can globally
convert these to more user friendly names with the plug-in.

You wrote: "Shouldn't you focus on working with the GUI - how to use
the dialogs,
how to get a layer from there?"

I think this would be more important for a user guide, not a
programmer's guide, unless I am misunderstanding your question. My
examples do show how to present a dialog to the user to collect input
data and how to obtain information from the LayerNamePanel and
LayerViewPanel.

You wrote: "may be other people have other opinions but these are my2cents"

I always appreciate your feedback Stefan.

Thanks,

The Sunburned Surveyor

On Thu, Jun 26, 2008 at 6:34 PM, Stefan Steiniger <[EMAIL PROTECTED]> wrote:
> Hei Landon,
>
> I don't realy think that the name example is helpful for the start. Of
> course there may be applications for that.. but who does need to parse
> all layer names? Why can the operator not just provide a layer?
>
> Shouldn't you focus on working with the GUI - how to use the dialogs,
> how to get a layer from there?
>
> I have never needed to parse layer names. The only thing that I needed
> was how to get the selected Layers, or a single layer. So.. focus on
> every-day needed stuff.
>
> may be other people have other opinions but these are my2cents
>
> stefan
>
> Sunburned Surveyor wrote:
>> I've completed my second example for the OpenJUMP programmer's guide.
>> You can download the jar file that contains it here:
>>
>> http://www.redefinedhorizons.com/shared_files/
>>
>> Just drop the JAR in your /lib/ext folder.
>>
>> When you do this you should get a top-level menu called "SurveyOS".
>> It will contain on sub-menu called Layers with two menu items:
>>
>> Count Features In All Layers
>> Find and Replace In Layer Names
>>
>> You guys already know how the first menu item works. This second one
>> allows you to find and replace parts of layer names using regular
>> expressions. So, for example, it will allow you to do the following
>> with a single button click:
>>
>> Original Layer Names:
>>
>> Lines-Roads
>> Lines-Rivers
>> Lines-Railroads
>>
>> Modified Layer Names:
>>
>> LineStrings-Roads
>> LineStrings-Rivers
>> LineStrings-Railroads
>>
>> The plug-in also allows you to perform the operation on all of the
>> layers, or just the selected layers.
>>
>> I'll start work on my third example tomorrow. It will allow the user
>> to select layers based on the layer name matching a regular
>> expression.
>>
>> After that I'm going to write the documentation explaining the
>> examples for the Plug-In programmer's guide. Then I will start work on
>> explaining the PlugInContext and WorkbenchContext class.
>>
>> I hope you enjoy the example plug-ins.
>>
>> The Sunburned Surveyor
>>
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> _______________________________________________
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
>>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to