[JPP-Devel] RoadMatcher
Has anybody looked at getting the RoadMatcher and the JCS working in the openjump codebase? I've seen occasional mention of it, but so far it doesan't appear to be of much concern to anybody. How much interest would there be in somebody (ie. me, if nobody else is able) doing this? -Craig - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. 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] Unstable branch of the OpenJUMP CVS...
Normally, the head is the unstable code, and any changes which have been tested get merged to the stable branch... -Craig On 6/4/07, Sunburned Surveyor [EMAIL PROTECTED] wrote: Stephan, You wrote: I am more than happy to watch the process of getting a development trunk in OpenJUMP development. That is awesome. I don't think that anyone is going to argue with your volunterring. :] You wrote: The so called trunk is the (current) CVS HEAD which gets branched into release-branches which can be kept separately. I think I am trying to describe the same thing, but not as well.I may have incorrectly referred to a stable branch and an unstable branch when what we really want is a stable code in the trunk or CVS HEAD and a branch for the unstable code. The Sunburned Surveyor P.S. - Are you a registered developer on SourceForge? You will need to be registered before we will be able to give you admin rights to the CVS repository at the JPP. On 6/4/07, Stephan Holl [EMAIL PROTECTED] wrote: Hello Sunburned, I am more than happy to watch the process of getting a development trunk in OpenJUMP development. As I am no dev (and therefor not able to voite) but a power-user I would second Saschas proposal of CVS structure: 1 monthn-month (n+1)-month --\ devel-\...---\--\-\-- \ \ \ \ \ release 1.2 ---\ \ \ \ \ \ release 1.3 The so called trunk is the (current) CVS HEAD which gets branched into release-branches which can be kept separately. I am involved in several OS software development where this structure is quite common. To introduce this now would lead into adding a branch (release_1.2) of the current HEAD. Perhaps it is not so difficult to set up nightly builds from both HEAD and release-branch? Just my 0.02 ¢ Stephan Sunburned Surveyor [EMAIL PROTECTED], [20070604-10:34:27]: I took some time to read over the chapter in the CVS manual on branching and merging. I have some comments now on the method I think we should use for the development branch in the OpenJUMP CVS. I believe that we should use the method described in Michael's option #3 in this thread. This is basically two branches in the CVS, one stable and one unstable. Developers can work on and test changes and new features in the development branch. When changes or new features have been completed in the unstable branch they can be merged into the stable branch, as long as they don't break the nightly build. (The nightly build will continue to be built from the stable branch.) Sascha wrote: I would vote for short merging intervals (1 month or so). Such a merge brings the current release to a new second digit after the stable version number (1.2 - 1.2.1). If we think its time for new major release we can increment the first after dot (1.2 - 1.3). Having the devel and the stable branch coupled so tightly helps us to fix urgent bugs in time and develop new features. I don't know how well this will work for our group of developers. I may be mistaken, but under this type of system I believe all changes or new features in the unstable branch would have to be working in a month of less after they are commited, because they will be going into the stable branch at 1 month intervals. I can forsee a situation under this sytem where we are always holding back a merge of the stable and unstable branches because one or more developers (probably me) doesn't have his stuff working and ready to commit. Then the other developers are upset because they have to wait for their changes to get into the stable brach via the merge. I would suggest this system as a possible alternative: Each developer and/or development team would be responsible for moving its changes and new features from the unstable branch to the stable branch. (I believe we could accomplish this by using some good file structure organization.) If the different developers can coordinate a universal merge from the unstable branch to the stable branch that's great, but under this system it wouldn't be forced. Every six months we will shoot for a new release of the stable branch. At this point we can update the version number of the unstable branch. Here is an example: Let's say the that we create the unstable branch of OpenJUMP today. The current revision number of the OpenJUMP CVS is 1.3. Based on what I read in the CVS manual I think our unstable branch would receive a revision number of 1.3.2. At the end of the year we make a new stable release of OpenJUMP and update the revision number of OpenJUMP
Re: [JPP-Devel] Question?
Do we know if this is a problem with references being hung onto internally, or just the standard Java VM behavior where the Java VM normally doesn't return memory to the OS? -Craig On 5/21/07, Stefan Steiniger [EMAIL PROTECTED] wrote: hei David, in case you don't know what sometimes can help a bit is to press the garbage collect button of the help/about/info tab but only sometimes :I stefan david alejandro garcia ortega schrieb: Thanks Larry i will try to find a solution to the problem. DAVID GARCIA From: /Larry Becker [EMAIL PROTECTED]/ Reply-To: /List for discussion of JPP development and use. jump-pilot-devel@lists.sourceforge.net/ To: /List for discussion of JPP development and use. jump-pilot-devel@lists.sourceforge.net/ Subject: /Re: [JPP-Devel] Question?/ Date: /Mon, 21 May 2007 11:03:03 -0500/ Hi David, Welcome to the list. That is an excellent question. I wish I had an answer for you, but it is one of the unsolved problems with JUMP (all flavors I believe). In my tests, it is not even consistent. Sometimes removing a layer will free most of the memory, but usually it will not. There have been attempts made to fix the problem in OpenJump. See : com.vividsolutions.jump.workbench.ui.plugin.RemoveSelectedLayersPlugIn method remove(Layerable[]) which calls selectedLayers[i].getLayerManager().dispose(selectedLayers[i]) and does everything you could reasonably expect, however much of the memory, usually all of it, is still committed after this code runs. Apparently some plugin(s) still have references to the disposed layers. Probably via a listener of some kind, but no one has ever tracked down the problem. David, you would be doing a great service to the whole JUMP community if you could find the solution to this problem. regards, Larry Becker On 5/21/07, *david alejandro garcia ortega* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi I am working with the source code of OpenJump and i have the following question: When I load a dataset(shapefile) commited memory is about 150Mb, then when I remove the dataset the commited memory is about 140Mb. Why doesn´t memory free? I want to free memory when the layer is turned invisible calling dispose() of layer class, and when is turned visible I load the featurecollection again. But this not work i can´t free memory. What can i do? Thanks, and sorry for my English i am from México. Windows Live Spaces en Prodigy/MSN Haz clic aquí http://g.msn.com/8HMBESMX/2743??PS=47575La red más grande en México y el mundo. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net mailto:Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel -- http://amusingprogrammer.blogspot.com/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel Comparte archivos de manera inmediata con Windows Live Messenger en Prodigy/MSN Haz clic aquí http://g.msn.com/8HMAESMX/2731??PS=47575 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Jump-pilot-devel mailing
Re: [JPP-Devel] A question about null values...
Your cast should be fine, although of course you will get a null pointer exception if you ever try to actually dereference casted... -Craig On 5/16/07, Sunburned Surveyor [EMAIL PROTECTED] wrote: Are you allowed to cast an object with a value of null, or does this throw an exception? For example, would the following statement throw an exception if the needToCast reference was null? IRendererFactoryTool casted = (IRendererFactoryTool) needToCast; Thanks, The Sunburned Surveyor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Some help with Java Generics...
On 5/16/07, Sunburned Surveyor [EMAIL PROTECTED] wrote: Here is my attempt at defining the HashMap using Java Generics: private HashMapString, ? extends IRendererFactoryTool rendererFactoryTools = new HashMapString,? extends IRendererFactoryTool(); The correct declaration should probably be: private HashMapString, IRenderFactoryTool renderFactoryTools = new HashMapString, IRenderFactoryTool(); You also need to make sure you are running java version 1.5 or higher, as generics are a recent language feature... :-) -Craig - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Switching to Subversion...
I use CVS for work, which is enough to make me a big subversion fan :-) Atomic commits are the big thing I like, but I'm also a big of sym-link support. That one isn't a big issue with this code base, I imagine, but I like it anyways... -Craig - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Proper use of instanceof operator?
The one advantage of being an editor luddite who only uses vi is that I'm used to having to find this stuff myself :-) It's things like this that have always had me wondering if pair programming would be worth it, whenever I have worked as part of a pair, it seems like we are a lot more productive, but I've never been able to convince management that it is enough of a factor to justify it... -Craig On 5/4/07, Sunburned Surveyor [EMAIL PROTECTED] wrote: Sure thing. I wonder why I didn't see that error in my Eclipse editor? I'll make the correction and see if that fixes the problem. Thanks very much for the help Craig. Sometimes the second pair of eyes catches something very obvious. The Sunburned Surveyor On 5/4/07, A. Craig West [EMAIL PROTECTED] wrote: I think it's just a typo, you have an extra semicolon at the end of the if... -Craig On 5/4/07, Sunburned Surveyor [EMAIL PROTECTED] wrote: Hey guys. I need some help with the use of the instanceof operator. This one really has me stumped. :] In one of my unit tests I have the following test method: else if(testResult instanceof com.vividsolutions.jump.workbench.ui.renderer.LayerRenderer == true); { Class thisClass = testResult.getClass(); String toPrint = thisClass.getName(); fail(The renderer returned was not an instance of LayerRenderer. The object + returned was a + toPrint); } This test method fails and prints the following message: The renderer returned was not an instance of LayerRenderer. The ojbect returned was a com.vividsolutions.jump.workbench.ui.renderer.LayerRenderer How could the testResult object not be an instance of the com.vividsolutions.jump.workbench.ui.renderer.LayerRenderer when I use the instanceof operator, but be an object of that same class as indicated by the error message? Am I using the instanceof operator incorrectly? Thanks in advance for the help. The Sunburned Surveyor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel