Re: [JPP-Devel] Default Type for bigint
Hi Michaël, Nice ! Would be interesting to know more about your use case. Do statistics on spatial data of customer portfolio, sellers. With a large interractivity. The data are in a PostgrSQL data base with the Postgis extension. Some table ave geometry and others not. I provided the queries joining the two types of tables for information a day. In this case OpenJump is better than ArcGIS (with standalone database. no SDE) We can simply join layer with data in CSF, Excel format. Just say that casting a database bigint (64 bits) to a java int (32 bit) may change the value. Database id can be more than 2^32, and truncating the value is unsafe, especially for an identifier. You're right. Right, it would be possible to have different behaviours for bigint PK and for other bigint. As it is not a very simple solution, and not completely satisfying (still convert long to int), I wonder it it wouldn't be better to add Long type to Attribute.Type. I'm totaly agree with you. What do you think of an intermediate solution in the meantime to add the Attribute.Type BOOLEAN and LONG? Convert the bigint PK in Object and the other bigint in integer, with throw an exception if their values exceeds a threshold (2^32). Or from ResultSetMetadata if fields isNullable it is not PK !! Hopefully, I will have a beta and a bit of documentation before the end of the month. Thanks for the proposition, I'll let you know. As you want. as soon as possible. Do you have a svn Branch? a git repository? I work in train and offline scm is better for me. Working on OpenJUMP datatypes (adding Boolean or Long) is a recurrent topic. I think it is a big work because it has side effect on all I/O framework, but if you have ideas and time to work on the topic, you're welcome. I have time. and I work on Linux OS (debian) and my client work with Windows. Eric -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] Default Type for bigint
Hi, in com.vividsolutions.jump.datastore.jdbc.ValueConverterFactory Currently the bigint in database table is transcribed into a String object type. But the default type of aggregation is also bigint. for example: SELECT code_departement, count (*) as nb FROM anyTable GROUP BY 1 nb has bigint! I think we should change the type attribute has AttributType.Object to AttributType.INTERGER What is your opinion on the subject? regards Eric -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Default Type for bigint
Hi Michaël Yes i always uses OpenJump. And I tried to do accept as GIS tools by my society (a big europeen insurance society). If I resume the situation: handle identifier( sequence) by integers is not sure ( I don't understand why, but I trust you ) but for others values is preferable because requests are less long to write. PostgreSQL jdbc implementation can't retrive key or primary key information about table? Handle sequence with object and other bigint with integer. An other subject can I help you on the new postgis driver? Do you have a road map? Kinds regards Eric Lemesre (de mon Androïde) Le 2 oct. 2013 22:24, Michaël Michaud michael.mich...@free.fr a écrit : Hi Eric, Nice to see you still use OpenJUMP ;-) Currently, I'm not in favour of this change and have a few reasons : I'm working on a new postgis driver where I need to manage database identifiers. Often, database identifiers use bigint (from sequence). bigint are naturally converted to java long and I choose to encapsulate it into an Object (it has been converted to a String until september 2013). Casting a bigint to an int does not seem safe enough to me. For a count operation, it is ok as we rarely manage more than 1M features in OJ, but for identifiers, it would be really unsafe. Moreover, it is quite easy to cast count() to int explicitely with for example SELECT code, count (*)::integer as nb FROM anyTable GROUP BY 1 I have also tested to cast AttributeType.OBJECT to AttributeType.INTEGER afterwards in the schema editor, and it seems to work well. Other opinions ? Michaël Hi, in com.vividsolutions.jump.datastore.jdbc.ValueConverterFactory Currently the bigint in database table is transcribed into a String object type. But the default type of aggregation is also bigint. for example: SELECT code_departement, count (*) as nb FROM anyTable GROUP BY 1 nb has bigint! I think we should change the type attribute has AttributType.Object to AttributType.INTERGER What is your opinion on the subject? regards Eric -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk ___ Jump-pilot-devel mailing listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] @Eric - PostGIS with OpenWizard (Italian translation)
Hi Peppe, If you have feedback? I Like it. Eric 2007/11/20, Giuseppe Aruta [EMAIL PROTECTED]: Hi Eric, I am looking forward to test your Postgis plugin Peppe --- Eric Lemesre [EMAIL PROTECTED] ha scritto: Hi peppe, Thank you. I Commit this file this night. (i have'nt SVN acces in my work :-{ ) Regards Eric 2007/11/20, Giuseppe Aruta [EMAIL PROTECTED]: Hi Eric, I translate the jump_fr.properties file in Italian. It is a text file (jump_it.properties.txt) which I add to this mail . Tell me if it is there Regards Peppe ___ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html net.refractions.postgis.PostGISCommonDriverPanel.server = Server net.refractions.postgis.PostGISCommonDriverPanel.port = Porta net.refractions.postgis.PostGISCommonDriverPanel.database = Archivio net.refractions.postgis.PostGISCommonDriverPanel.table = Tabella net.refractions.postgis.PostGISCommonDriverPanel.username = Username net.refractions.postgis.PostGISCommonDriverPanel.password = Password net.refractions.postgis.PostGISCommonDriverPanel.where = dove net.refractions.postgis.PostGISConnection.overwrite.existing = Sovrascrivere la Tabella esistente {0} ? net.refractions.postgis.PostGISConnection.overwrite = OverWrite {0} ? net.refractions.postgis.PostGISSaveDriverPanel.INSERT_HELP_STRING = Creare la Tabella se non \u00E9 già definita, poi inserire nuove geometrie in essa. net.refractions.postgis.PostGISSaveDriverPanel.UPDATE_HELP_STRING = Inserire nuove righe o aggiornare le righe esistenti nella Tabella, basate sulla colonna unica specificata (chiave primaria). Devi specificare un unico nome-colonna esistente sia nello schema elementi che nella Tabella del Database. net.refractions.postgis.PostGISSaveDriverPanel.DELETE_HELP_STRING = Creare una nuova Tabella PostGIS senza CONSTRAINTS e salvare il livello. net.refractions.postgis.PostGISSaveDriverPanel.OVERWRITE_HELP_STRING = Sovrascrivere una Tabella PostGIS esistente e conservare Regole della Tabella. net.refractions.postgis.PostGISSaveDriverPanel.select-save-method = Seleziona metodo salvataggio\: net.refractions.postgis.PostGISSaveDriverPanel.new-table = Nuova Tabella net.refractions.postgis.PostGISSaveDriverPanel.overwrite = Sovrascrivere net.refractions.postgis.PostGISSaveDriverPanel.insert = Inserire net.refractions.postgis.PostGISSaveDriverPanel.unique-Column = Colonna Unica\: net.refractions.postgis.AddPostGISLayerWizardPanel = Driver PostGIS net.refractions.postgis.AddPostGISLayerWizardPanel.instructions = Definire proprietà per i Dati Postgis. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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: http://it.docs.yahoo.com/nowyoucan.html - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] @Eric - PostGIS with OpenWizard (Italian translation)
Hi peppe, Thank you. I Commit this file this night. (i have'nt SVN acces in my work :-{ ) Regards Eric 2007/11/20, Giuseppe Aruta [EMAIL PROTECTED]: Hi Eric, I translate the jump_fr.properties file in Italian. It is a text file (jump_it.properties.txt) which I add to this mail . Tell me if it is there Regards Peppe ___ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html net.refractions.postgis.PostGISCommonDriverPanel.server = Server net.refractions.postgis.PostGISCommonDriverPanel.port = Porta net.refractions.postgis.PostGISCommonDriverPanel.database = Archivio net.refractions.postgis.PostGISCommonDriverPanel.table = Tabella net.refractions.postgis.PostGISCommonDriverPanel.username = Username net.refractions.postgis.PostGISCommonDriverPanel.password = Password net.refractions.postgis.PostGISCommonDriverPanel.where = dove net.refractions.postgis.PostGISConnection.overwrite.existing = Sovrascrivere la Tabella esistente {0} ? net.refractions.postgis.PostGISConnection.overwrite = OverWrite {0} ? net.refractions.postgis.PostGISSaveDriverPanel.INSERT_HELP_STRING = Creare la Tabella se non \u00E9 già definita, poi inserire nuove geometrie in essa. net.refractions.postgis.PostGISSaveDriverPanel.UPDATE_HELP_STRING = Inserire nuove righe o aggiornare le righe esistenti nella Tabella, basate sulla colonna unica specificata (chiave primaria). Devi specificare un unico nome-colonna esistente sia nello schema elementi che nella Tabella del Database. net.refractions.postgis.PostGISSaveDriverPanel.DELETE_HELP_STRING = Creare una nuova Tabella PostGIS senza CONSTRAINTS e salvare il livello. net.refractions.postgis.PostGISSaveDriverPanel.OVERWRITE_HELP_STRING = Sovrascrivere una Tabella PostGIS esistente e conservare Regole della Tabella. net.refractions.postgis.PostGISSaveDriverPanel.select-save-method = Seleziona metodo salvataggio\: net.refractions.postgis.PostGISSaveDriverPanel.new-table = Nuova Tabella net.refractions.postgis.PostGISSaveDriverPanel.overwrite = Sovrascrivere net.refractions.postgis.PostGISSaveDriverPanel.insert = Inserire net.refractions.postgis.PostGISSaveDriverPanel.unique-Column = Colonna Unica\: net.refractions.postgis.AddPostGISLayerWizardPanel = Driver PostGIS net.refractions.postgis.AddPostGISLayerWizardPanel.instructions = Definire proprietà per i Dati Postgis. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] PostGIS with OpenWizard
Hi, The New version of PostGIS plugIn with OpenWizard is in repository. Somme file will be added for translation in https://jump-pilot.svn.sourceforge.net/svnroot/jump-pilot/plug-ins/PostGISPlugin/trunk/src/main/resources/net/refractions/postgis/language jump.properties jump_fr.properties I need somme help to translate in other language. I dont understand one thing : when i press finish or cancel the layer is created. Thanks Eric - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] PostGIS with OpenWizard
Paul, I add one function in I18N.java : == public static String getMessage(final String category, final String label, final Object[] objects) { I18N i18n = getInstance(category); return i18n.getMessage(label,objects); } == and a mistack with svn manipulation forget this change. I commit this change Eric 2007/11/19, Paul Austin [EMAIL PROTECTED]: Eric, I can't compile it, there is the following error. The method getMessage(String, Object[]) in the type I18N is not applicable for the arguments (String, String, String[]) PostGISPlugin/src/main/java/net/refractions/postgis/PostGISConnection.java line 391 Paul Eric Lemesre wrote: Hi, The New version of PostGIS plugIn with OpenWizard is in repository. Somme file will be added for translation in https://jump-pilot.svn.sourceforge.net/svnroot/jump-pilot/plug-ins/PostGISPlugin/trunk/src/main/resources/net/refractions/postgis/language jump.properties jump_fr.properties I need somme help to translate in other language. I dont understand one thing : when i press finish or cancel the layer is created. Thanks Eric - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] Maven Build
Hi, What do you think build src.jar and javadoc.jar in lifecycle? and install this artifact with goal install ? when you add to pom.xml this fragment : build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-source-plugin/artifactId executions execution idattach-sources/id goals goaljar/goal /goals /execution /executions /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId executions execution idattach-javadocs/id goals goaljar/goal /goals /execution /executions /plugin plugins build Eric - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] More than one datasource by layer?
Of course all feature in layer share the same shema. An exemple : * I have some polygone in shape file : GEOMETRY (MULTYPOILYGONE) ID (INTEGER) * I have in datasource (DS1) lot of generic attributes for this polygone like ID (INTEGER) POPULATION (DOUBLE) MENAGE (DOUBLE) * in an other datasource (DS2) client attribute ID (INTEGER) NB_CUSTOMER (DOUBLE) NB_CONTRACT ((DOUBLE) i want to have in the same layer GEOMETRY (MULTYPOILYGONE) = from shapeFile ID (INTEGER) = from shapeFile and in DS1 and DS2 POPULATION (DOUBLE) = from DS1 MENAGE (DOUBLE) = from DS1 NB_CUSTOMER (DOUBLE) = from DS2 NB_CONTRACT ((DOUBLE) = from DS2 I want make some analyse (why not build an other field with computation from others) TX_PENETRATION = NB_CUSTOMER / MENAGE and store TX_PENETRATION in an other datasource. What is the better way to code this functionality with lesser intrusive methode? I want to keep compatibility with project xml file from OJ 1.2D (if it possible ;-)) Eric 2007/11/4, Paul Austin [EMAIL PROTECTED]: Layers are tied to a feature collection and all features must share the same schema. If you create custom Java code to load the date from each of those sources and populate the feature collection with that data then there is no reason why you couldn't do what you want. But there is nothing out of the box to do this. What is the use case behind getting the attributes from many places? If the geometry and attributes are in a shape file why not load these into one of the databases then you can create a view of the tables and load that into JUMP? Paul Eric Lemesre wrote: Hi, It possible to have more than one datasource by layer? 1 for Geo datasource (a data source for the géometry) 1..n data source for attributes Exemple : * shapeFile for the geometry * a flat CSV file for some attribute * MysQL database for some other * PostgreSQL database for some others. Eric -- - 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 [EMAIL PROTECTED]://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
Re: [JPP-Devel] More than one datasource by layer?
I can create a view only if i have some right in the database. And it is not necessary the case. It is dangerous in verry big compagny. At this time i have only read rigth in some Database. Eric 2007/11/4, Paul Austin [EMAIL PROTECTED]: Layers are tied to a feature collection and all features must share the same schema. If you create custom Java code to load the date from each of those sources and populate the feature collection with that data then there is no reason why you couldn't do what you want. But there is nothing out of the box to do this. What is the use case behind getting the attributes from many places? If the geometry and attributes are in a shape file why not load these into one of the databases then you can create a view of the tables and load that into JUMP? Paul Eric Lemesre wrote: Hi, It possible to have more than one datasource by layer? 1 for Geo datasource (a data source for the géometry) 1..n data source for attributes Exemple : * shapeFile for the geometry * a flat CSV file for some attribute * MysQL database for some other * PostgreSQL database for some others. Eric -- - 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 [EMAIL PROTECTED]://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
Re: [JPP-Devel] Subversion Time-Lapse View
OK, Designe with GUI builder is easier way to build nice IHM. I would try Mantis because the code seems clean. Eric 2007/11/2, Paul Austin [EMAIL PROTECTED]: Eric, Please try using regular Swing, I'd like to remove Buoy from Open JUMP as I see no real advantage over the functionality offered by swing. Sure it maybe slightly easier for developers who aren't used to swing. But it's just another API that people will have to learn. Paul Eric Lemesre wrote: I would try it this week. Eric 2007/10/31, Stefan Steiniger [EMAIL PROTECTED]: because it is easier to use for non GUI-experts? just a thought, and noted here: http://buoy.sourceforge.net/AboutBuoy.html otherwise, why should michael have used it. but if somebody is able to remove the buoy code from OJ... i would not object ;) stefan Paul Austin schrieb: We have to ask the question what does Buoy give us over using regular Swing? Paul Stefan Steiniger wrote: but as I said, buoy: http://www.buoybuilder.com/ is already used ;) stefan Eric Lemesre schrieb: Hi all, Thank for this precision. Eric 2007/10/30, Paul Austin [EMAIL PROTECTED]: Eric, Have a look at the SpringLayout manager from Swing. This is a very flexible layout manager. There is a SwingUtilities class that will allow you to make a basic grid layout in the JUMP code base. Unless there is something needed in a 3rd party GUI library try and stick with standard Swing components. Otherwise we'll end up with having a bloated download with all the 3rd party libraries. Paul Stefan Steiniger wrote: There is no best-practice. actually you may have a look on buoy (widget) used already in OJ for Simple Query. stefan Eric Lemesre schrieb: Hi landon, I have no problem with GUI Builder. I want build a new GUI for PostGISPlugin. And i dont know what is the best practice about GUI in openjump. Eric 2007/10/29, Sunburned Surveyor [EMAIL PROTECTED] : Eric, What problem where you having with the GUI builders? Perhaps I can walk you through some rough spots. Also, it is good to remember that most IDE's like Eclipse or Netbeans have a mialing list or forum that you can post questions on. The Sunburned Surveyor On 10/26/07, Eric Lemesre [EMAIL PROTECTED] wrote: Hi jon, Sorry for long time without response. what do you use for build GUI for openjump? I try VEP (Eclipse plugin for calisto - V3.2) - http://www.eclipse.org/vep/ I try Jigloo GUI builder - http://www.cloudgarden.com/jigloo/ NetBean with mantis but I don''t understand very well How import eclipse project Eric 2007/10/20, Jonathan Aquino [EMAIL PROTECTED]: Hi Eric - Interesting ideas! I was just going to leave it as a simple tool. I agree with you that Eclipse has a great diff view. Perhaps someone can take what I've done and use it as the start of an Eclipse plugin. Jon From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Lemesre Sent: Friday, October 19, 2007 2:36 AM To: List for discussion of JPP development and use. Subject: Re: [JPP-Devel] Subversion Time-Lapse View Hi jon, Nice tool. Do you have planed to add this tools as Eclipse plugin? And is it lot of work to add on a bar at left or rigth side to view where is a diff? Eric 2007/10/19, Jonathan Aquino [EMAIL PROTECTED] : Useful tool for Subversion: SVN Time-Lapse View http://code.google.com/p/svn-time-lapse-view/ Lets you examine the history of a file by dragging a slider. Diffs are highlighted in blue. If you want to know who changed a line, when, and for what reason, this is useful. For example, try it with https://jump-pilot.svn.sourceforge.net/svnroot/jump-pilot/core/trunk/src/com /vividsolutions/jump/workbench/JUMPWorkbench.java Jon - 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
[JPP-Devel] More than one datasource by layer?
Hi, It possible to have more than one datasource by layer? 1 for Geo datasource (a data source for the géometry) 1..n data source for attributes Exemple : * shapeFile for the geometry * a flat CSV file for some attribute * MysQL database for some other * PostgreSQL database for some others. Eric - 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] Subversion Time-Lapse View
I would try it this week. Eric 2007/10/31, Stefan Steiniger [EMAIL PROTECTED]: because it is easier to use for non GUI-experts? just a thought, and noted here: http://buoy.sourceforge.net/AboutBuoy.html otherwise, why should michael have used it. but if somebody is able to remove the buoy code from OJ... i would not object ;) stefan Paul Austin schrieb: We have to ask the question what does Buoy give us over using regular Swing? Paul Stefan Steiniger wrote: but as I said, buoy: http://www.buoybuilder.com/ is already used ;) stefan Eric Lemesre schrieb: Hi all, Thank for this precision. Eric 2007/10/30, Paul Austin [EMAIL PROTECTED]: Eric, Have a look at the SpringLayout manager from Swing. This is a very flexible layout manager. There is a SwingUtilities class that will allow you to make a basic grid layout in the JUMP code base. Unless there is something needed in a 3rd party GUI library try and stick with standard Swing components. Otherwise we'll end up with having a bloated download with all the 3rd party libraries. Paul Stefan Steiniger wrote: There is no best-practice. actually you may have a look on buoy (widget) used already in OJ for Simple Query. stefan Eric Lemesre schrieb: Hi landon, I have no problem with GUI Builder. I want build a new GUI for PostGISPlugin. And i dont know what is the best practice about GUI in openjump. Eric 2007/10/29, Sunburned Surveyor [EMAIL PROTECTED]: Eric, What problem where you having with the GUI builders? Perhaps I can walk you through some rough spots. Also, it is good to remember that most IDE's like Eclipse or Netbeans have a mialing list or forum that you can post questions on. The Sunburned Surveyor On 10/26/07, Eric Lemesre [EMAIL PROTECTED] wrote: Hi jon, Sorry for long time without response. what do you use for build GUI for openjump? I try VEP (Eclipse plugin for calisto -V3.2) - http://www.eclipse.org/vep/ I try Jigloo GUI builder - http://www.cloudgarden.com/jigloo/ NetBean with mantis but I don''t understand very well How import eclipse project Eric 2007/10/20, Jonathan Aquino [EMAIL PROTECTED]: Hi Eric - Interesting ideas! I was just going to leave it as a simple tool. I agree with you that Eclipse has a great diff view. Perhaps someone can take what I've done and use it as the start of an Eclipse plugin. Jon From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Lemesre Sent: Friday, October 19, 2007 2:36 AM To: List for discussion of JPP development and use. Subject: Re: [JPP-Devel] Subversion Time-Lapse View Hi jon, Nice tool. Do you have planed to add this tools as Eclipse plugin? And is it lot of work to add on a bar at left or rigth side to view where is a diff? Eric 2007/10/19, Jonathan Aquino [EMAIL PROTECTED]: Useful tool for Subversion: SVN Time-Lapse View http://code.google.com/p/svn-time-lapse-view/ Lets you examine the history of a file by dragging a slider. Diffs are highlighted in blue. If you want to know who changed a line, when, and for what reason, this is useful. For example, try it with https://jump-pilot.svn.sourceforge.net/svnroot/jump-pilot/core/trunk/src/com /vividsolutions/jump/workbench/JUMPWorkbench.java Jon - 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
Re: [JPP-Devel] How to avoid drawing errors when new dialogs are activated from a new frame
Stefan, zip file is filtred by SF you can look all files in http://elprod.free.fr/chartPlugIn/download/ Eric 2007/10/30, Eric Lemesre [EMAIL PROTECTED]: Stefan, BarChartPlugin is not in SIGLE repository i send the code in attachement. I have JFreeChart documentation. I purchase it for 40 Euro Eric 2007/10/30, Stefan Steiniger [EMAIL PROTECTED]: Hei Eric, i will have a look on that SIGLE plugin too.. should be somewhere on my desktop. Actually the problem with JFreeChart is that one needs a doc. @Sunburned: I did not use a JDialog yet - only a frame. But I am going to try the dialog next.*) I also recognized, that the screen-errors appear if I put OpenJUMP in background, i.e. Eclipse on top, and then again on top. The histo-plot is fine, but not OJ. stefan *) I tried.. and it does not work as well whith a Dialog. Seems like there is no other way then looking in the sourcecode of jmathplot. Eric Lemesre schrieb: Hi Stefan, I am an for nothing ;-) I am working on plugin derivate from ChartPlugin intitaly writen by Erwan. It build Histogram from a layer.And this plugin work with JFreeChart. this library is very nice for build, export and print charts. If you want i can post the code. Eric 2007/10/29, Sunburned Surveyor [EMAIL PROTECTED]: Stefan, I am not a GUI expert either, but I may have some information that can help. My SuperSelect program opens a JInternal frame for its configuration form. From this form I can sucessfully launch another JInternal frame for context sensitive help, as you can see in the attached screenshot. I have no problem with painting when I move either the help frame or the configuration frame. This makes me wonder if the problem is with launching a JDialog class from a JInternalFrame. Could you try switching your JDialog classes to JInternal frames to see if this solves the problem? Landon On 10/28/07, Larry Becker [EMAIL PROTECTED] wrote: Hi Stefan, You have wandered into deep waters, and I have no life preserver to toss to you except the advice that it might be easier if you could reorganize your Histogram functionality so that it doesn't have to launch dialogs from your own frame. Failing that, you may need to extend JInternalFrame rather than instantiating one. regards, Larry On 10/27/07, Stefan Steiniger [EMAIL PROTECTED] wrote: Hei Guys, as I am not firm at all with GUI programming it would be nice if somebody could help me with the new Histogram function. What do I do: 1) created a threaded plugin 2) obtain in execute some params (Attribute type and number of ranges) 2) call inside run the following code that creates a Histogram Plot (note: i use jmathplot library) final Plot2DPanel plot = new Plot2DPanel(); plot.addHistogramPlot(this.selAttribute , data, this.ranges); JInternalFrame frame = new JInternalFrame(Histogram); frame.setLayout (new BorderLayout()); frame.add(plot, BorderLayout.CENTER); frame.setVisible (true); context.getWorkbenchFrame().addInternalFrame(frame); the problem: The Plot-panel/Frame for the Histogram contains buttons that activate some other dialogs. For instance a FileChooser to save the plot as png image. If I activate the button the new dialog is only partly visible and the openjump GUI is not redrawn while moving the dialog. (see attached image). Interestingly the histogram plot panel seems to be redrawn but not the histogram frame. I tried as well to make a new menu within the Histogram Frame with the code below. But the problem persists, i.e. the FileChooser is only partly visible and causes graphical errors to the JUMP GUI. Any idea how avoid that the SaveDialog (or any other dialog called) causes graphical errors (i guess threading is the solution - but how?) stefan source-code for calling file dialog and saving the plot-image: == JMenuBar menuBar = new JMenuBar(); frame.setJMenuBar(menuBar); JMenu mTools = new JMenu(Tools); menuBar.add(mTools); mTools.add(new AbstractAction(Save Image as PNG File, IconLoader.icon(disk.png)) { public void actionPerformed(ActionEvent e){ java.io.File file = CreateHistogramPlugIn.selectFile(context); if (file != null){plot.toGraphicFile(file);} }); === using: = public static File selectFile(PlugInContext context){ JFileChooser fc = GUIUtil.createJFileChooserWithOverwritePrompting(png); fc.showSaveDialog(context.getWorkbenchFrame()); File file = fc.getSelectedFile
Re: [JPP-Devel] How to avoid drawing errors when new dialogs are activated from a new frame
Sorry I forgot : I have a doc for JFreeChart. Eric 2007/10/30, Eric Lemesre [EMAIL PROTECTED]: Stefan, zip file is filtred by SF you can look all files in http://elprod.free.fr/chartPlugIn/download/ Eric 2007/10/30, Eric Lemesre [EMAIL PROTECTED]: Stefan, BarChartPlugin is not in SIGLE repository i send the code in attachement. I have JFreeChart documentation. I purchase it for 40 Euro Eric 2007/10/30, Stefan Steiniger [EMAIL PROTECTED]: Hei Eric, i will have a look on that SIGLE plugin too.. should be somewhere on my desktop. Actually the problem with JFreeChart is that one needs a doc. @Sunburned: I did not use a JDialog yet - only a frame. But I am going to try the dialog next.*) I also recognized, that the screen-errors appear if I put OpenJUMP in background, i.e. Eclipse on top, and then again on top. The histo-plot is fine, but not OJ. stefan *) I tried.. and it does not work as well whith a Dialog. Seems like there is no other way then looking in the sourcecode of jmathplot. Eric Lemesre schrieb: Hi Stefan, I am an for nothing ;-) I am working on plugin derivate from ChartPlugin intitaly writen by Erwan. It build Histogram from a layer.And this plugin work with JFreeChart. this library is very nice for build, export and print charts. If you want i can post the code. Eric 2007/10/29, Sunburned Surveyor [EMAIL PROTECTED]: Stefan, I am not a GUI expert either, but I may have some information that can help. My SuperSelect program opens a JInternal frame for its configuration form. From this form I can sucessfully launch another JInternal frame for context sensitive help, as you can see in the attached screenshot. I have no problem with painting when I move either the help frame or the configuration frame. This makes me wonder if the problem is with launching a JDialog class from a JInternalFrame. Could you try switching your JDialog classes to JInternal frames to see if this solves the problem? Landon On 10/28/07, Larry Becker [EMAIL PROTECTED] wrote: Hi Stefan, You have wandered into deep waters, and I have no life preserver to toss to you except the advice that it might be easier if you could reorganize your Histogram functionality so that it doesn't have to launch dialogs from your own frame. Failing that, you may need to extend JInternalFrame rather than instantiating one. regards, Larry On 10/27/07, Stefan Steiniger [EMAIL PROTECTED] wrote: Hei Guys, as I am not firm at all with GUI programming it would be nice if somebody could help me with the new Histogram function. What do I do: 1) created a threaded plugin 2) obtain in execute some params (Attribute type and number of ranges) 2) call inside run the following code that creates a Histogram Plot (note: i use jmathplot library) final Plot2DPanel plot = new Plot2DPanel(); plot.addHistogramPlot(this.selAttribute , data, this.ranges); JInternalFrame frame = new JInternalFrame(Histogram); frame.setLayout (new BorderLayout()); frame.add(plot, BorderLayout.CENTER); frame.setVisible (true); context.getWorkbenchFrame().addInternalFrame(frame); the problem: The Plot-panel/Frame for the Histogram contains buttons that activate some other dialogs. For instance a FileChooser to save the plot as png image. If I activate the button the new dialog is only partly visible and the openjump GUI is not redrawn while moving the dialog. (see attached image). Interestingly the histogram plot panel seems to be redrawn but not the histogram frame. I tried as well to make a new menu within the Histogram Frame with the code below. But the problem persists, i.e. the FileChooser is only partly visible and causes graphical errors to the JUMP GUI. Any idea how avoid that the SaveDialog (or any other dialog called) causes graphical errors (i guess threading is the solution - but how?) stefan source-code for calling file dialog and saving the plot-image: == JMenuBar menuBar = new JMenuBar(); frame.setJMenuBar(menuBar); JMenu mTools = new JMenu(Tools); menuBar.add(mTools); mTools.add(new AbstractAction(Save Image as PNG File, IconLoader.icon(disk.png)) { public void actionPerformed(ActionEvent e){ java.io.File file = CreateHistogramPlugIn.selectFile(context); if (file != null){plot.toGraphicFile(file
Re: [JPP-Devel] Subversion Time-Lapse View
Hi landon, I have no problem with GUI Builder. I want build a new GUI for PostGISPlugin. And i dont know what is the best practice about GUI in openjump. Eric 2007/10/29, Sunburned Surveyor [EMAIL PROTECTED]: Eric, What problem where you having with the GUI builders? Perhaps I can walk you through some rough spots. Also, it is good to remember that most IDE's like Eclipse or Netbeans have a mialing list or forum that you can post questions on. The Sunburned Surveyor On 10/26/07, Eric Lemesre [EMAIL PROTECTED] wrote: Hi jon, Sorry for long time without response. what do you use for build GUI for openjump? I try VEP (Eclipse plugin for calisto -V3.2) - http://www.eclipse.org/vep/ I try Jigloo GUI builder - http://www.cloudgarden.com/jigloo/ NetBean with mantis but I don''t understand very well How import eclipse project Eric 2007/10/20, Jonathan Aquino [EMAIL PROTECTED]: Hi Eric - Interesting ideas! I was just going to leave it as a simple tool. I agree with you that Eclipse has a great diff view. Perhaps someone can take what I've done and use it as the start of an Eclipse plugin. Jon From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Lemesre Sent: Friday, October 19, 2007 2:36 AM To: List for discussion of JPP development and use. Subject: Re: [JPP-Devel] Subversion Time-Lapse View Hi jon, Nice tool. Do you have planed to add this tools as Eclipse plugin? And is it lot of work to add on a bar at left or rigth side to view where is a diff? Eric 2007/10/19, Jonathan Aquino [EMAIL PROTECTED]: Useful tool for Subversion: SVN Time-Lapse View http://code.google.com/p/svn-time-lapse-view/ Lets you examine the history of a file by dragging a slider. Diffs are highlighted in blue. If you want to know who changed a line, when, and for what reason, this is useful. For example, try it with https://jump-pilot.svn.sourceforge.net/svnroot/jump-pilot/core/trunk/src/com /vividsolutions/jump/workbench/JUMPWorkbench.java Jon - 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 - 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] A little starter's help
Hi Daniel, you can find some brazil free data in : http://data.geocomm.com/catalog/BR/index.html or http://www.lib.unc.edu/reference/gis/datafinder/faq.html or http://www.maproom.psu.edu/dcw/dcw_about.shtml regards, Eric 2007/10/29, Sunburned Surveyor [EMAIL PROTECTED]: Daniel, I'm sorry that I haven't responded sooner. I am going to send your e-mail to our mailing list for OpenJUMP. Perhaps some OpenJUMP users from South America can help you with answers to your questions. You should consider subscribing to the mailing list if you will be using OpenJUMP regularly. You can do so here: https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel The Sunburned Surveyor On 10/15/07, Daniel Tygel [EMAIL PROTECTED] wrote: Hi Sunburned Surveyor, my name is daniel, from brazil. We work in the social movement of solidarity economy. I've just downloaded openjump, and would like to know how to start: I mean, where can I get basic data from our country? Is there a kind of data-server for that? Thanks! daniel tygel - 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] How to avoid drawing errors when new dialogs are activated from a new frame
I am an EXPERT for nothing ;-) 2007/10/29, Eric Lemesre [EMAIL PROTECTED]: Hi Stefan, I am an for nothing ;-) I am working on plugin derivate from ChartPlugin intitaly writen by Erwan. It build Histogram from a layer.And this plugin work with JFreeChart. this library is very nice for build, export and print charts. If you want i can post the code. Eric 2007/10/29, Sunburned Surveyor [EMAIL PROTECTED]: Stefan, I am not a GUI expert either, but I may have some information that can help. My SuperSelect program opens a JInternal frame for its configuration form. From this form I can sucessfully launch another JInternal frame for context sensitive help, as you can see in the attached screenshot. I have no problem with painting when I move either the help frame or the configuration frame. This makes me wonder if the problem is with launching a JDialog class from a JInternalFrame. Could you try switching your JDialog classes to JInternal frames to see if this solves the problem? Landon On 10/28/07, Larry Becker [EMAIL PROTECTED] wrote: Hi Stefan, You have wandered into deep waters, and I have no life preserver to toss to you except the advice that it might be easier if you could reorganize your Histogram functionality so that it doesn't have to launch dialogs from your own frame. Failing that, you may need to extend JInternalFrame rather than instantiating one. regards, Larry On 10/27/07, Stefan Steiniger [EMAIL PROTECTED] wrote: Hei Guys, as I am not firm at all with GUI programming it would be nice if somebody could help me with the new Histogram function. What do I do: 1) created a threaded plugin 2) obtain in execute some params (Attribute type and number of ranges) 2) call inside run the following code that creates a Histogram Plot (note: i use jmathplot library) final Plot2DPanel plot = new Plot2DPanel(); plot.addHistogramPlot(this.selAttribute , data, this.ranges ); JInternalFrame frame = new JInternalFrame(Histogram); frame.setLayout(new BorderLayout()); frame.add(plot, BorderLayout.CENTER); frame.setVisible (true); context.getWorkbenchFrame().addInternalFrame(frame); the problem: The Plot-panel/Frame for the Histogram contains buttons that activate some other dialogs. For instance a FileChooser to save the plot as png image. If I activate the button the new dialog is only partly visible and the openjump GUI is not redrawn while moving the dialog. (see attached image). Interestingly the histogram plot panel seems to be redrawn but not the histogram frame. I tried as well to make a new menu within the Histogram Frame with the code below. But the problem persists, i.e. the FileChooser is only partly visible and causes graphical errors to the JUMP GUI. Any idea how avoid that the SaveDialog (or any other dialog called) causes graphical errors (i guess threading is the solution - but how?) stefan source-code for calling file dialog and saving the plot-image: == JMenuBar menuBar = new JMenuBar(); frame.setJMenuBar(menuBar); JMenu mTools = new JMenu(Tools); menuBar.add(mTools); mTools.add(new AbstractAction(Save Image as PNG File, IconLoader.icon(disk.png)) { public void actionPerformed(ActionEvent e){ java.io.File file = CreateHistogramPlugIn.selectFile(context); if (file != null){plot.toGraphicFile(file);} }); === using: = public static File selectFile(PlugInContext context){ JFileChooser fc = GUIUtil.createJFileChooserWithOverwritePrompting (png); fc.showSaveDialog(context.getWorkbenchFrame()); File file = fc.getSelectedFile(); try{ String name = file.getPath (); name = CreateHistogramPlugIn.addExtension(name,png); File newFile = new File(name); return newFile; } catch(Exception e){ return null; } } = - 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
Re: [JPP-Devel] Subversion Time-Lapse View
Hi jon, Sorry for long time without response. what do you use for build GUI for openjump? I try VEP (Eclipse plugin for calisto -V3.2) - http://www.eclipse.org/vep/ I try Jigloo GUI builder - http://www.cloudgarden.com/jigloo/ NetBean with mantis but I don''t understand very well How import eclipse project Eric 2007/10/20, Jonathan Aquino [EMAIL PROTECTED]: Hi Eric - Interesting ideas! I was just going to leave it as a simple tool. I agree with you that Eclipse has a great diff view. Perhaps someone can take what I've done and use it as the start of an Eclipse plugin. Jon -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Eric Lemesre *Sent:* Friday, October 19, 2007 2:36 AM *To:* List for discussion of JPP development and use. *Subject:* Re: [JPP-Devel] Subversion Time-Lapse View Hi jon, Nice tool. Do you have planed to add this tools as Eclipse plugin? And is it lot of work to add on a bar at left or rigth side to view where is a diff? Eric 2007/10/19, Jonathan Aquino [EMAIL PROTECTED]: Useful tool for Subversion: SVN Time-Lapse View http://code.google.com/p/svn-time-lapse-view/ Lets you examine the history of a file by dragging a slider. Diffs are highlighted in blue. If you want to know who changed a line, when, and for what reason, this is useful. For example, try it with https://jump-pilot.svn.sourceforge.net/svnroot/jump-pilot/core/trunk/src/com /vividsolutions/jump/workbench/JUMPWorkbench.java Jon - 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
Re: [JPP-Devel] Maven Repository
Hi Paul, It is good idea to build a maven-repository but why put it into subversion? Juste a web space with ftp acces in source forge is sufficient. No? And an other web space for site generated by maven. regards Eric 2007/10/25, Paul Austin [EMAIL PROTECTED]: All, I have added a repository for maven to our subversion repository. We can add any third part libraries not in the main maven repository and also build of our own core and plug-ins. The subversion module is maven-repository and the maven repository URL is http://jump-pilot.svn.sourceforge.net/svnroot/jump-pilot/maven-repository/ Paul - 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] Maven Repository
OK, Thanks Eric 2007/10/26, Paul Austin [EMAIL PROTECTED]: Andreas, This is correct by using subversion we don't have to manage our own ftp site, with all the sysadmin stuff such as creating user accounts etc. Paul Andreas Schmitz wrote: Eric Lemesre wrote: Hi, It is good idea to build a maven-repository but why put it into subversion? Juste a web space with ftp acces in source forge is sufficient. No? And an other web space for site generated by maven. the advantage is that any developer can update the repository, not just site admins who may have access to the web space. 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 - 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
Re: [JPP-Devel] Subversion Time-Lapse View
Hi jon, Nice tool. Do you have planed to add this tools as Eclipse plugin? And is it lot of work to add on a bar at left or rigth side to view where is a diff? Eric 2007/10/19, Jonathan Aquino [EMAIL PROTECTED]: Useful tool for Subversion: SVN Time-Lapse View http://code.google.com/p/svn-time-lapse-view/ Lets you examine the history of a file by dragging a slider. Diffs are highlighted in blue. If you want to know who changed a line, when, and for what reason, this is useful. For example, try it with https://jump-pilot.svn.sourceforge.net/svnroot/jump-pilot/core/trunk/src/com /vividsolutions/jump/workbench/JUMPWorkbench.java Jon - 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] OpenJUMP Plug-In: Super Select Tool Release
Hi SS, I try to run SuperSelect tool from revision 1168 and i have this error: CLASSPATH is: /usr/local/OpenJUMP/bin/../lib/ext/PostGISPlugin-1.2.01.jar /usr/local/OpenJUMP/bin/../lib/ext/joinTable-0.1.2.jar /usr/local/OpenJUMP/bin/../lib/ext/jfreechart-1.0.6.jar /usr/local/OpenJUMP/bin/../lib/ext/jcommon-1.0.5.jar /usr/local/OpenJUMP/bin/../lib/ext/fmap-0.5.jar /usr/local/OpenJUMP/bin/../lib/ext/chartPlugIn-0.5.jar /usr/local/OpenJUMP/bin/../lib/ext/CategoryTools-20061116.jar /usr/local/OpenJUMP/bin/../lib/ext/baseClasses-20070626.jar /usr/local/OpenJUMP/bin/../lib/batik/*.jar /usr/local/OpenJUMP/bin/../lib/xml-apis.jar /usr/local/OpenJUMP/bin/../lib/xml-apis-ext.jar /usr/local/OpenJUMP/bin/../lib/xercesImpl.jar /usr/local/OpenJUMP/bin/../lib/postgresql-8.1dev-403.jdbc2.jar /usr/local/OpenJUMP/bin/../lib/postgis_1_0_0.jar /usr/local/OpenJUMP/bin/../lib/log4j-1.2.8.jar /usr/local/OpenJUMP/bin/../lib/junit.jar /usr/local/OpenJUMP/bin/../lib/jump-workbench-20060430.jar /usr/local/OpenJUMP/bin/../lib/jump-api-20060430.jar /usr/local/OpenJUMP/bin/../lib/jts-1.7.2.jar /usr/local/OpenJUMP/bin/../lib/jmat_5.0m.jar /usr/local/OpenJUMP/bin/../lib/jdom.jar /usr/local/OpenJUMP/bin/../lib/Jama-1.0.1.jar /usr/local/OpenJUMP/bin/../lib/jai_core.jar /usr/local/OpenJUMP/bin/../lib/jai_codec.jar /usr/local/OpenJUMP/bin/../lib/ermapper.jar /usr/local/OpenJUMP/bin/../lib/Buoy.jar /usr/local/OpenJUMP/bin/../lib/bsh-2.0b4.jar /usr/local/OpenJUMP/bin/../lib/batik-all.jar JUMP: Warning: Properties file does not exist: /usr/local/OpenJUMP/bin/../bin/workbench-properties.xml Loading de.fhOsnabrueck.jump.pirol.plugIns.PirolRasterImage.RasterImageExtension Loading de.fhOsnabrueck.jump.pirol.plugIns.CategoryTools.CategoryToolsExtension Loading org.OpenJUMP.Graph.GraphExtension Loading reso.jump.joinTable.JoinTableExtension Loading net.refractions.postgis.PostGISConfiguration java.lang.NoSuchMethodError: org.apache.log4j.Logger.error (Ljava/lang/Object;)V at com.vividsolutions.jump.workbench.plugin.PlugInManager.toClass( PlugInManager.java:274) at com.vividsolutions.jump.workbench.plugin.PlugInManager.classes( PlugInManager.java:242) at com.vividsolutions.jump.workbench.plugin.PlugInManager.findConfigurations( PlugInManager.java:209) at com.vividsolutions.jump.workbench.plugin.PlugInManager.init( PlugInManager.java:84) at com.vividsolutions.jump.workbench.JUMPWorkbench.init( JUMPWorkbench.java:196) at com.vividsolutions.jump.workbench.JUMPWorkbench.main( JUMPWorkbench.java:256) at com.vividsolutions.jump.workbench.JUMPWorkbench.main( JUMPWorkbench.java:224) Regards Eric 2007/10/17, Sunburned Surveyor [EMAIL PROTECTED]: The second release of the Super Select Tool is available on the SurveyOS SourceForge site. https://sourceforge.net/project/showfiles.php?group_id=122820 This release includes the following changes or additions: - Installation Instructions - Added Option To Turn Off Remove From Source Layers Warning - Modified SaveConfiguration Button Icon and Help Button Icon. - Moved the sos_utilities.jar file from /lib folder to /lib/ext/surveyos directory. Installation should be quite a bit easier with this release. The next release should offer internationalization and context-sensitive help in PDF. I appreciate any feedback or suggestions for improvement. (I still don't know if anyone else can run the tool on a nightly build.) 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] Postgis connection
Hi Uwe, I just add a where clause to PostGISPlugin in the repository if you want to teste it and made some remark? Thanks. i have to plan to add fonctionnality : Update some fields in table with a given key. Just a question : all properties in DataSourceQuery instance is DataSource responsability ? and when I build a PostGISDataSourceQuery with fully qualified PostGISDatasource. I can't get a PostGisconnection is it a normal beavior? ie : PostGISDataSource pgDS = new PostGISDataSource(); properties = new HashMap(); ... set properties key pgDS.setProperties(properties); pgQuery = new PostGISDataSourceQuery(pgDS,query,layerName); // don't work pgQuery.getDataSource().getConnection().executeQuery(query); What do you think about this modification in PostGISDataSourceQuery? /** * Returns the DataSource for the query. */ public DataSource getDataSource() { // FIXME:[eric.lemesre] maintain Porperties is DataSource responsability? //ds.setProperties(properties); DataSource ds = super.getDataSource(); return(ds); } /** * Property map for the query object. For defined keys see: [EMAIL PROTECTED] PostGISDataSource} */ public void setProperties(HashMap properties) { // FIXME:[eric.lemesre] maintain Porperties is DataSource responsability? //this.properties = (HashMap)properties.clone(); getDataSource().setProperties((HashMap)properties.clone()); } } It work but is it best practice? See U Eric 2007/10/15, Uwe Dalluege [EMAIL PROTECTED]: Hi Eric, the version number 6.11.6B means that I have changed thist PlugIn at 2006.11.6. B means beta. This notation is from me. I think 1.2.0 is from Stefan. Regards Uwe Eric Lemesre schrieb: Hi Stefan, Ok but I think the better way is commit initial code (the 6.11.6B) and after commit modification. the code for OpenFile framework is in package : com.vividsolutions.jump.workbench.datasource ? @Uwe : please can you give me more explanation about version number ? internal version is 6.11.6B and jar version is 1.2.0 ?? Thanks Eric 2007/10/12, Stefan Steiniger [EMAIL PROTECTED] mailto: [EMAIL PROTECTED]: Hei Eric, I have created a new PostGisPlugin Folder on the SVN. Can you commit your modified Postgisplugin code to that folder (trunk/src)? If this is done we can then modify the postgisplugin sources to work with the new OpenFile framework stefan Eric Lemesre schrieb: Hi Stefan, Thank for your intervention with Uwe, I rebuild directory structure and commit in a new directory this plug in. probebly befor this WE. Eric 2007/10/8, Stefan Steiniger [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Hei Eric, Uwe agrees to put the postgis plugin on the svn. for the rest - because I never used maven - can you simple outline the directory structure on the SVN. So I have a better image what you want to do. stefan - 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] ReplaceValuePlugIn
Paul, Thanks for attachement ! It possible to build a conditionnal assembly? some think like that : assembly moduleSets moduleSet file:///home/lemeser/.mozilla/firefox/czpjfwd3.default/ScrapBook/data/20071008234927/assembly.html#class_moduleSet includeSubModules/ includes includeorg.openjump.plugin:*/include /includes excludes excludeorg.openjump.plugin:${plugin.enable.PostGISPlugin}/exclude excludeorg.openjump.plugin:${plugin.enable.JoinTable}/exclude excludeorg.openjump.plugin:${plugin.enable.OtherPlugin}/exclude /excludes /moduleSet file:///home/lemeser/.mozilla/firefox/czpjfwd3.default/ScrapBook/data/20071008234927/assembly.html#class_moduleSet /moduleSets and enablePlugIn.properties # plugin to enable when is not empty plugin.enable.PostGISPlugin=PostGISPlugin plugin.enable.JoinTable= plugin.enable.OtherPlugin=OtherPlugin it is verry simple to enable/disable plugin without touch the assembly descriptor Eric. 2007/10/13, Paul Austin [EMAIL PROTECTED]: Eric, The current maven build is a non standard build as OJ doesn't have the correct directory structure. I'd like to get that changed at some point. For the main maven build for OJ i don't think we should split the api and workbench as for JUMP deliveries you need both. We can however create assemblies for them so that the are available if anyone else needs them. I also have another assembly descriptor that can be used in another project to build a custom OJ bundle with a bunch of plug-ins, basically make all you plug-ins maven plug-ins, add a dependency to OJ and the plug-ins from a wrapper project and it will bundle them into the lib/ext directory. Unfortunately due to some bugs in Maven you have to do some customization for it to work. See attached example. Paul Eric Lemesre wrote: Paul, I commit the change and I complete my first commit (language and changelog). I like maven ;-) but my local repository is verry small. When i package openjump (mvn package) i have 5 required artifacts are missing : * net.sf.buoy:buoy:jar:1.8 * com.sun.media:jai_codec:jar:1.1.2_01 * com.ermapper:ermapper:jar:UNKNOWN * javax.media:jai_core:jar:1.1.2_01 * org.jmat:jmat:jar:5.0 It is probably the good time to build a maven2 repository for openjump? and put in openjump-core-1.2D.jar openjump-core-1.2C.jar openjump-core-1.2-SNAPSHOT.jar and with the same version openjump-api and openjump-workbench and all necessary jar for build. Eric 2007/10/12, Paul Austin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Eric, Sorry about that, it must have been something to do with the merge process. Have you been able to recover the old version? Paul Eric Lemesre wrote: Hi paul, It is probebly a mistake, but your commit( rev 1141) erase my commit (rev 1132) on org.openjump.sigle.plugin.replace.ReplaveValuePlugin.java Eric 2007/10/3, Sunburned Surveyor [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Thanks for filling us in on how you use OpenJUMP Eric, and thank you for making the effort to contribute. The Sunburned Surveyor On 10/1/07, Eric Lemesre [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi SS, I am using OpenJUMP for visualisation state's vendor : where they work, where they live and where is her cusmoters. Other software like ERSI EMG3, is too expensive an less modulate than OpenJUMP. I can get data from PostgreSQL, Degrees, and geoserver and give it to resposables (quikly ;-) ). I hope my compagny always use OpenJUMP and give more developpers to contribute. At this moment I am alone ;-{. 2007/9/28, Sunburned Surveyor [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Eric, I am getting to this e-mail a little bit late, but I see that Michael and Stefan have already given you a warm welcome. I just want to say thanks for your contribution and I hope we get to work together in the future. I'm curious, how are you using OpenJUMP? The Sunburned Surveyor On 9/28/07, Stefan Steiniger [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL
Re: [JPP-Devel] Postgis connection
Hi Stefan, Ok but I think the better way is commit initial code (the 6.11.6B) and after commit modification. the code for OpenFile framework is in package : com.vividsolutions.jump.workbench.datasource ? @Uwe : please can you give me more explanation about version number ? internal version is 6.11.6B and jar version is 1.2.0 ?? Thanks Eric 2007/10/12, Stefan Steiniger [EMAIL PROTECTED]: Hei Eric, I have created a new PostGisPlugin Folder on the SVN. Can you commit your modified Postgisplugin code to that folder (trunk/src)? If this is done we can then modify the postgisplugin sources to work with the new OpenFile framework stefan Eric Lemesre schrieb: Hi Stefan, Thank for your intervention with Uwe, I rebuild directory structure and commit in a new directory this plug in. probebly befor this WE. Eric 2007/10/8, Stefan Steiniger [EMAIL PROTECTED] mailto: [EMAIL PROTECTED]: Hei Eric, Uwe agrees to put the postgis plugin on the svn. for the rest - because I never used maven - can you simple outline the directory structure on the SVN. So I have a better image what you want to do. stefan - 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] ReplaceValuePlugIn
Hi paul, It is probebly a mistake, but your commit( rev 1141) erase my commit (rev 1132) on org.openjump.sigle.plugin.replace.ReplaveValuePlugin.java Eric 2007/10/3, Sunburned Surveyor [EMAIL PROTECTED]: Thanks for filling us in on how you use OpenJUMP Eric, and thank you for making the effort to contribute. The Sunburned Surveyor On 10/1/07, Eric Lemesre [EMAIL PROTECTED] wrote: Hi SS, I am using OpenJUMP for visualisation state's vendor : where they work, where they live and where is her cusmoters. Other software like ERSI EMG3, is too expensive an less modulate than OpenJUMP. I can get data from PostgreSQL, Degrees, and geoserver and give it to resposables (quikly ;-) ). I hope my compagny always use OpenJUMP and give more developpers to contribute. At this moment I am alone ;-{. 2007/9/28, Sunburned Surveyor [EMAIL PROTECTED]: Eric, I am getting to this e-mail a little bit late, but I see that Michael and Stefan have already given you a warm welcome. I just want to say thanks for your contribution and I hope we get to work together in the future. I'm curious, how are you using OpenJUMP? The Sunburned Surveyor On 9/28/07, Stefan Steiniger [EMAIL PROTECTED] wrote: Hei again, Eric Lemesre schrieb: Salut Stefan, I am totaly agree with this condition Of course. I prefer to get write acces by pass the second condition. I think it is the better way for all. ok.. Btw. it depends how fast you are with your second extension. But if it does not take weeks, you can commit both tools together if you have write access. For my second contribution i want to extends JoinTable plugin. * select fields to join * select datasource type sounds very good :) Can i add Jlist to MultiInputDialog? yes.. i think so :) If nobodoy else has a problem with. stefan Eric 2007/9/26, Stefan Steiniger [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Salut Eric, nice to have you on board :) We have setup some informal rules for contribution. You get write access to the svn in two ways: 1) you get immediate access to the svn if you got a recommendation by developer that is already well known by the project (or a member); or 2) we review the first two contributions. If both are ok you will grant write access. As you passed the 1st code-review round already according to Michael, I would like to ask you, to send to your second contribution to the devel-list for a review (if you have finished that work already) I hope you understand this policy and I suppose the 2nd sample you presenet will be a piece of cake for you? Alteratively you may tell us (or me and Michael personally) about your programming experience. Anyway, as it seems to me you will qualify ;) i ask you to already send me your sourceforge account name (on my personal email), so i can prepare anything for svn-write access. cheers, currently from Germany (Btw. I met some people from Intevation on the Intergeo fair) stefan @ Michael: thank you for reviewing! If you want you can commit the code. Otherwise I will do in the next days. Michaël Michaud schrieb: Hi Eric, Nice to see another french guy involved in OpenJUMP development ;-) I reviewed your code and it's ok for me. Maybe you should explain the use case for setting an attribute with another attribute value. Anyway, this is just a new capability of an existing plugin. I can commit the code, or we have to ask Sunburned Surveyor or Stefan Steiniger (I think Stefan is out of his office until next week) who are the administrators of the site and can give svn access to new developers. Michaël Eric Lemesre a écrit : Hello, Thank verry much for the good job in OpenJUMP. I make somme modifications in the plugIn ReplaceValuePlugIn (in org.openjump.sigle.plugin.replace ). This plugin replace a attribute with a constante. And now we can copy one attribute to an other one. I joint the code. How can i have acces to repository and what is rules to use? Or how to put this modifications in JPP? I have planed somme other works and want to give it to the community Thanks Eric
Re: [JPP-Devel] Postgis Connection
Hi, The better way seem to be LayerManager.addLayer(Catagory, LayerName, FeatureCollection).setDataSourceQuery(DataSourceQuery) If we forget the datasourcequery nothing is saved in project file. @+ Eric 2007/10/8, Stefan Steiniger [EMAIL PROTECTED]: have you tried to use the layer\add Datastore laye function? It uses the Framework developed lately by Vividsolutions As far as i know there is on the projet sigle website also an SQL Query plugin as i am not familar with Databases, maybe someone else can help stefan Eric Lemesre wrote: Hi, I build Postgis layers with BeanShell Script. What is the better way to build layer with java code? I try : - build pgSD with common properties (Host, database, user, password) - pgQuery = new PostGISDataSourceQuery(new PostGISDataSource(),query,layerName); - Update pgSD properties (table, where condition, ...) - pgQuery.getDataSource().setProperties(pgDS.getProperties()); - Build layer with wc.layerManager.addLayer(Fond de carte, layerName,pgQuery.getDataSource ().getConnection().executeQuery(query)); - get Layer reference and put DataSourceQuery !! ( curentLayer.setDataSourceQuery(pgQuery); ) It work but it is a little complicate. Thank Eric - 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
Re: [JPP-Devel] ReplaceValuePlugIn
Salut Stefan, I am totaly agree with this condition Of course. I prefer to get write acces by pass the second condition. I think it is the better way for all. For my second contribution i want to extends JoinTable plugin. * select fields to join * select datasource type Can i add Jlist to MultiInputDialog? Eric 2007/9/26, Stefan Steiniger [EMAIL PROTECTED]: Salut Eric, nice to have you on board :) We have setup some informal rules for contribution. You get write access to the svn in two ways: 1) you get immediate access to the svn if you got a recommendation by developer that is already well known by the project (or a member); or 2) we review the first two contributions. If both are ok you will grant write access. As you passed the 1st code-review round already according to Michael, I would like to ask you, to send to your second contribution to the devel-list for a review (if you have finished that work already) I hope you understand this policy and I suppose the 2nd sample you presenet will be a piece of cake for you? Alteratively you may tell us (or me and Michael personally) about your programming experience. Anyway, as it seems to me you will qualify ;) i ask you to already send me your sourceforge account name (on my personal email), so i can prepare anything for svn-write access. cheers, currently from Germany (Btw. I met some people from Intevation on the Intergeo fair) stefan @ Michael: thank you for reviewing! If you want you can commit the code. Otherwise I will do in the next days. Michaël Michaud schrieb: Hi Eric, Nice to see another french guy involved in OpenJUMP development ;-) I reviewed your code and it's ok for me. Maybe you should explain the use case for setting an attribute with another attribute value. Anyway, this is just a new capability of an existing plugin. I can commit the code, or we have to ask Sunburned Surveyor or Stefan Steiniger (I think Stefan is out of his office until next week) who are the administrators of the site and can give svn access to new developers. Michaël Eric Lemesre a écrit : Hello, Thank verry much for the good job in OpenJUMP. I make somme modifications in the plugIn ReplaceValuePlugIn (in org.openjump.sigle.plugin.replace). This plugin replace a attribute with a constante. And now we can copy one attribute to an other one. I joint the code. How can i have acces to repository and what is rules to use? Or how to put this modifications in JPP? I have planed somme other works and want to give it to the community Thanks Eric /* * The Unified Mapping Platform (JUMP) is an extensible, interactive GUI * for visualizing and manipulating spatial features with geometry and attributes. * * Copyright (C) 2003 Vivid Solutions * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * For more information, contact: * * Vivid Solutions * Suite #1A * 2328 Government Street * Victoria BC V8T 5G5 * Canada * * (250)385-6040 * www.vividsolutions.com */ package org.openjump.sigle.plugin.replace; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.*; import javax.swing.ImageIcon; import javax.swing.JCheckBox; import javax.swing.JComboBox; import javax.swing.JOptionPane; import javax.swing.JTextField; import org.openjump.sigle.utilities.gui.DialogUtil; import com.vividsolutions.jump.I18N; import com.vividsolutions.jump.feature.*; import com.vividsolutions.jump.task.*; import com.vividsolutions.jump.workbench.WorkbenchContext; import com.vividsolutions.jump.workbench.model.*; import com.vividsolutions.jump.workbench.plugin.*; import com.vividsolutions.jump.workbench.ui.*; import com.vividsolutions.jump.workbench.ui.images.IconLoader; /** * * @author Erwan Bocher Laboratoire RESO UMR CNRS 6590 * @url www.projet-sigle.org * @curentdate 25 juil. 06 * @package name org.openjump.sigle.plugin.replace * @license Licence CeCILL http://www.cecill.info/ * @todo TODO * */ public class ReplaceValuePlugIn extends AbstractPlugIn implements ThreadedPlugIn { private
Re: [JPP-Devel] ReplaceValuePlugIn
Hi Michaël, Thanks for your review! I expliain capability by description in dialog . do you want the new code and localisations on personnal mail? Eric 2007/9/25, Michaël Michaud [EMAIL PROTECTED]: Hi Eric, Nice to see another french guy involved in OpenJUMP development ;-) I reviewed your code and it's ok for me. Maybe you should explain the use case for setting an attribute with another attribute value. Anyway, this is just a new capability of an existing plugin. I can commit the code, or we have to ask Sunburned Surveyor or Stefan Steiniger (I think Stefan is out of his office until next week) who are the administrators of the site and can give svn access to new developers. Michaël Eric Lemesre a écrit : Hello, Thank verry much for the good job in OpenJUMP. I make somme modifications in the plugIn ReplaceValuePlugIn (in org.openjump.sigle.plugin.replace). This plugin replace a attribute with a constante. And now we can copy one attribute to an other one. I joint the code. How can i have acces to repository and what is rules to use? Or how to put this modifications in JPP? I have planed somme other works and want to give it to the community Thanks Eric - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] ReplaceValuePlugIn
context) throws Exception { // input-proofing if (layer == null) return; if (attrName == null) return; if (value == null attrNameSrc == null) return; List srcFeatures = layer.getFeatureCollectionWrapper().getFeatures(); if (useSelected){ Collection featureSelected = context.getLayerViewPanel().getSelectionManager().getFeaturesWithSelectedItems(layer); ; //System.out.println(Feature selected); monitor.report(I18N.get(org.openjump.sigle.plugin.ReplaceValuePlugIn.Replacing-values)); if (byAttribute) { replaceByAttributeValue(featureSelected, attrName,attrNameSrc); } else { replaceValue(featureSelected, attrName, value); } } else { //System.out.println(All features); if (byAttribute) { replaceByAttributeValue(srcFeatures, attrName,attrNameSrc); } else { replaceValue(srcFeatures, attrName, value); } } // TODO: look for FeatureEventType.ATTRIBUTE_MODIFIED // it is probably better than Layer changed // [eric lemesre] layer.fireAppearanceChanged(); } private void setDialogValues(final MultiInputDialog dialog, PlugInContext context) { //Initial layer value is null layer = context.getSelectedLayer(0); // combos sélection d'un champ List columns = DialogUtil.getFieldsFromLayerWithoutGeometry(layer); String column1 = null; if (columns.size()0) column1 = (String) columns.get(0); // récupération du premier attribut s'il existe dialog.addComboBox(ATTRIBUTE,column1,columns , Toto); final JTextField textfield = dialog.addTextField( I18N.get(org.openjump.sigle.plugin.ReplaceValuePlugIn.Attribute-type), (layer.getFeatureCollectionWrapper().getFeatureSchema().getAttributeType(column1)).toString(), 10, null, null); textfield.setEnabled(false); dialog.getComboBox(ATTRIBUTE).addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { // recuperation de la combo couche JComboBox cb = (JComboBox) e.getSource(); // recuperation de l'attribut selectionné String attributeName = (String) cb.getSelectedItem(); textfield.setText((layer.getFeatureCollectionWrapper().getFeatureSchema().getAttributeType(attributeName)).toString()); } }); dialog.addCheckBox(BY_ATTRIBUTE, byAttribute); dialog.addComboBox(ATTRIBUTE_SRC,column1,columns , Nom du champ source de la valeur); //TODO:I18N move to I18N [eric lemesre] dialog.getComboBox(ATTRIBUTE_SRC).setEnabled(byAttribute); final JTextField valuetextfield = dialog.addTextField(VALUE,value,20, null, null); valuetextfield.setEnabled(true); dialog.getCheckBox(BY_ATTRIBUTE).addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JCheckBox chk = (JCheckBox) e.getSource(); valuetextfield.setEnabled(!chk.isSelected()); // valuetextfield.setVisible(!chk.isSelected()); dialog.getComboBox(ATTRIBUTE_SRC).setEnabled(chk.isSelected()); // dialog.getComboBox(ATTRIBUTE_SRC).setVisible(chk.isSelected()); } }); dialog.addCheckBox(SELECTED_ONLY, useSelected); } private void getDialogValues(MultiInputDialog dialog) { attrName = dialog.getText(ATTRIBUTE); value = dialog.getText(VALUE); useSelected = dialog.getBoolean(SELECTED_ONLY); attrNameSrc = dialog.getText(ATTRIBUTE_SRC); byAttribute = dialog.getBoolean(BY_ATTRIBUTE); } private void replaceValue(Collection selectedFC, String attrName, String value){ AttributeType type; type = ((Feature) selectedFC.iterator().next()).getSchema().getAttributeType(attrName); for (Iterator i = selectedFC.iterator(); i.hasNext(); ) { Feature f = (Feature) i.next(); if (byAttribute) { // remplacement par la valeur de l'attribut selectionné }else { // remplacement par la valeur saisie if (type == AttributeType.DOUBLE) { f.setAttribute(attrName, new Double (value)); } else if (type == AttributeType.INTEGER) { f.setAttribute(attrName, new Integer (value)); } else if (type == AttributeType.STRING) { f.setAttribute(attrName, new String (value)); } else { } } } } private void replaceByAttributeValue(Collection selectedFC, String attrNameDest, String attrNameSrc){ //AttributeType typeSrc; AttributeType typeDest; String AttrValue; typeDest = ((Feature) selectedFC.iterator().next()).getSchema().getAttributeType(attrNameDest); for (Iterator i = selectedFC.iterator(); i.hasNext(); ) { Feature f = (Feature) i.next(); AttrValue = (String) f.getAttribute(attrNameSrc