Re: [JPP-Devel] question to Michael - Beanshell
Thanks Martin for your answer, I will give a look at your project Peppe --- Lun 2/3/09, Martin Davis ha scritto: > Da: Martin Davis > Oggetto: Re: [JPP-Devel] question to Michael - Beanshell > A: "OpenJump develop and use" > Data: Lunedì 2 marzo 2009, 19:29 > Not sure if this is quite on the same track, but I'm > planning to make a > plugin which will allow JEQL to operate within JUMP. JEQL > provides a > much higher-level language than Beanshell, so it might be > close to what > you're looking for with a "Model Builder". > > Ultimately it would be cool to provide a Visual Programming > interface to > JEQL, which would make this even easier to use. Does the > Sextante Model > Builder provide a graphical interface? > > Michaël Michaud wrote: > > Giuseppe Aruta a écrit : > > > >> Hi Michael, > >> a couple of question: > >> 1) Is it possible to create a bean tool which > automatically calculate the x,y coordinates of a point layer > and write them as attributes? This script will be quite > useful for GPS support. > >> > >> > > Sure, not very difficult, > > I put it here after. If you want to test it and if it > suits your needs, > > we can add it to the distribution. > > > >> 2) One of the possible line od OJ development is > the construction of a "model buider" similar to > one which in Sextante > (http://openjump.org/wiki/show/Google+Summer+Of+Code+Ideas+List), > how Beanshell can be useful for it? > >> > >> > > I did not explore sextante yet, but I like very much > the idea of model > > builder. > > As far as I can imagine a model builder, it uses > interfaces with inputs, > > outputs and a methods to process data. > > The processing part could be defined as a script to > include methods > > which are not proposed by the basic model builder. > > Exemple : > > The model builder may propose a "filter a > featureCollection", "union a > > featureCollection", but miss a "explode a > featureCollection containing > > geometryCollections". With beanshell, just do it > yourself. It's just > > some thoughts, it may not be so easy to include > scripting capabilities > > into such a model and its user interface. > > > > Michaël > > > > Here is the script to add XY attributes : > > > > // This script adds a new layer from a selected one > > // The new layer has two new attributes > > // containing X and Y of a coordinate > > > > import com.vividsolutions.jump.feature.*; > > import > com.vividsolutions.jump.workbench.model.StandardCategoryNames; > > > > ll = wc.layerNamePanel.selectedLayers; > > if (ll.length != 1) > wc.workbench.frame.warnUser("Exactly one layer must > > be selected"); > > else { > > fc = ll[0].featureCollectionWrapper; > > fs = fc.featureSchema.clone(); > > fs.addAttribute("X", > AttributeType.DOUBLE); > > fs.addAttribute("Y", > AttributeType.DOUBLE); > > resultFC = new FeatureDataset(fs); > > for (f : fc.features) { > > nf = new BasicFeature(fs); > > for (int i = 0 ; i < fs.attributeCount-2 ; > i++){ > > nf.setAttribute(i, f.getAttribute(i)); > > } > > nf.setAttribute("X", > f.geometry.coordinate.x); > > nf.setAttribute("Y", > f.geometry.coordinate.y); > > resultFC.add(nf); > > } > > > wc.layerManager.addLayer(StandardCategoryNames.RESULT, > > ll[0].name+"_XY", resultFC); > > } > > > > > >> Regards > >> > >> Peppe > >> > >> __ > >> Do You Yahoo!? > >> Poco spazio e tanto spam? Yahoo! Mail ti protegge > dallo spam e ti da tanto spazio gratuito per i tuoi file e i > messaggi > >> http://mail.yahoo.it > >> > >> > -- > >> Open Source Business Conference (OSBC), March > 24-25, 2009, San Francisco, CA > >> -OSBC tackles the biggest issue in open source: > Open Sourcing the Enterprise > >> -Strategies to boost innovation and cut costs with > open source participation > >> -Receive a $600 discount off the registration fee > with the source code: SFAD > >> http://p.sf.net/sfu/XcvMzF8H > >> ___ > >> Jump-pilot-devel mailing list > >> Jump-pilot-devel@lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > >> > >> > >> > >> > > > > > > > -- > > Open Source Business Conference (OSBC), March 24-25, > 2009, San Francisco, CA > > -OSBC tackles the biggest issue in open source: Open > Sourcing the Enterprise > > -Strategies to boost innovation and cut costs with > open source participation > > -Receive a $600 discount off the registration fee with > the source code: SFAD > > http://p.sf.net/sfu/XcvMzF8H > > ___ > > Jump-pilot-devel mailing list > > Jump-pilot-devel@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > > > > > -- > Martin Davis >
Re: [JPP-Devel] question to Michael - Beanshell
Martin, I look forward to seeing your JEQL plug-in for OpenJUMP as well! SS On Tue, Mar 3, 2009 at 2:01 AM, Giuseppe Aruta wrote: > Thanks Martin for your answer, > I will give a look at your project > > Peppe > > > --- Lun 2/3/09, Martin Davis ha scritto: > >> Da: Martin Davis >> Oggetto: Re: [JPP-Devel] question to Michael - Beanshell >> A: "OpenJump develop and use" >> Data: Lunedì 2 marzo 2009, 19:29 >> Not sure if this is quite on the same track, but I'm >> planning to make a >> plugin which will allow JEQL to operate within JUMP. JEQL >> provides a >> much higher-level language than Beanshell, so it might be >> close to what >> you're looking for with a "Model Builder". >> >> Ultimately it would be cool to provide a Visual Programming >> interface to >> JEQL, which would make this even easier to use. Does the >> Sextante Model >> Builder provide a graphical interface? >> >> Michaël Michaud wrote: >> > Giuseppe Aruta a écrit : >> > >> >> Hi Michael, >> >> a couple of question: >> >> 1) Is it possible to create a bean tool which >> automatically calculate the x,y coordinates of a point layer >> and write them as attributes? This script will be quite >> useful for GPS support. >> >> >> >> >> > Sure, not very difficult, >> > I put it here after. If you want to test it and if it >> suits your needs, >> > we can add it to the distribution. >> > >> >> 2) One of the possible line od OJ development is >> the construction of a "model buider" similar to >> one which in Sextante >> (http://openjump.org/wiki/show/Google+Summer+Of+Code+Ideas+List), >> how Beanshell can be useful for it? >> >> >> >> >> > I did not explore sextante yet, but I like very much >> the idea of model >> > builder. >> > As far as I can imagine a model builder, it uses >> interfaces with inputs, >> > outputs and a methods to process data. >> > The processing part could be defined as a script to >> include methods >> > which are not proposed by the basic model builder. >> > Exemple : >> > The model builder may propose a "filter a >> featureCollection", "union a >> > featureCollection", but miss a "explode a >> featureCollection containing >> > geometryCollections". With beanshell, just do it >> yourself. It's just >> > some thoughts, it may not be so easy to include >> scripting capabilities >> > into such a model and its user interface. >> > >> > Michaël >> > >> > Here is the script to add XY attributes : >> > >> > // This script adds a new layer from a selected one >> > // The new layer has two new attributes >> > // containing X and Y of a coordinate >> > >> > import com.vividsolutions.jump.feature.*; >> > import >> com.vividsolutions.jump.workbench.model.StandardCategoryNames; >> > >> > ll = wc.layerNamePanel.selectedLayers; >> > if (ll.length != 1) >> wc.workbench.frame.warnUser("Exactly one layer must >> > be selected"); >> > else { >> > fc = ll[0].featureCollectionWrapper; >> > fs = fc.featureSchema.clone(); >> > fs.addAttribute("X", >> AttributeType.DOUBLE); >> > fs.addAttribute("Y", >> AttributeType.DOUBLE); >> > resultFC = new FeatureDataset(fs); >> > for (f : fc.features) { >> > nf = new BasicFeature(fs); >> > for (int i = 0 ; i < fs.attributeCount-2 ; >> i++){ >> > nf.setAttribute(i, f.getAttribute(i)); >> > } >> > nf.setAttribute("X", >> f.geometry.coordinate.x); >> > nf.setAttribute("Y", >> f.geometry.coordinate.y); >> > resultFC.add(nf); >> > } >> > >> wc.layerManager.addLayer(StandardCategoryNames.RESULT, >> > ll[0].name+"_XY", resultFC); >> > } >> > >> > >> >> Regards >> >> >> >> Peppe >> >> >> >> __ >> >> Do You Yahoo!? >> >> Poco spazio e tanto spam? Yahoo! Mail ti protegge >> dallo spam e ti da tanto spazio gratuito per i tuoi file e i >> messaggi >> >> http://mail.yahoo.it >> >> >> >> >> -- >> >> Open Source Business Conference (OSBC), March >> 24-25, 2009, San Francisco, CA >> >> -OSBC tackles the biggest issue in open source: >> Open Sourcing the Enterprise >> >> -Strategies to boost innovation and cut costs with >> open source participation >> >> -Receive a $600 discount off the registration fee >> with the source code: SFAD >> >> http://p.sf.net/sfu/XcvMzF8H >> >> ___ >> >> Jump-pilot-devel mailing list >> >> Jump-pilot-devel@lists.sourceforge.net >> >> >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> >> >> >> >> >> >> >> >> > >> > >> > >> -- >> > Open Source Business Conference (OSBC), March 24-25, >> 2009, San Francisco, CA >> > -OSBC tackles the biggest issue in open source: Open >> Sourcing the Enterprise >> > -Strategies to boost innovation and cut costs with >> open source participation >> > -Receive a $600 discount off the registration fee with >> the source code: SFAD >> > http://p.sf.net/sfu/Xcv
[JPP-Devel] Launching OpenJUMP with an embedded JVM for OpenJUMP cd/dvd.
As part of my work with the California Chapter of the OSGeo I would like to create a CD or DVD that contains OpenJUMP. This CD could be distributed (for free) at conferences and seminars. (I might even try to cook up an OpenJUMP workshop or two.) I was wondering if anyone could help me get started with the process of packaging OJ with its own JVM. I think this would make the program easier to install for a lot of users. (I know it increases the installation size.) I think Larry may have done this for SkyJUMP? My goal is to make installation of the program from the CD as simple as possible. I may have two versions of the CD. One for "beginners" that includes an OJ with a JVM, and another for more experienced computers users that does not come wrapped with a JVM. (I'm also thinking of throwing some sample data and a couple of short video tutorials on the CD.) Please let me know what you guys think. Are there major reasons why I shouldn't build a distro of OJ with an included JVM? Are there reasons why this wouldn't be a good way to distribute OJ on CD? SS -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Launching OpenJUMP with an embedded JVM for OpenJUMP cd/dvd.
Hei.. Peppe did some stuff with a usb stick: http://openjump.org/wiki/show/Portable+OpenJump so a bit different but still related stefan Sunburned Surveyor wrote: > As part of my work with the California Chapter of the OSGeo I would > like to create a CD or DVD that contains OpenJUMP. This CD could be > distributed (for free) at conferences and seminars. (I might even try > to cook up an OpenJUMP workshop or two.) > > I was wondering if anyone could help me get started with the process > of packaging OJ with its own JVM. I think this would make the program > easier to install for a lot of users. (I know it increases the > installation size.) I think Larry may have done this for SkyJUMP? My > goal is to make installation of the program from the CD as simple as > possible. > > I may have two versions of the CD. One for "beginners" that includes > an OJ with a JVM, and another for more experienced computers users > that does not come wrapped with a JVM. (I'm also thinking of throwing > some sample data and a couple of short video tutorials on the CD.) > > Please let me know what you guys think. Are there major reasons why I > shouldn't build a distro of OJ with an included JVM? Are there reasons > why this wouldn't be a good way to distribute OJ on CD? > > SS > > -- > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > ___ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] new bugs - getting ready for OJ 1.3 release - translators sought
Hei guys, (i) - new bugs I added a couple of bugs todayand somebody added some more the last weeks (related to the autocomplete polygon) Not sure if we fix them all before the next release but it would be nice to have fixed onre or two. https://sourceforge.net/tracker/?group_id=118054&atid=679906 (ii) - getting ready for OJ 1.3 I think we don't implement any new features for the OpenJUMP 1.3 release that I would plan to do at latest in 4 Weeks - so we do a Feature Freeze by now . However, if somebody has a "must be in"-feature, he may raise his voice. So what would be necessary to do by now for the next release: - I and anybody who wants would try to look into 2-3 of those new bugs (especially the JML LinearRing one is bugging, and the spatial query selection one) - We need to translate the new strings which I added the last weeks. Can we do that in the next 3 weeks? Who volunteers for translations? (note: most of the strings, i.e. in Italian, French, Japanese and Finnish, that requires translation are beginning with "T:", so it should be easier to find them now. For Spannish, Portugese, Brazilian Portugese and Czeck the situation is more complicated). After the release I would start working on the revision for the Functions-Doc Peppe send me a while ago. So that we can put the doc for download a few weeks later. @Pepe: I hope you can wait for my feedback until the release is done. So far I have done the first 20 pages only. any questions, comments or complaints? (I am an expert in overlooking things ;) stefan PS: I hope I can still find all the stuff it needed to do a release as we changed the NB in between - and the last releases have been build on those. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel