Re: [JPP-Devel] Adding attributes and attribute values
as far as i remember it is not possible to simply extend the FeatureSchema of a FeatureDataSet and the set the attribute. You need to "copy/transform" every Feature towards the new Schema and create a new Feature and a new Feature Collection. see for instance: org.openjump.core.spatialAttributeOps.copyFeature(Feature feature, FeatureSchema newSchema) i think in the pirol package are also similar functions: de.fho.jump.pirol.apiTools.FeatureCollectionTools stefan Anthony Jjumba wrote: > I would like to add a new attribute to a schema and then start adding > values to the added attribute however I am > > having problems with it. > > > > I have a shapefile from which I get: > > > > FeatureCollection allFeatures; > > FeatureSchema lyrSchema = allFeatures.getFeatureSchema(); > > Iterator fIt = allFeatures.iterator(); > > > > //check to see if attribute does not exist > already > > if(!lyrSchema.hasAttribute("myField")){ > > lyrSchema.addAttribute("myField",AttributeType.STRING); > > } > > //loop through all the features and add an > attribute value in the 'myField' column > > while (fIt.hasNext()){ > > Feature currFeature = (Feature)fIt.next(); > > currFeature.setSchema(lyrSchema); > > String attrValue = "someText"; > > currFeature.setAttribute("myField",attrValue); // program > crashes here > > } > > > > > > I have checked and I am sure I can get the attribute index of the > 'myField' attribute that has just been added. > > However, for some reason I am not able to add the attribute value. > > > > It gives me this error: > > Exception in thread "AWT-EventQueue-0" > java.lang.ArrayIndexOutOfBoundsException: 4 > > > > Any ideas or help will be appreciated. > > Thanks, > > Anthony > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.476 / Virus Database: 269.10.6/900 - Release Date: > 7/14/2007 3:36 PM > > > >- >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
[JPP-Devel] OpenJUMP 1.2 Beta vs Openjump Nightly Build
Hi all, I saw that OpenJUMP 1.2 Beta is still available on Sourge forge. Nevertheless OJ nightly build walked more further. Many important bugs were solved (see snap options)and there are also some small but significant modifications (see the desapeared "Open or Save datastore as file.." function from "file" menu). Many new user would be confused and download the buggy OJ Beta instaead of new nightly build ones which seem to work better. Questions/proposals: 1) is it time to upgrade OJ BETA on Sourgeforce to one of the latest nightly build? 2) would we call it OpenJUMP 1.2 (no beta). Nightly Builds solve bugs but they are on the road to something different (OJ 1.3?) because of the small modification and other up-to-come projects (ex. see Paul Austins' Open (File) Plugin project) 3) What about to plan a sort of road map for the future (OJ 1.3 and maybe OJ 1.4)? Thanks all Peppe ___ 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 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] GeoJP2
This is interesting. It sounds like the JPEG 2000 committee didn't know if there were submarine patents, and I wonder if this was stated by the committee as a way to deflect liability. Is there any opinion on whether there is a danger of the JPEG 2000 format being shot down by a patent claim? Is there a good alternative to the format? The Sunburned Surveyor On 7/13/07, Larry Becker <[EMAIL PROTECTED]> wrote: > See the Wikipedia article on JPEG 2000 for comments on legal issues re: > JP2000: > > http://en.wikipedia.org/wiki/JPEG_2000#Legal_issues > > It seems OK, but it pays to be informed. > > Larry > > > On 7/13/07, Michaël Michaud <[EMAIL PROTECTED]> wrote: > > Paul Austin a écrit : > > > > >Has anyone done any work with GeoJP2 in Java or JUMP? > > > > > > > > Not that I know, I think it would be a great replacement for ecw and > > mrsid which are proprietary formats > > > > Michaël > > > > >Paul > > > > > >- > > >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 > > > > > -- > 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 > - 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] New Help Page on OpenJUMP wiki
I agree with Michael and Stefan, Peppe. This is great documentation. Thanks for the hard work. The Sunburned Surveyor On 7/14/07, Michaël Michaud <[EMAIL PROTECTED]> wrote: > Hi Giuseppe, > > Nice and useful list, I'm sure many users don't know what OpenJUMP > really can do :-) . > > Michaël > > Giuseppe Aruta a écrit : > > >Hi everybody > > > >I invite you to see the new help page (OpenJUMP List > >of Function) which I put on OpenJUMP Documentation > >Page > >http://openjump.org/wiki/show/OpenJUMP+List+of+Functions > >I put on this page some paragraphers (the ones I wrote > >by now) and I program to upgrade by the time I write > >new one. > >The aim is to have a complete list of functions of > >OpenJUMP software > > > > > >Peppe > > > > > > ___ > >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 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
Re: [JPP-Devel] Open (File) Plugin
Paul, I agree with Michael. These seem like logical changes. Any time we can separate the GUI from the underlying model it is a good thing. Does anyone see any problems with the changes Paul described? Perhaps you could work up some code, maybe just interfaces, and let us take a look? Thanks, The Sunburned Surveyor P.S. - You siad that "The OpenFilePlugins would be registered in the registry and would have a description and list of supported file types that could be used by the main Open file plugin to generate the list of formats in the drop down." What happens when more than one OpenFilePlugin is registered for the same file type? On 7/14/07, Michaël Michaud <[EMAIL PROTECTED]> wrote: > Hi Paul, > > Your propositions seem good to me. > > Michaël > > Paul Austin a écrit : > > >I'd like to propose some additional changes to the current way we load > >file based datasets and images. > > > >Currently we have the following > > > >- Load Dataset plugin which works for single layer file based formats > >(e.g. shp, gml) > >- Add Image Layer (geotiff, jpg, mrsid, ecw) > >- Add MrSid layer (mrsid) > > > >I think that we need a single plugin in the File menu called Open File > > > >This plugin would allow you to select one or more files to load in and > >then invoke the specific plugin to handle that kind of file. This would > >separate the file selection UI from the code to load that type of image. > > > >The OpenFilePlugins would be registered in the registry and would have a > >description and list of supported file types that could be used by the > >main Open file plugin to generate the list of formats in the drop down. > > > >If a file type has additional options that need to be selected these > >would be asked in a dialog for that plugin before it opens the files. > >There maybe a nice way to bundle all these options into a single dialog > >to simplify the user experience. > > > >The open file plugin would take responsibility for unzipping any zip > >files and passing off the contents to the other plugins to load the > >appropriate files. > > > >I'm going to have do an investigation and create a plugin to demonstrate > >this. > > > >Paul > > > >- > >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