[JPP-Devel] WMS plugin
Hi, the WMS plugin currently shows the layer titles when you choose which layers you want to fetch from the WMS but uses the first layer's name when adding the WMS request to OpenJUMP's layers. The name of a WMS layer is usually something like a layer ID, and supposed to be used by machines, while the title is more like the name to be presented to end users. I changed the behavior of the plugin to use the WMS title of the first requested layer instead. Does anyone want to review the patch or can I just submit it? (I attached it anyway...) Best regards, Andreas -- l a t / l o n GmbH Aennchenstrasse 19 53177 Bonn, Germany phone ++49 +228 18496-11 fax ++49 +228 1849629 http://www.lat-lon.dehttp://www.deegree.org Index: src/com/vividsolutions/jump/workbench/model/WMSLayer.java === --- src/com/vividsolutions/jump/workbench/model/WMSLayer.java (Revision 907) +++ src/com/vividsolutions/jump/workbench/model/WMSLayer.java (Arbeitskopie) @@ -100,9 +100,14 @@ this(layerManager, initializedService, srs, layerNames, format, initializedService.getVersion()); } - public WMSLayer(LayerManager layerManager, WMService initializedService, +public WMSLayer(String title, LayerManager layerManager, WMService initializedService, +String srs, List layerNames, String format) throws IOException { +this(title, layerManager, initializedService, srs, layerNames, format, initializedService.getVersion()); +} + +public WMSLayer(String title, LayerManager layerManager, WMService initializedService, String srs, List layerNames, String format, String version){ - super((String) layerNames.get(0), layerManager); + super(title, layerManager); setService(initializedService); setSRS(srs); this.layerNames = new ArrayList(layerNames); @@ -111,6 +116,11 @@ this.wmsVersion = version; } +public WMSLayer(LayerManager layerManager, WMService initializedService, +String srs, List layerNames, String format, String version){ +this((String) layerNames.get(0), layerManager, initializedService, srs, layerNames, format, version); +} + protected void init() { getBlackboard().put( RenderingManager.USE_MULTI_RENDERING_THREAD_QUEUE_KEY, true); Index: src/com/vividsolutions/jump/workbench/ui/plugin/wms/AddWMSQueryPlugIn.java === --- src/com/vividsolutions/jump/workbench/ui/plugin/wms/AddWMSQueryPlugIn.java (Revision 907) +++ src/com/vividsolutions/jump/workbench/ui/plugin/wms/AddWMSQueryPlugIn.java (Arbeitskopie) @@ -31,6 +31,11 @@ */ package com.vividsolutions.jump.workbench.ui.plugin.wms; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; + import com.vividsolutions.jump.I18N; import com.vividsolutions.jump.workbench.model.StandardCategoryNames; import com.vividsolutions.jump.workbench.model.UndoableCommand; @@ -40,21 +45,14 @@ import com.vividsolutions.jump.workbench.ui.GUIUtil; import com.vividsolutions.jump.workbench.ui.wizard.WizardDialog; import com.vividsolutions.jump.workbench.ui.wizard.WizardPanel; - import com.vividsolutions.wms.MapLayer; import com.vividsolutions.wms.WMService; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; - public class AddWMSQueryPlugIn extends AbstractPlugIn { + private String cachedURL = "http://demo.deegree.org/deegree-wms/services";; private String lastWMSVersion = WMService.WMS_1_1_1; -public AddWMSQueryPlugIn() { -} private List toLayerNames(List mapLayers) { ArrayList names = new ArrayList(); @@ -86,7 +84,10 @@ return false; } -final WMSLayer layer = new WMSLayer(context.getLayerManager(), +// title of the layer will be the title of the first WMS layer +String title = ((MapLayer)((List)d.getData(MapLayerWizardPanel.LAYERS_KEY)).get(0)).getTitle(); + +final WMSLayer layer = new WMSLayer(title,context.getLayerManager(), (WMService) d.getData(URLWizardPanel.SERVICE_KEY), (String) d.getData(SRSWizardPanel.SRS_KEY), toLayerNames((List) d.getData(MapLayerWizardPanel.LAYERS_KEY)), - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sou
Re: [JPP-Devel] WMS plugin
Andreas Schmitz wrote: Hi, I got another one. When editing WMS requests and selecting some SRS in the combobox, this selection will vanish (and the first SRS will be selected again) when moving layers up and down. The attached patch fixes the problem. If nobody objects, I'll check it in. Best regards, Andreas -- l a t / l o n GmbH Aennchenstrasse 19 53177 Bonn, Germany phone ++49 +228 18496-11 fax ++49 +228 1849629 http://www.lat-lon.dehttp://www.deegree.org Index: src/com/vividsolutions/jump/workbench/ui/plugin/wms/EditWMSQueryPanel.java === --- src/com/vividsolutions/jump/workbench/ui/plugin/wms/EditWMSQueryPanel.java (Revision 907) +++ src/com/vividsolutions/jump/workbench/ui/plugin/wms/EditWMSQueryPanel.java (Arbeitskopie) @@ -36,6 +36,7 @@ import java.awt.Insets; import java.util.Iterator; import java.util.List; + import javax.swing.BorderFactory; import javax.swing.DefaultComboBoxModel; import javax.swing.JComboBox; @@ -48,7 +49,6 @@ import com.vividsolutions.jump.I18N; import com.vividsolutions.jump.workbench.plugin.EnableCheck; import com.vividsolutions.jump.workbench.ui.InputChangedListener; -import com.vividsolutions.jump.workbench.ui.MultiInputDialog; import com.vividsolutions.jump.workbench.ui.TransparencyPanel; import com.vividsolutions.wms.WMService; @@ -130,6 +130,13 @@ */ private void updateComboBox() { String selectedSRS = (String) srsComboBox.getSelectedItem(); + +// this method does get called many times when no SRS are available here +// this makes sure that the selected SRS stays selected when available +if(mapLayerPanel.commonSRSList().size() == 0) { +return; +} + comboBoxModel.removeAllElements(); for (Iterator i = mapLayerPanel.commonSRSList().iterator(); i.hasNext();) { - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] To Sunburned Surveyor - Help files
Hi london, I am on holiday now but I upgrade a part of wiki help page. Only the "Menu bar" is finished. It is as simple as possible (no images, simple description) in order to give a simple idea about the functions. Of coarse it is not finished because it requires sometimes more. As I wrote in a former letter I will be glad if you correct the English and add information I could miss. By the time I will be back home I want to put the "toolbar" page. It'll be more elaborated since I want to put images. This part of help has more former documentation (Vivids, Uwe's and a PDF of Isa extension) which I pobabily use as a semple. My problem in this moment is (or what I feel as a problem): Should I repit what is already written in other PDF docs? e.g. tool bar functions or Change Style dialog window. I thought to re-write everything anyway. If you have any idea about, we can talk each other and take a decision. Right now I appreciate if you, or other developers and user, could give me new idea or show me if I do mistakes. Peppe Sunburned Surveyor <[EMAIL PROTECTED]> ha scritto: Peppe, It sounds like you were able to create a page on the wiki. Please let me know if you need any other help. We appreciate your documentation efforts. Landon On 7/23/07, Giuseppe Aruta wrote: > Hi SS, > sorry if I answer late. I am on camping and I didn't read mails untill 17th. > Yes I was talking about the "New OpenJUMP Manual" page on wiki . Anyhow I > solved the problem creating a new page. > By SS, I think I control email after 30th of July > > Peppe > > Sunburned Surveyor ha scritto: > Peppe, > > I'm sorry that I didn't get back to you on this question sooner. Are > you talking about the JPP wiki, or something else? > > Let me know, and we can talk some more about it. > > The Sunburned Surveyor > > On 7/11/07, Giuseppe Aruta wrote: > > > > Hi SS, > > > > I have an idea: > > I think I could tranfer the things I wrote about the > > help on your "New User Guide" web page. > > I could use a new page ("List of Functions") or I can > > modify the "Index" page. By the time I finish new > > parts I can upgrade it. Of coarse I will use minimum > > text and few pictures. You could control every now > > and then that I don't write dumb things > > What do you think about? > > > > Peppe > > > > > > ___ > > L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: > http://it.docs.yahoo.com/nowyoucan.html > > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Jump-pilot-devel mailing list > > Jump-pilot-devel@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > > > > > L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail > > > > L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail > > > > > - > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ___ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel - - L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail -
Re: [JPP-Devel] To Sunburned Surveyor - Help files
aehm.. sorry i meant "Giuseppe" ;) Stefan Steiniger schrieb: > Hei Gusieppe, > > if you feel the information from the other docs is sufficient and > necessary then use it otherwise make the improvements you want. > I would also vote for a "quick - what's this for?" documentation, than > for a comprehensive documentation. If the first version one is done, we > can afterwards still extend the doc to a comprehensive guide. but at the > end it is your decision, because you better can estimate what time you > have for. > > stefan > > Giuseppe Aruta schrieb: >> Hi london, >> I am on holiday now but I upgrade a part of wiki help page. >> Only the "Menu bar" is finished. It is as simple as possible (no images, >> simple description) in order to give a simple idea about the functions. >> Of coarse it is not finished because it requires sometimes more. >> As I wrote in a former letter I will be glad if you correct the English >> and add information I could miss. >> By the time I will be back home I want to put the "toolbar" page. It'll >> be more elaborated since I want to put images. This part of help has >> more former documentation (Vivids, Uwe's and a PDF of Isa extension) >> which I pobabily use as a semple. >> My problem in this moment is (or what I feel as a problem): Should I >> repit what is already written in other PDF docs? e.g. tool bar functions >> or Change Style dialog window. I thought to re-write everything anyway. >> If you have any idea about, we can talk each other and take a decision. >> Right now I appreciate if you, or other developers and user, could give >> me new idea or show me if I do mistakes. >> >> Peppe >> >> */Sunburned Surveyor <[EMAIL PROTECTED]>/* ha scritto: >> >> Peppe, >> >> It sounds like you were able to create a page on the wiki. Please let >> me know if you need any other help. >> >> We appreciate your documentation efforts. >> >> Landon >> >> On 7/23/07, Giuseppe Aruta wrote: >> > Hi SS, >> > sorry if I answer late. I am on camping and I didn't read mails >> untill 17th. >> > Yes I was talking about the "New OpenJUMP Manual" page on wiki . >> Anyhow I >> > solved the problem creating a new page. >> > By SS, I think I control email after 30th of July >> > >> > Peppe >> > >> > Sunburned Surveyor ha scritto: >> > Peppe, >> > >> > I'm sorry that I didn't get back to you on this question sooner. Are >> > you talking about the JPP wiki, or something else? >> > >> > Let me know, and we can talk some more about it. >> > >> > The Sunburned Surveyor >> > >> > On 7/11/07, Giuseppe Aruta wrote: >> > > >> > > Hi SS, >> > > >> > > I have an idea: >> > > I think I could tranfer the things I wrote about the >> > > help on your "New User Guide" web page. >> > > I could use a new page ("List of Functions") or I can >> > > modify the "Index" page. By the time I finish new >> > > parts I can upgrade it. Of coarse I will use minimum >> > > text and few pictures. You could control every now >> > > and then that I don't write dumb things >> > > What do you think about? >> > > >> > > Peppe >> > > >> > > >> > > ___ >> > > L'email della prossima generazione? Puoi averla con la nuova >> Yahoo! Mail: >> > http://it.docs.yahoo.com/nowyoucan.html >> > > >> > > >> > >> - >> > > This SF.net email is sponsored by DB2 Express >> > > Download DB2 Express C - the FREE version of DB2 express and take >> > > control of your XML. No limits. Just data. Click to get it now. >> > > http://sourceforge.net/powerbar/db2/ >> > > ___ >> > > Jump-pilot-devel mailing list >> > > Jump-pilot-devel@lists.sourceforge.net >> > > >> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> > > >> > >> > >> - >> > This SF.net email is sponsored by DB2 Express >> > Download DB2 Express C - the FREE version of DB2 express and take >> > control of your XML. No limits. Just data. Click to get it now. >> > http://sourceforge.net/powerbar/db2/ >> > ___ >> > Jump-pilot-devel mailing list >> > Jump-pilot-devel@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> > >> > >> > >> > >> > >> > L'email della prossima generazione? Puoi averla con la nuova >> Yahoo! Mail >> > >> > >> > >> > L'
Re: [JPP-Devel] To Sunburned Surveyor - Help files
Hei Gusieppe, if you feel the information from the other docs is sufficient and necessary then use it otherwise make the improvements you want. I would also vote for a "quick - what's this for?" documentation, than for a comprehensive documentation. If the first version one is done, we can afterwards still extend the doc to a comprehensive guide. but at the end it is your decision, because you better can estimate what time you have for. stefan Giuseppe Aruta schrieb: > Hi london, > I am on holiday now but I upgrade a part of wiki help page. > Only the "Menu bar" is finished. It is as simple as possible (no images, > simple description) in order to give a simple idea about the functions. > Of coarse it is not finished because it requires sometimes more. > As I wrote in a former letter I will be glad if you correct the English > and add information I could miss. > By the time I will be back home I want to put the "toolbar" page. It'll > be more elaborated since I want to put images. This part of help has > more former documentation (Vivids, Uwe's and a PDF of Isa extension) > which I pobabily use as a semple. > My problem in this moment is (or what I feel as a problem): Should I > repit what is already written in other PDF docs? e.g. tool bar functions > or Change Style dialog window. I thought to re-write everything anyway. > If you have any idea about, we can talk each other and take a decision. > Right now I appreciate if you, or other developers and user, could give > me new idea or show me if I do mistakes. > > Peppe > > */Sunburned Surveyor <[EMAIL PROTECTED]>/* ha scritto: > > Peppe, > > It sounds like you were able to create a page on the wiki. Please let > me know if you need any other help. > > We appreciate your documentation efforts. > > Landon > > On 7/23/07, Giuseppe Aruta wrote: > > Hi SS, > > sorry if I answer late. I am on camping and I didn't read mails > untill 17th. > > Yes I was talking about the "New OpenJUMP Manual" page on wiki . > Anyhow I > > solved the problem creating a new page. > > By SS, I think I control email after 30th of July > > > > Peppe > > > > Sunburned Surveyor ha scritto: > > Peppe, > > > > I'm sorry that I didn't get back to you on this question sooner. Are > > you talking about the JPP wiki, or something else? > > > > Let me know, and we can talk some more about it. > > > > The Sunburned Surveyor > > > > On 7/11/07, Giuseppe Aruta wrote: > > > > > > Hi SS, > > > > > > I have an idea: > > > I think I could tranfer the things I wrote about the > > > help on your "New User Guide" web page. > > > I could use a new page ("List of Functions") or I can > > > modify the "Index" page. By the time I finish new > > > parts I can upgrade it. Of coarse I will use minimum > > > text and few pictures. You could control every now > > > and then that I don't write dumb things > > > What do you think about? > > > > > > Peppe > > > > > > > > > ___ > > > L'email della prossima generazione? Puoi averla con la nuova > Yahoo! Mail: > > http://it.docs.yahoo.com/nowyoucan.html > > > > > > > > > - > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > ___ > > > Jump-pilot-devel mailing list > > > Jump-pilot-devel@lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > > > > > > > - > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > ___ > > Jump-pilot-devel mailing list > > Jump-pilot-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > > > > > > > > > > > L'email della prossima generazione? Puoi averla con la nuova > Yahoo! Mail > > > > > > > > L'email della prossima generazione? Puoi averla con la nuova > Yahoo! Mail > > > > > > > > > > > ---
Re: [JPP-Devel] WMS plugin
Hei Andreas, please commit both. We trust you and it is not a core change, but rather some cosmetics. stefan Andreas Schmitz schrieb: > Andreas Schmitz wrote: > > > Hi, > > I got another one. > > When editing WMS requests and selecting some SRS in the combobox, this > selection will vanish (and the first SRS will be selected again) when > moving layers up and down. > > The attached patch fixes the problem. > > If nobody objects, I'll check it in. > > Best regards, Andreas > > > > > Index: > src/com/vividsolutions/jump/workbench/ui/plugin/wms/EditWMSQueryPanel.java > === > --- > src/com/vividsolutions/jump/workbench/ui/plugin/wms/EditWMSQueryPanel.java > (Revision 907) > +++ > src/com/vividsolutions/jump/workbench/ui/plugin/wms/EditWMSQueryPanel.java > (Arbeitskopie) > @@ -36,6 +36,7 @@ > import java.awt.Insets; > import java.util.Iterator; > import java.util.List; > + > import javax.swing.BorderFactory; > import javax.swing.DefaultComboBoxModel; > import javax.swing.JComboBox; > @@ -48,7 +49,6 @@ > import com.vividsolutions.jump.I18N; > import com.vividsolutions.jump.workbench.plugin.EnableCheck; > import com.vividsolutions.jump.workbench.ui.InputChangedListener; > -import com.vividsolutions.jump.workbench.ui.MultiInputDialog; > import com.vividsolutions.jump.workbench.ui.TransparencyPanel; > import com.vividsolutions.wms.WMService; > > @@ -130,6 +130,13 @@ > */ > private void updateComboBox() { > String selectedSRS = (String) srsComboBox.getSelectedItem(); > + > +// this method does get called many times when no SRS are available > here > +// this makes sure that the selected SRS stays selected when > available > +if(mapLayerPanel.commonSRSList().size() == 0) { > +return; > +} > + > comboBoxModel.removeAllElements(); > > for (Iterator i = mapLayerPanel.commonSRSList().iterator(); > i.hasNext();) { > > > > > - > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > > > ___ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Coming off of hiatus...
Hei Peppe, some more answer > There is also al lot of documentation which originally was extra > documentation of former plugin (e.g. Isa tools or Simple query) in PDF > which could be used in the new help documentation. I wnt to collect all > and ask the authors (one is you Stefan, with Isa Tools) actually ISA tools are from Larry further i think you do not need a permission if the doc is floating around in the web (we may also look for the doc-license used). > the permision > to put only the PDF on line, with links to the Help documentation (list > of functions). The idea is to join all the documentation alread written > of OJ (as Manuals, as extra description of plugin, pdf, txt, etc) to get > a complete documentation in few months. A sort of BETA documentation. mhm.. i don't know.. i think it is good to have the documentation collected somewhere (see also the documentation page on the wiki). I would rather use that documentation as a base then only linking it. But this holds only for the english documents. Because I think we need to reference every non-english documentation. On our sourceforge account should be sufficient space to store the documentation. > By the time that SS defines the "New help documentation" with the new > functionalities (no metter if external doc or as a wiki) all my > documentation could be joined with it in order to have a "robust" > documentation. > My plan till October is to write those extra docs (as wiki): > Toolbar > List View > Layer View > I have an extra documentation: import/export files, which I would put on > line: it is a sort of table of all supported and unsupported types of > file in OJ. Users have information about how to convert, which extra > software to use, how to use (ex. DWG to DXF, DXF 2002 to DXF 2000, DGN, > E00 and also rasters or spatial tables). yes.. this would be very good.. i think you can make also such tables on the wiki? Furthermore I should mention 2 things: * we could also use the new sourceforge internal wiki for documentation efforts (I don't know how long Jon will still host our wiki * the stuff from Uwe's doc is also existing on a german(!) wiki: http://de.giswiki.net/wiki/OpenJUMP_Tutorial > This is the plan for next (2) months. > The help I need: English correction (of coarse) and Ideas and correction > of descriptions. SS you are very welcome if you want to correct my wiki > page. > ** > > I think also that the general "documentation page" has to reorganize to > help people to fine what they want. > A proposal is to separate it in two pages: "Onlyne documentation" (PDF, > DOC,TXT etc) and "Wiki". Anyhow there time to think about. > ** mhm.. can you make it a bit more specific. btw. i would not say "online documentation" but something like "paper/print documentation" stefan > > Nex mail-control: in 6-7 days. > > Peppe - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] Rename layer plugin
Hi, I just wrote a little plugin to rename a layer. I know one can rename a layer by double clicking, but users have asked me for a (context) menu item ;-) Some questions came up: 1) Where exactly do I have to put I18N keys? Right now I just put them in the en, de and jump.properties. Do I have to put an english key in the other language files? 2) Since I wanted to have a context menu item I'm loading the plugin from the JUMPConfiguration. Is there a better/more preferred way? I found the OpenJumpConfiguration, but it does not seem to offer this. I just wanted to clarify these points before checking anything in. PS: Once again I attached a patch, and the plugin source which goes to src/org/openjump/core/ui/plugin/layer/ChangeLayerableNamePlugIn.java Best regards, Andreas -- l a t / l o n GmbH Aennchenstrasse 19 53177 Bonn, Germany phone ++49 +228 18496-11 fax ++49 +228 1849629 http://www.lat-lon.dehttp://www.deegree.org Index: src/com/vividsolutions/jump/workbench/JUMPConfiguration.java === --- src/com/vividsolutions/jump/workbench/JUMPConfiguration.java (Revision 907) +++ src/com/vividsolutions/jump/workbench/JUMPConfiguration.java (Arbeitskopie) @@ -33,6 +33,8 @@ import com.vividsolutions.jts.util.*; import org.openjump.OpenJumpConfiguration; +import org.openjump.core.ui.plugin.layer.ChangeLayerableNamePlugIn; + import com.vividsolutions.jump.I18N; import com.vividsolutions.jump.datastore.*; @@ -237,6 +239,8 @@ private ImageLayerManagerPlugIn imageLayerManagerPlugIn = new ImageLayerManagerPlugIn(); private RefreshDataStoreLayerPlugin refreshDataStoreLayerPlugin = new RefreshDataStoreLayerPlugin(); + +private ChangeLayerableNamePlugIn changeLayerableNamePlugIn = new ChangeLayerableNamePlugIn(); public void setup(WorkbenchContext workbenchContext) throws Exception { configureStyles(workbenchContext); @@ -384,6 +388,9 @@ zoomToLayerPlugIn, zoomToLayerPlugIn.getName(), false, null, zoomToLayerPlugIn.createEnableCheck(workbenchContext)); featureInstaller.addPopupMenuItem(layerNamePopupMenu, + changeLayerableNamePlugIn, changeLayerableNamePlugIn.getName(), false, null, + changeLayerableNamePlugIn.createEnableCheck(workbenchContext)); +featureInstaller.addPopupMenuItem(layerNamePopupMenu, changeStylesPlugIn, changeStylesPlugIn.getName() + "...", false, GUIUtil.toSmallIcon(changeStylesPlugIn.getIcon()), changeStylesPlugIn.createEnableCheck(workbenchContext)); Index: src/language/jump.properties === --- src/language/jump.properties(Revision 907) +++ src/language/jump.properties(Arbeitskopie) @@ -434,6 +434,7 @@ org.openjump.core.ui.plugin.layer.AddSIDLayerPlugIn.files = files org.openjump.core.ui.plugin.layer.AddSIDLayerPlugIn.not-installed = not installed. org.openjump.core.ui.plugin.layer.AddSIDLayerPlugIn.open-MrSID-file = open MrSID file +org.openjump.core.ui.plugin.layer.ChangeLayerableName.Rename = Rename Selected Layer org.openjump.core.ui.plugin.layer.ChangeSRIDPlugIn.Change-SRID = Change SRID org.openjump.core.ui.plugin.layer.ToggleVisiblityPlugIn.Error-See-Output-Window = Error: see output window org.openjump.core.ui.plugin.layer.ToggleVisiblityPlugIn.Toggle-Visibility = Toggle Visibility Index: src/language/jump_en.properties === --- src/language/jump_en.properties (Revision 907) +++ src/language/jump_en.properties (Arbeitskopie) @@ -434,6 +434,7 @@ org.openjump.core.ui.plugin.layer.AddSIDLayerPlugIn.files
Re: [JPP-Devel] Rename layer plugin
Hei Andreas, I would like to see it in the OpenJUMP configuration file. It should be possible.. or is it too cumbersome? (mhm... one moment) If I remember right the ISA tools did as well add context menu functions. Some of them have been transfered and are found in openjump.core.ui.plugin.mousemenu If you scroll down in the OpenJumpConfiguration file you will find initializations of MouseMenu functions. What concerns the resource files: Please add the key to every language file including the english translation. The translation can be later replaced by the people that maintain the specific language file. stefan note: i fixed the last 2 hours the first MacOSX bug, so your changelog needs to be updated Andreas Schmitz schrieb: > Hi, > > I just wrote a little plugin to rename a layer. I know one can rename a > layer by double clicking, but users have asked me for a (context) menu > item ;-) > > Some questions came up: > > 1) Where exactly do I have to put I18N keys? Right now I just put them > in the en, de and jump.properties. Do I have to put an english key in > the other language files? > > 2) Since I wanted to have a context menu item I'm loading the plugin > from the JUMPConfiguration. Is there a better/more preferred way? I > found the OpenJumpConfiguration, but it does not seem to offer this. > > I just wanted to clarify these points before checking anything in. > > PS: Once again I attached a patch, and the plugin source which goes to > src/org/openjump/core/ui/plugin/layer/ChangeLayerableNamePlugIn.java > > Best regards, Andreas > > > > > Index: src/com/vividsolutions/jump/workbench/JUMPConfiguration.java > === > --- src/com/vividsolutions/jump/workbench/JUMPConfiguration.java > (Revision 907) > +++ src/com/vividsolutions/jump/workbench/JUMPConfiguration.java > (Arbeitskopie) > @@ -33,6 +33,8 @@ > > import com.vividsolutions.jts.util.*; > import org.openjump.OpenJumpConfiguration; > +import org.openjump.core.ui.plugin.layer.ChangeLayerableNamePlugIn; > + > import com.vividsolutions.jump.I18N; > > import com.vividsolutions.jump.datastore.*; > @@ -237,6 +239,8 @@ > private ImageLayerManagerPlugIn imageLayerManagerPlugIn = new > ImageLayerManagerPlugIn(); > > private RefreshDataStoreLayerPlugin refreshDataStoreLayerPlugin = new > RefreshDataStoreLayerPlugin(); > + > +private ChangeLayerableNamePlugIn changeLayerableNamePlugIn = new > ChangeLayerableNamePlugIn(); > > public void setup(WorkbenchContext workbenchContext) throws Exception { > configureStyles(workbenchContext); > @@ -384,6 +388,9 @@ > zoomToLayerPlugIn, zoomToLayerPlugIn.getName(), false, null, > zoomToLayerPlugIn.createEnableCheck(workbenchContext)); > featureInstaller.addPopupMenuItem(layerNamePopupMenu, > + changeLayerableNamePlugIn, > changeLayerableNamePlugIn.getName(), false, null, > + > changeLayerableNamePlugIn.createEnableCheck(workbenchContext)); > +featureInstaller.addPopupMenuItem(layerNamePopupMenu, > changeStylesPlugIn, changeStylesPlugIn.getName() + "...", > false, GUIUtil.toSmallIcon(changeStylesPlugIn.getIcon()), > changeStylesPlugIn.createEnableCheck(workbenchContext)); > Index: src/language/jump.properties > === > --- src/language/jump.properties (Revision 907) > +++ src/language/jump.properties (Arbeitskopie) > @@ -434,6 +434,7 @@ > org.openjump.core.ui.plugin.layer.AddSIDLayerPlugIn.files > > = files > org.openjump.core.ui.plugin.layer.AddSIDLayerPlugIn.not-installed > > = not installed. > org.openjump.core.ui.plugin.layer.AddSIDLayerPlugIn.open-MrSID-file > > = open MrSID file > +org.openjump.core.ui.plugin.layer.ChangeLayerableName.Rename > > = Rename Selected Layer > org.openjump.core.ui.plugin.layer.ChangeSRIDPlugIn.Change-SRID > > = Change SRID > > org.openjump.core.ui.plugin.layer.ToggleVisiblityPlugIn.Error-See-Output-Window >
Re: [JPP-Devel] Rename layer plugin
Stefan Steiniger wrote: Hi, > I would like to see it in the OpenJUMP configuration file. It should be > possible.. or is it too cumbersome? > (mhm... one moment) > If I remember right the ISA tools did as well add context menu > functions. Some of them have been transfered and are found in > openjump.core.ui.plugin.mousemenu > If you scroll down in the OpenJumpConfiguration file you will find > initializations of MouseMenu functions. ah, I seem to have missed that one, I'll change this on Friday. I'd also prefer to see it someplace else. > What concerns the resource files: Please add the key to every language > file including the english translation. The translation can be later > replaced by the people that maintain the specific language file. ok. > note: i fixed the last 2 hours the first MacOSX bug, so your changelog > needs to be updated I'll do that, thanks. Best regards, Andreas -- l a t / l o n GmbH Aennchenstrasse 19 53177 Bonn, Germany phone ++49 +228 18496-11 fax ++49 +228 1849629 http://www.lat-lon.dehttp://www.deegree.org signature.asc Description: Digital signature - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Coming off of hiatus...
Peppe, I like Stefan's suggestion about using the SourceForge wiki. We don't want to impose on Jon forever. :] I would be happy to look over your English documentation on the wiki. Why don't you let me know when you get it transferred over to the wiki on the SourceForge site. The Sunburned Surveyor On 8/1/07, Stefan Steiniger <[EMAIL PROTECTED]> wrote: > Hei Peppe, > > some more answer > > > There is also al lot of documentation which originally was extra > > documentation of former plugin (e.g. Isa tools or Simple query) in PDF > > which could be used in the new help documentation. I wnt to collect all > > and ask the authors (one is you Stefan, with Isa Tools) > actually ISA tools are from Larry > further i think you do not need a permission if the doc is floating > around in the web (we may also look for the doc-license used). > > > the permision > > to put only the PDF on line, with links to the Help documentation (list > > of functions). The idea is to join all the documentation alread written > > of OJ (as Manuals, as extra description of plugin, pdf, txt, etc) to get > > a complete documentation in few months. A sort of BETA documentation. > > mhm.. i don't know.. i think it is good to have the documentation > collected somewhere (see also the documentation page on the wiki). I > would rather use that documentation as a base then only linking it. But > this holds only for the english documents. Because I think we need to > reference every non-english documentation. > > On our sourceforge account should be sufficient space to store the > documentation. > > > By the time that SS defines the "New help documentation" with the new > > functionalities (no metter if external doc or as a wiki) all my > > documentation could be joined with it in order to have a "robust" > > documentation. > > My plan till October is to write those extra docs (as wiki): > > Toolbar > > List View > > Layer View > > I have an extra documentation: import/export files, which I would put on > > line: it is a sort of table of all supported and unsupported types of > > file in OJ. Users have information about how to convert, which extra > > software to use, how to use (ex. DWG to DXF, DXF 2002 to DXF 2000, DGN, > > E00 and also rasters or spatial tables). > > yes.. this would be very good.. > i think you can make also such tables on the wiki? > > Furthermore I should mention 2 things: > * we could also use the new sourceforge internal wiki for documentation > efforts (I don't know how long Jon will still host our wiki > * the stuff from Uwe's doc is also existing on a german(!) wiki: > http://de.giswiki.net/wiki/OpenJUMP_Tutorial > > > This is the plan for next (2) months. > > The help I need: English correction (of coarse) and Ideas and correction > > of descriptions. SS you are very welcome if you want to correct my wiki > > page. > > ** > > > > I think also that the general "documentation page" has to reorganize to > > help people to fine what they want. > > A proposal is to separate it in two pages: "Onlyne documentation" (PDF, > > DOC,TXT etc) and "Wiki". Anyhow there time to think about. > > ** > > mhm.. can you make it a bit more specific. > btw. i would not say "online documentation" but something like > "paper/print documentation" > > stefan > > > > > Nex mail-control: in 6-7 days. > > > > Peppe > > - > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ___ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] Creating Polygons
This week I was actually able to start using OpenJUMP for a little mapping project at work! This means I'll probably be asking some really stupid user questions and you guys will be thinking "why doesn't he know this?" . To be honest I don't "use" OpenJUMP very much at all, so I think this will be a great experience for me. It may help me identify some areas where OpenJUMP could really use some improvement. So here is my first stupid user question: Is there a way to create a polygon from a groups of selected LineStrings? Right now it seems that I can only create polygons by adding nodes to an existing polygon and then moving the nodes where I want them. Here is what I am trying to do: I want to create polygons representind different management areas for survey control. I would like the polygons to share boundaries along road segments. It would be great if I could just select the road segments that form a bounday and create the polygon. Any ideas? Does OpenJUMP already have this capabililty and I'm not finding it? The Sunburned Surveyor - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] Question About SkyJUMP
Larry, I noticed when I was using OpenJUMP last night that I couldn't pan the LayerViewPanel while in the midst of drawing a polygon. This causes problems if you are trying to draw a detailed polygon over a large area. I thought I rememberd you saying that you modified the cursor tool code so that the LayerViewPanel could be panned and zoomed while drawing or editing geometries. Is this correct? The Sunburned Surveyor - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Creating Polygons
mhm.. for your question: try the planar-graph plugin in tools\Analysis. But it works only if the linestrings are connected with each other. stefan Sunburned Surveyor schrieb: > This week I was actually able to start using OpenJUMP for a little > mapping project at work! This means I'll probably be asking some > really stupid user questions and you guys will be thinking "why > doesn't he know this?" . To be honest I don't "use" OpenJUMP very much > at all, so I think this will be a great experience for me. It may help > me identify some areas where OpenJUMP could really use some > improvement. > > So here is my first stupid user question: > > Is there a way to create a polygon from a groups of selected > LineStrings? Right now it seems that I can only create polygons by > adding nodes to an existing polygon and then moving the nodes where I > want them. > > Here is what I am trying to do: > > I want to create polygons representind different management areas for > survey control. I would like the polygons to share boundaries along > road segments. It would be great if I could just select the road > segments that form a bounday and create the polygon. > > Any ideas? Does OpenJUMP already have this capabililty and I'm not finding it? > > The Sunburned Surveyor > > - > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ___ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Creating Polygons
Look into the Polygonize function (Tools -> Edit -> Polygonize) David Zwiers Vivid Solutions Inc. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stefan Steiniger Sent: August 1, 2007 3:09 PM To: List for discussion of JPP development and use. Subject: Re: [JPP-Devel] Creating Polygons mhm.. for your question: try the planar-graph plugin in tools\Analysis. But it works only if the linestrings are connected with each other. stefan Sunburned Surveyor schrieb: > This week I was actually able to start using OpenJUMP for a little > mapping project at work! This means I'll probably be asking some > really stupid user questions and you guys will be thinking "why > doesn't he know this?" . To be honest I don't "use" OpenJUMP very much > at all, so I think this will be a great experience for me. It may help > me identify some areas where OpenJUMP could really use some > improvement. > > So here is my first stupid user question: > > Is there a way to create a polygon from a groups of selected > LineStrings? Right now it seems that I can only create polygons by > adding nodes to an existing polygon and then moving the nodes where I > want them. > > Here is what I am trying to do: > > I want to create polygons representind different management areas for > survey control. I would like the polygons to share boundaries along > road segments. It would be great if I could just select the road > segments that form a bounday and create the polygon. > > Any ideas? Does OpenJUMP already have this capabililty and I'm not finding it? > > The Sunburned Surveyor > > -- > --- This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ___ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel