Thanks for the comments Michael, and for bringing this up Peppe. I agree with Michael's comments. I think a boolean type would be useful, but the other attribute types might be more trouble than they are worth.
I can work on adding support for a boolean data type to the core if there was an interest in this. SS On Thu, Mar 12, 2009 at 3:10 PM, Michaël Michaud <michael.mich...@free.fr> wrote: > Hi Giuseppe, > > Here are some explanations and comments about this patch (this is a > patch, not a plugin) > - one other regular user (Hisaji) told me he was interested in porting > this patch to OpenJUMP > - this is a five years old development. I haven't used it for at least 4 > years (and I'm quite sure nobody else but me has used it) > - one of the goal was to be able to read mif/mid, geoconcept and dxf > files and to write them back without loosing any information about data > types > - this is not a plugin but a patch because it modifies some core classes > in jump > - the patch is not safe as it is and it is quite hard to make it > rock-solid because "AttributeType" is not easily extensible and it is > used everywhere in the soft. > - several years after, I'm still not sure about the usefulness and/or > the best way to deal with attribute types : > . I still think adding boolean would be great (just need to check > everywhere in the code, internal plugins, readers, writers what has to > be changed - it may be a problem for external plugins) > . characters and decimals : not so useful, or in a way that would > make OJ more compatible with SQL standard (I think kosmo did some work > in this direction) > . enumeration : there is two purposes. easing data edition, keeping > consistent data. I think the first can be managed in a more dynamic way > (combobox filled with last entered values for exemple), and the second > is interesting but not very standard (I know only one gis using > enumaration as attribute type) > . other attribute types : it would be interesting to study attribute > types in xml schema (and gml), and the notion of constraints which are > not limited to a number of characters or decimals (ex. max value, > regular expression) > . final thought : I like the simplicity of OpenJUMP model. Adding new > attribute types with full compatibility with all plugins is still a lot > of work. It could be more interesting to introduce constraints to > existing attribute types than adding new attribute types, but it's also > a lot of work. > > You did no mistake in the installation procedure. > I added a security check in the updater to prevent user to update an > uptodate soft with an older patch. > If you can change the date of .class in the mm-patch.jar, it should work > (don't know how to do that), otherwise, I'll have to re-compile the > patch (not sure when I'll find time to do that). > > Michaël > > > Giuseppe Aruta a écrit : >> Hi all, >> scouting between old Jump plugins I discover thia one >> :http://michael.michaud.free.fr/jump/plugins/plugins.html "mm-patch" made by >> Michael. >> Between other improvements, mm-patch adds the possibility to use other >> attribute types, like boolean, long, char, decimal and enumeration. I invite >> to give a look to Michael's interesting documantation about this plugin >> here: >> http://www.projet-sigle.org/trac/browser/projetsigle/openjump/plugins/mmpatch/mm-patch-doc.pdf?rev=87&format=raw, >> for perople who read french :). >> Unfortunatelly I was not able to let it work. >> 1) following the installation note I put the two files (jumpupdater.jar and >> mm-patchXXX.jar) into the OJ/lib folser, run jumpapdater.jar and then run >> OpenJUMP to see if I was able to set new attribute type on Open schema - It >> doesn't show the new attributes >> 2) I used the same procedure for Jump 1.1.2 with no resaults. >> 3) Following the exanmples on the PDF, I run the scripts by beanshell trying >> to create the new attributes. I had this error message: >> >> ///////////////////////////// >> // Error: EvalError: Typed variable declaration : Error in method >> invocation: Static method createCharAttributeType( int ) not found in >> class'com.vividsolutions.jump.feature.AttributeType' : at Line: 1 : in file: >> <unknown file> : AttributeType .createCharAttributeType ( 16 ) >> /////////////////////////// >> >> Shoould I do mistakes on the installation? >> >> I think this plugin would be better integrate into Openjump. The possibility >> to use enumaration and boolean attribute would be of a good benefit for >> field survayours or for people who have to input repetitive datas into a >> project. >> >> Regards >> >> Peppe >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >> easily build your RIAs with Flex Builder, the Eclipse(TM)based development >> software that enables intelligent coding and step-through debugging. >> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >> _______________________________________________ >> Jump-pilot-devel mailing list >> Jump-pilot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> >> >> > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel