Re: [JPP-Devel] Select shape by attribute
Hello again, thank you for your replies. Maybe I should have stated that I'm working on a plugin, not an external application. Thanks again Helmut Am 07.07.2010 08:05, schrieb Matthias Scholz: > Hi Sunburned Surveyor, > > at the moment I use a textfile, because this was the simplest way and > there are no needs to change anything in the Archikart Software. I've > reused a interface to an other GIS. > > Matthias > >> Matthias, >> >> I'm curious what method you are using to communicate with OpenJUMP. >> Can you tell me? >> >> The Sunburned Surveyor >> >> On Tue, Jul 6, 2010 at 12:04 PM, Matthias Scholz wrote: >> >> >>> Hi Helmut, >>> >>> I've build a plugin for interfacing OJ with an external application >>> called "Archikart" (www.archikart.de), for use at my employer. You can >>> select a geometry in OJ an show the metadata in Archikart and the >>> reverse way, show a geometry in OJ from Archikart. The plugin searches >>> on all layers for the feature, selects the features and zoom to the >>> selected features. >>> At the moment we use this plugin for production, but it is not yet ready >>> for publishing. I plan the public release for the end of the year. If >>> you are interested, i can mail you the Netbeans project. If you work on >>> a similar project, it would be nice if we can build one common plugin >>> for interfacing OJ from external applications and vice versa. >>> >>> Matthias >>> >>> Hello everybody, thanks to your help I was able to start my project. So far I am able to extract some attributes from the selected elements look them up in a mysql-database and display the results in openJump. This was possible for me through the HowTo in your developers docs section. Now I need the other way round, i.e. look up some data in my mysql-database (which is the easy part), find the corosponding attributes in the displayed layer, select the feature (best by changeing the background-(fill-)color) and zoom to it. I'm not sure where to find the necessary methods in openJump - has anybody got a short example? Thanks and regards Helmut -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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 Sprint >>> What will you do first with EVO, the first 4G phone? >>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>> ___ >>> 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 Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> ___ >> 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 Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > ___ > 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Select shape by attribute
Hi Helmut, try the following (without any guarantee): //iterate over the features of your layer, select some of them by attribute and build an envelope including all the geometries of the features to select Layer lyr = context.getLayerManager().getLayer("yourLayer"); FeatureCollectionWrapper fcw = lyr.getFeatureCollectionWrapper(); List features = fcw.getFeatures(); Envelope envToZoomTo=new Envelope(); for (Feature feature : features) { if (feature.getString("YourAttribute").equalsIgnoreCase("theValueTheFeaturesToSelectShouldHave")) { context.getLayerViewPanel().getSelectionManager().getFeatureSelection().selectItems(lyr, feature); envToZoomTo.expandToInclude(feature.getGeometry().getEnvelopeInternal()); } } //zoom to the envelope (with a factor which determines the zooming-level) context.getLayerViewPanel().getViewport().zoom(EnvelopeUtil.bufferByFraction(envToZoomTo,0.5)); for changing the fill-color you should add a temporary legend-field in the attribute-table of your layer, fill it with a special value for the features to select and set the style of the layer respectively. For working with styles look here: http://sourceforge.net/mailarchive/forum.php?thread_name=4d70f030909180629s2fa48105kb3068f87aeaf%40mail.gmail.com&forum_name=jump-pilot-devel Helmut Seidel M.A. schrieb: Hello again, thank you for your replies. Maybe I should have stated that I'm working on a plugin, not an external application. Thanks again Helmut Am 07.07.2010 08:05, schrieb Matthias Scholz: Hi Sunburned Surveyor, at the moment I use a textfile, because this was the simplest way and there are no needs to change anything in the Archikart Software. I've reused a interface to an other GIS. Matthias Matthias, I'm curious what method you are using to communicate with OpenJUMP. Can you tell me? The Sunburned Surveyor On Tue, Jul 6, 2010 at 12:04 PM, Matthias Scholz wrote: Hi Helmut, I've build a plugin for interfacing OJ with an external application called "Archikart" (www.archikart.de), for use at my employer. You can select a geometry in OJ an show the metadata in Archikart and the reverse way, show a geometry in OJ from Archikart. The plugin searches on all layers for the feature, selects the features and zoom to the selected features. At the moment we use this plugin for production, but it is not yet ready for publishing. I plan the public release for the end of the year. If you are interested, i can mail you the Netbeans project. If you work on a similar project, it would be nice if we can build one common plugin for interfacing OJ from external applications and vice versa. Matthias Hello everybody, thanks to your help I was able to start my project. So far I am able to extract some attributes from the selected elements look them up in a mysql-database and display the results in openJump. This was possible for me through the HowTo in your developers docs section. Now I need the other way round, i.e. look up some data in my mysql-database (which is the easy part), find the corosponding attributes in the displayed layer, select the feature (best by changeing the background-(fill-)color) and zoom to it. I'm not sure where to find the necessary methods in openJump - has anybody got a short example? Thanks and regards Helmut -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___
[JPP-Devel] interacting with another application
Hi Matthias, I opened another topic for the discussion inside the topic "Select shape by attribute" because things are mixing a bit, I think. I want to create an interface between OJ and an external application, too. I will have to use a xml-file for communication (because the other application provides this functionality allready for interacting with other apps than OJ). Did you write a listener-Thread or something for getting the focus if requests from the external application arrive per file? That was my plan, but I am not yet get around to test that and I'm not quite sure about the performance... Regards, Nils -- Dipl.-Biol. Nils Kuhn Email: nils.k...@bws-gmbh.de Fon: +49 (0)40 - 23 16 65-26 Fax: +49 (0)40 - 23 16 65-01 BWS GmbH Gotenstraße 14 D-20097 Hamburg Sitz der Gesellschaft: Hamburg Amtsgericht Hamburg: HRB 87830 Geschäftsführer: Dipl.-Geol. Robert Dési Dipl.-Geogr. Hydr. Lutz Krob * HINWEIS: Diese E-Mail und beigefügte Dateien dienen nur der Vorabstimmung und stellen keine rechtswirksame Willenserklärungen oder Beratungsleistungen dar. Es können keine Haftungsansprüche gegenüber der BWS GmbH geltend gemacht werden. Alle rechtswirksamen Äußerungen (Verträge, Stellungnahmen, Berechnungen, Vermerke etc.) erhalten Sie von uns in schriftlicher Form und gegebenenfalls auf separatem Datenträger. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte den Absender und vernichten Sie diese E-Mail. Unerlaubtes Kopieren und Weiterleiten dieser E-Mail sind nicht gestattet. * -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] interacting with another application
Hi Nils! > Hi Matthias, > > I opened another topic for the discussion inside the topic "Select > shape by attribute" because things are mixing a bit, I think. > > I want to create an interface between OJ and an external application, > too. I will have to use a xml-file for communication (because the > other application provides this functionality allready for interacting > with other apps than OJ). Did you write a listener-Thread or something > for getting the focus if requests from the external application arrive > per file? At the moment the plugin have a "listener thread", wich looks every 2000ms (configurable) for a new file. If you can mail me a XML testfile and a description, then I will see if it is possible to integrate your XML file format. > That was my plan, but I am not yet get around to test that and I'm not > quite sure about the performance... In our environment (german government) is that no performance problem with a file for interacting with OJ, because the users works mostly with max. 100 objects to show in OJ. With a grater amount it shold no problem too. Matthias > > Regards, > Nils > > > > -- > Dipl.-Biol. Nils Kuhn > Email: nils.k...@bws-gmbh.de > Fon: +49 (0)40 - 23 16 65-26 > Fax: +49 (0)40 - 23 16 65-01 > > BWS GmbH > Gotenstraße 14 > D-20097 Hamburg > Sitz der Gesellschaft: Hamburg > Amtsgericht Hamburg: HRB 87830 > Geschäftsführer: > Dipl.-Geol. Robert Dési > Dipl.-Geogr. Hydr. Lutz Krob > > > * > > HINWEIS: > Diese E-Mail und beigefügte Dateien dienen nur der Vorabstimmung und stellen > keine rechtswirksame Willenserklärungen oder Beratungsleistungen dar. Es > können > keine Haftungsansprüche gegenüber der BWS GmbH geltend gemacht werden. > Alle rechtswirksamen Äußerungen (Verträge, Stellungnahmen, Berechnungen, > Vermerke etc.) > erhalten Sie von uns in schriftlicher Form und gegebenenfalls auf separatem > Datenträger. > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich > erhalten haben, > informieren Sie bitte den Absender und vernichten Sie diese E-Mail. > Unerlaubtes Kopieren und Weiterleiten dieser E-Mail sind nicht gestattet. > > * > > > > -- > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > > ___ > 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] interacting with another application
Matthias, Can you share your code with us? I'd be interested in seeing how the communication process you described was coded. The Sunburned Surveyor On Wed, Jul 7, 2010 at 5:11 AM, Matthias Scholz wrote: > Hi Nils! >> Hi Matthias, >> >> I opened another topic for the discussion inside the topic "Select >> shape by attribute" because things are mixing a bit, I think. >> >> I want to create an interface between OJ and an external application, >> too. I will have to use a xml-file for communication (because the >> other application provides this functionality allready for interacting >> with other apps than OJ). Did you write a listener-Thread or something >> for getting the focus if requests from the external application arrive >> per file? > At the moment the plugin have a "listener thread", wich looks every > 2000ms (configurable) for a new file. If you can mail me a XML testfile > and a description, then I will see if it is possible to integrate your > XML file format. >> That was my plan, but I am not yet get around to test that and I'm not >> quite sure about the performance... > In our environment (german government) is that no performance problem > with a file for interacting with OJ, because the users works mostly > with max. 100 objects to show in OJ. With a grater amount it shold no > problem too. > > Matthias >> >> Regards, >> Nils >> >> >> >> -- >> Dipl.-Biol. Nils Kuhn >> Email: nils.k...@bws-gmbh.de >> Fon: +49 (0)40 - 23 16 65-26 >> Fax: +49 (0)40 - 23 16 65-01 >> >> BWS GmbH >> Gotenstraße 14 >> D-20097 Hamburg >> Sitz der Gesellschaft: Hamburg >> Amtsgericht Hamburg: HRB 87830 >> Geschäftsführer: >> Dipl.-Geol. Robert Dési >> Dipl.-Geogr. Hydr. Lutz Krob >> >> >> * >> >> HINWEIS: >> Diese E-Mail und beigefügte Dateien dienen nur der Vorabstimmung und stellen >> keine rechtswirksame Willenserklärungen oder Beratungsleistungen dar. Es >> können >> keine Haftungsansprüche gegenüber der BWS GmbH geltend gemacht werden. >> Alle rechtswirksamen Äußerungen (Verträge, Stellungnahmen, Berechnungen, >> Vermerke etc.) >> erhalten Sie von uns in schriftlicher Form und gegebenenfalls auf separatem >> Datenträger. >> Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich >> erhalten haben, >> informieren Sie bitte den Absender und vernichten Sie diese E-Mail. >> Unerlaubtes Kopieren und Weiterleiten dieser E-Mail sind nicht gestattet. >> >> * >> >> >> >> -- >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> >> >> ___ >> 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 Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > ___ > 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] TCC Visual Query
This is an interesting video Michael. I have not seen the plug-in or its author. The Sunburned Surveyor 2010/6/16 Michaël Michaud : > Hi, > > Did anyone see this video : > http://www.youtube.com/watch?v=J1vh6kCcIBM > > It shows a plugin for OpenJUMP I have never seen before. > Any information about authors, licence... > > Michaël > > -- > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > ___ > 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] interacting with another application
Hi, I'm interested, too. My first approach was like the attached class. Nils Sunburned Surveyor schrieb: Matthias, Can you share your code with us? I'd be interested in seeing how the communication process you described was coded. The Sunburned Surveyor On Wed, Jul 7, 2010 at 5:11 AM, Matthias Scholz wrote: Hi Nils! Hi Matthias, I opened another topic for the discussion inside the topic "Select shape by attribute" because things are mixing a bit, I think. I want to create an interface between OJ and an external application, too. I will have to use a xml-file for communication (because the other application provides this functionality allready for interacting with other apps than OJ). Did you write a listener-Thread or something for getting the focus if requests from the external application arrive per file? At the moment the plugin have a "listener thread", wich looks every 2000ms (configurable) for a new file. If you can mail me a XML testfile and a description, then I will see if it is possible to integrate your XML file format. That was my plan, but I am not yet get around to test that and I'm not quite sure about the performance... In our environment (german government) is that no performance problem with a file for interacting with OJ, because the users works mostly with max. 100 objects to show in OJ. With a grater amount it shold no problem too. Matthias Regards, Nils -- Dipl.-Biol. Nils Kuhn Email: nils.k...@bws-gmbh.de Fon: +49 (0)40 - 23 16 65-26 Fax: +49 (0)40 - 23 16 65-01 BWS GmbH Gotenstraße 14 D-20097 Hamburg Sitz der Gesellschaft: Hamburg Amtsgericht Hamburg: HRB 87830 Geschäftsführer: Dipl.-Geol. Robert Dési Dipl.-Geogr. Hydr. Lutz Krob * HINWEIS: Diese E-Mail und beigefügte Dateien dienen nur der Vorabstimmung und stellen keine rechtswirksame Willenserklärungen oder Beratungsleistungen dar. Es können keine Haftungsansprüche gegenüber der BWS GmbH geltend gemacht werden. Alle rechtswirksamen Äußerungen (Verträge, Stellungnahmen, Berechnungen, Vermerke etc.) erhalten Sie von uns in schriftlicher Form und gegebenenfalls auf separatem Datenträger. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte den Absender und vernichten Sie diese E-Mail. Unerlaubtes Kopieren und Weiterleiten dieser E-Mail sind nicht gestattet. * -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- Dipl.-Biol. Nils Kuhn Email: nils.k...@bws-gmbh.de Fon: +49 (0)40 - 23 16 65-26 Fax: +49 (0)40 - 23 16 65-01 BWS GmbH Gotenstraße 14 D-20097 Hamburg Sitz der Gesellschaft: Hamburg Amtsgericht Hamburg: HRB 87830 Geschäftsführer: Dipl.-Geol. Robert Dési Dipl.-Geogr. Hydr. Lutz Krob * HINWEIS: Diese E-Mail und beigefügte Dateien dienen nur der Vorabstimmung und stellen keine rechtswirksame Willenserklärungen oder Beratungsleistungen dar. Es können keine Haftungsansprüche gegenüber der BWS GmbH geltend gemacht werden. Alle rechtswirksamen Äußerungen (Verträge, Stellungnahmen, Berechnungen, Vermerke etc.) erhalten Sie von uns in schriftlicher Form und gegebenenfalls auf separatem Datenträger. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, i
Re: [JPP-Devel] SextanteRasterLayer, pixel values and visualization
great - I will have a look at it hopefully at the weekend stefan Alberto De Luca wrote: > Stefan, > > thank you for your (not so late) answer, you told me you'd be away, so > no problem at all! > > I had a look at Erwan's plug in: very interesting work! Briefly, if I > got it right: he wrote a RasterLayer class that extends the jump Layer > class. He then uses some geotools classes to read the ASCII grid file, > and the GT GridCoverage2D class to store the raster values and > properties. This is a useful class, because it stores the rescaled > raster values as a PlanarImage (that can be passed to OJ for display), > but also the actual cell values (that can be retrieved anytime using the > appropriate method). > > On the other side, it seems to me that the OJ RasterImageLayer class > stores only the image information. But I think it shouldn't be difficult > to add a field (and a getter) to handle the raster cell data. I gave it > a try (only for FLT raster file handling, which I know best): > - I created a double[][] to store the raster values; > - I created a getter to get the whole array (this clearly could be > improved by adding direct access to single cell values); > > When an FLT is loaded: > - the array is filled right after the raster is read; > - the values are rescaled and passed over for visualization (as a b/w > stretched image); > > When the actual values are needed, they can be accessed via the getter. > This could be useful also when the image is redrawn, because it would > avoid the need to reload the raster form scratch. > > What do you think? Does this make any sense? > > You can find attached to this e-mail: > - inside the OJClasess archive the AddRasterImageLayerWizard, the > RasterImageLayer and the SelectRasterImageFilesPanel class that I > modified, plus the GridFloat class that actually reads the flt file. > - inside the Flt_plugin archive: a small plug in that creates a button > tool to inspect raster cell values (jar + src). You can try it out by > loading an flt raster (I included one in the archive) as a "Sextante > Raster Image", it should display in b/w. You can then use the tool to > inspect its cell values. I didn't do much testing though... > > Alberto > > > On 07/07/2010 05:41, Stefan Steiniger wrote: >> Hei Alberto, >> >> late answer but something just came to my mind. >> There was an ESRI Grid plugin by Erwan Bocher for OpenJUMP that allowed >> to display different colors for a DEM. That should be something we want >> - right? >> >> I think the code is here: >> http://geosysin.iict.ch/irstv-trac/browser/openjump/plugin/gridCoverage/org/reso/openJump/raster?rev=96 >> >> >> >> can you look into it? >> >> Not sure what would be needed to make it work with OpenJUMP and the >> Sextante Raster. But we can do changes to the core here... >> >> stefan >> >> PS: I was last week away - so thats why I didn't respond earlier; need >> to catch up with emails now. >> >> Alberto De Luca schrieb: >> >>> Larry and Steven, >>> >>> sorry for bothering you, I know you're both busy... I had a deeper look >>> at the RasterImageLayer class. Apparently there is a scaling function >>> there (as Stefan pointed out), but for what I can understand, the image >>> is read, then rescaled, then added to a Layerable. This means that the >>> Layerable stores the already scaled cell values and, if the actual cell >>> values are needed, the image needs to be reloaded. >>> >>> I don't see how this model can be tweaked to have on one side the cell >>> values stored in memory and on the other a Layerable that can be >>> rendered properly. What do you reckon? Please tell me I'm wrong. >>> >>> Thanks >>> Alberto >>> >>> On 29/06/2010 16:32, Larry Becker wrote: >>> Hi Alberto, I did take a look at the render architecture to see how it might be done, but unfortunately I don't have a lot of time right now to help with this effort so any advice I have is only a guess, but I think it might have to happen in the image layer's paint method. Larry On Tue, Jun 29, 2010 at 2:01 AM, Alberto De Luca mailto:i...@geomaticaeambiente.it>> wrote: Stefan and Larry, thank you for your help. Unfortunately I'm not an expert either, so I'm really not sure about what to do. I kind of like Larry's approach (but I need to think about it to see if I can work something out of it). I'll have a deeper look at the pirol classes too... Alberto On 28/06/2010 21:49, Stefan Steiniger wrote: > actually.. wasn't there a scaling function somewehere in the pirol classes? > so the place to correct is in those? > > Alberto De Luca schrieb: > >> Dear OJ developers, >> >> I was working on the Sextante classes, trying to enhance raster
Re: [JPP-Devel] interacting with another application
Hi! That's interprocess communication. What about communicating between openjump and external applications via network sockets? I implemented a jsonrpc 2.0 server (http://en.wikipedia.org/wiki/JSON-RPC) and it works very well. Here some example code in groovy (placed in an extension class) which calls a plugin remotely. static configureJSONRPCServer(context, port=31415) { def blackboard = context.getWorkbenchContext().getBlackboard() blackboard.put("dgfjump.jsonrpc.import", null) blackboard.put("dgfjump.jsonrpc.export", null) def server = new Server(port) server.registerMethod("tell", ["client", "type", "data"]) { client, type, data -> blackboard.put("dgfjump.jsonrpc.import", data) def importData = new ImportDataPlugIn() importData.initialize(context) importData.execute(context) return true } server.threadServe() } a client that uses a jsonrpc client library can call these rpc methods. there are several existing jsonrpc libraries out there. regards, benjamin 2010/7/7 Nils Kuhn > Hi, > I'm interested, too. > My first approach was like the attached class. > Nils > > > Sunburned Surveyor schrieb: > > Matthias, > > Can you share your code with us? > > I'd be interested in seeing how the communication process you > described was coded. > > The Sunburned Surveyor > > On Wed, Jul 7, 2010 at 5:11 AM, Matthias Scholz > wrote: > > > Hi Nils! > > > Hi Matthias, > > I opened another topic for the discussion inside the topic "Select > shape by attribute" because things are mixing a bit, I think. > > I want to create an interface between OJ and an external application, > too. I will have to use a xml-file for communication (because the > other application provides this functionality allready for interacting > with other apps than OJ). Did you write a listener-Thread or something > for getting the focus if requests from the external application arrive > per file? > > > At the moment the plugin have a "listener thread", wich looks every > 2000ms (configurable) for a new file. If you can mail me a XML testfile > and a description, then I will see if it is possible to integrate your > XML file format. > > > That was my plan, but I am not yet get around to test that and I'm not > quite sure about the performance... > > > In our environment (german government) is that no performance problem > with a file for interacting with OJ, because the users works mostly > with max. 100 objects to show in OJ. With a grater amount it shold no > problem too. > > Matthias > > > Regards, > Nils > > > > -- > Dipl.-Biol. Nils Kuhn > Email: nils.k...@bws-gmbh.de > Fon: +49 (0)40 - 23 16 65-26 > Fax: +49 (0)40 - 23 16 65-01 > > BWS GmbH > Gotenstraße 14 > D-20097 Hamburg > Sitz der Gesellschaft: Hamburg > Amtsgericht Hamburg: HRB 87830 > Geschäftsführer: > Dipl.-Geol. Robert Dési > Dipl.-Geogr. Hydr. Lutz Krob > > > * > > HINWEIS: > Diese E-Mail und beigefügte Dateien dienen nur der Vorabstimmung und stellen > keine rechtswirksame Willenserklärungen oder Beratungsleistungen dar. Es > können > keine Haftungsansprüche gegenüber der BWS GmbH geltend gemacht werden. > Alle rechtswirksamen Äußerungen (Verträge, Stellungnahmen, Berechnungen, > Vermerke etc.) > erhalten Sie von uns in schriftlicher Form und gegebenenfalls auf separatem > Datenträger. > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich > erhalten haben, > informieren Sie bitte den Absender und vernichten Sie diese E-Mail. > Unerlaubtes Kopieren und Weiterleiten dieser E-Mail sind nicht gestattet. > > * > > > > -- > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > > ___ > Jump-pilot-devel mailing > listjump-pilot-de...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > > -- > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > ___ > Jump-pilot-devel mailing > listjump-pilot-de...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > > -- > This SF