[JPP-Devel] Sponsors
Hi All Anybody know who are the sponsors of OpenJump, Organizations of JPP? Thanks Hernan _ -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] OpenJump Documentation
Hi All! Does anyone know if there is documentacion of OJ Core? Documentation like class diagram or something where i can see the main classe and their relations (Map, LayerManager, Layer, etc). If there is not, maybe someone have a scheme of the most important classes that can share. Thanks a lot! Hernan _ -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] Aditional information about OpenJump
Hi All! Does anyone knows the minimal and recomended system requirements to OPENJUMP? I mean OS suported xp, vista, Seven, linux versions, amount of memory, CPU, etc, Other question, what are the dependency of OJ? I mean third parts that OJ needs to work, e.g. GeoTools, JRE, etc. Thanks in advance! Hernan _ -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] OpenJump Documentation
Hi Benjamin! It is a great work!! That is what I was looking for, it is very useful. Thank you for share it, and thank all those who collaborate with this great list!! Regards Hernan _ -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Fonts True type as style of a point
Larry that would be great!, and also would be very useful to add VertexStyle inside of the ColorThemingStyle if it`s possible. Hernan. _ -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] Fonts True type as style of a point
Hi all! I got some fonts (True Type) and I want to assign a Character of any fonts to a Layer of points as style, it is like the vertex style with images, but I got many many fonts builded instead of images. Is it possible to use fonts? Thanks Hernán. _ -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Style to points within the ColorThemingStyle
Nils, Sunburned Thanks for answer guys, This was what I supposed, unfortunately i have not still the enough knowledge to modify the core of OJ, maybe in a couple of weeks... Geoffrey your plugins are nice, I will test them, but reading the description of vertexPlugin, I have noted that it is not that I need. I need Symbol (OJ default only) can be set to a layer of points but inside a ColorThemingStyle. Regards! _ -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] Bug while loading a jpeg image (OJ default plugin)
Hi all! I have recived an error while loading a jpeg image, when I was using the default plugin OpenFilePlugIn of OJ. The problem is to some images like this but with lesser resolution images OJ works ok. The image does not appear and its properties are: jpeg, dimention 5830x4514, size 6 MB, and i got the correct jgw file. An extract of the Eclipse error console: *** Error: One factory fails for the operation jpeg Occurs in: javax.media.jai.ThreadSafeOperationRegistry java.lang.reflect.InvocationTargetException .. *** I attach the entire error in a file. Thanks for the help! Regards. Hernan _ Error: One factory fails for the operation jpeg Occurs in: javax.media.jai.ThreadSafeOperationRegistry java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130) at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682) at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481) at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340) at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:110) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130) at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682) at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481) at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340) at com.sun.media.jai.opimage.FileLoadRIF.create(FileLoadRIF.java:122) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130) at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1682) at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481) at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340) at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:830) at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878) at javax.media.jai.RenderedOp.getWidth(RenderedOp.java:2190) at com.vividsolutions.jump.workbench.imagery.graphic.GraphicImage.computeEnvelope(GraphicImage.java:130) at com.vividsolutions.jump.workbench.imagery.graphic.GraphicImage.getEnvelope(GraphicImage.java:113) at com.vividsolutions.jump.workbench.imagery.ImageryLayerDataset.createImage(ImageryLayerDataset.java:79) at org.openjump.core.ui.io.file.ReferencedImageFactoryFileLayerLoader.createFeature(ReferencedImageFactoryFileLayerLoader.java:205) at org.openjump.core.ui.io.file.ReferencedImageFactoryFileLayerLoader.open(ReferencedImageFactoryFileLayerLoader.java:117) at org.openjump.core.ui.plugin.file.open.OpenFileWizard.run(OpenFileWizard.java:131) at org.openjump.core.ui.plugin.AbstractWizardPlugin.run(AbstractWizardPlugin.java:71) at com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:151) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.OutOfMemoryError: Java heap space at java.awt.image.DataBufferByte.init(DataBufferByte.java:42) at java.awt.image.Raster.createInterleavedRaster(Raster.java:253) at java.awt.image.BufferedImage.init(BufferedImage.java:365) at com.sun.media.jai.codecimpl.JPEGImage.init(JPEGImageDecoder.java:151) at com.sun.media.jai.codecimpl.JPEGImageDecoder.decodeAsRenderedImage(JPEGImageDecoder.java:53) at com.sun.media.jai.opimage.CodecRIFUtil.create(CodecRIFUtil.java:120) at com.sun.media.jai.opimage.JPEGRIF.create(JPEGRIF.java:52) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
[JPP-Devel] Style to points within the ColorThemingStyle
Hi all! I need to assign style to a Layer of points, but inside of the ColorThemingStyle (with Style i mean show the point like a triangle, square or circle). I know and I use VertexStyle to assign the style to the layer and It works ok like a BasicStyle, but this kind of style is used to whole layer and it does not work for ColorThemingStyle (attributees with style). The class ColorThemingStyle only receives BasicStyle, and I can not put a VertexStyle here, (I think): *** public ColorThemingStyle(String attributeName, Map ttributeValueToBasicStyle Map, BasicStyle defaultStyle) *** Is it possible to assign style to the ColorThemingStyle? Thanks and regards. Hernán. _ -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] Generate file of tracings (Persona lized Feature Layers)
Hi Nils, You are right, I was missed with some things. I found that I need with the things you told me and reading the GMLReader class code. Regards Hernan. _ -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
Re: [JPP-Devel] How handle diferents menu items, inside the same plugin
Ok, This was what I thought. thanks for the help!. Hernan. _ -- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] How to hide menu options without desactivate the plugin
Hi all! thanks for answer in advance! I need to hide the options of the menu i.e. FILE and all its submenus, EDIT and all its submenus, . including the ABOUT menu. But i don´t want desactivate these plugins, i just want to use them only by code. I saw the file called default-plugins.xml contained in the /bin/ folder, but if I comment the plugins, they will not be loaded with OJ. Any suggestion to hide the menu? Hernan. _ -- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] Generate file of tracings (Persona lized Feature Layers)
Hi guys! I need to generate a file of tracings (like a feature layer), this file must contain distint shapes like points, lines, poligons, symbology, and text, all these shapes drawed by user on a map. I know that to do this, I need to generate a new FLayer for each kind of shape and draw on it, so my file of tracings will has 5 Flayer. 1) To generate distint styles for each shape inside the same FLayer, i will use ColorThemingStyle with value attribute selected by user. is it correct or there is a better way? 2) Is there already any plugins to do file of tracings that I need? if not, once my plugin is terminated i want to share it with all of you! Thanks, Regards! Hernan. _ -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] How handle diferents menu items, inside the same plugin
Hi all! I got only one plugin with diferents menu items, each of them call a diferent method. Therefore inside the method execute(PlugInContext context) ¿how can i know which button is pressed? so i can call the correct method. public void initialize(PlugInContext context) throws Exception { FeatureInstaller featureInstaller = new FeatureInstaller(context.getWorkbenchContext()); featureInstaller.addMainMenuItem( this, new String[] {My Plugin}, nameFunction1, false, null, createEnableCheck(context.getWorkbenchContext())); featureInstaller.addMainMenuItem( this, new String[] {My Plugin}, nameFunction2, false, null, createEnableCheck(context.getWorkbenchContext())); } public boolean execute(PlugInContext context) throws Exception { ¿which command has the user pressed? nameFunction1 or nameFunction2 ? } Thanks! _ -- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] How to Create TransverseMercator Coordinate System
Hi all! thanks for reading in advance! I got ESRI Shapefiles, they are made with the Projection Gauss Kruger Posgar 94 Number 1. I know that the epsg code is 22181, and i also know other atributes for this projection like OriginLongitude= -72 ; OriginLatitude= -90 ; FalseEasting= 150; FalseNorthing= 0; CentralMeridian= -72. Gauss Kruger Posgar is synonymous of Transverse Mercator. I`ve found only this code in OpenJump for handling TransverseMercator: new TransverseMercator() { { setSpheroid(new Spheroid(new Radius(Radius.GRS80))); setParameters(-72.0); }} * With the method setParameters i set up the CentralMeridian atribute, but how can I set up the rest of the atributes? o how can I do this in the correct way? Thanks!!! _ -- ___ 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 Create TransverseMercator Coordinate System
hi stefan! I got the shapefiles made with Planar coordinate system (Transversa Mercator), it is not lat/lon. Yes you are right, OpenJump displays perfectly the coordinates as written in the shapefile, but I also want reproject it to lat/lon coordinate system, so I can see both coordinates in the below bar with the same data stored. So, to do the reprojection, I need set up the coordinate system with the correct parameters. The link you passed to me is exactly that I need! Thanks a lot! Hernan. _ -- ___ 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 load ESRI shapefiles by code
Hi all, in the same way that load a layer by code, I needed load a jpg image by code, at the same map. I want to share with you too, the code to load an image without a wizard: *** *** public boolean execute(PlugInContext context) throws Exception { LayerManager layerManager = context.getWorkbenchContext().getLayerManager(); layerManager.setFiringEvents(false); File file = new File(c://image.jpg); Layer lyr = createLayer(layerManager, file); layerManager.setFiringEvents(true); Category category = TaskUtil.getSelectedCategoryName(context.getWorkbenchContext()); category.add(0, (Layerable) lyr); ReferencedImageFactory imageFactory= new GraphicImageFactory(); //depends the image type Feature feature = createFeature(imageFactory, file, getImageryLayerDataset(lyr)); lyr.getFeatureCollectionWrapper().add(feature); } private Feature createFeature(ReferencedImageFactory referencedImageFactory, File file, ImageryLayerDataset imageryLayerDataset) { Feature feature = new BasicFeature(ImageryLayerDataset.getSchema()); feature.setAttribute(ImageryLayerDataset.ATTR_FILE, file.getPath()); feature.setAttribute(ImageryLayerDataset.ATTR_FORMAT, referencedImageFactory.getTypeName()); feature.setAttribute(ImageryLayerDataset.ATTR_FACTORY, referencedImageFactory.getClass().getName()); feature.setGeometry(new GeometryFactory().createPoint((Coordinate)null)); imageryLayerDataset.createImage(feature); return feature; } private ImageryLayerDataset getImageryLayerDataset(com.vividsolutions.jump.workbench.model.Layer layer) { ReferencedImageStyle irs = (ReferencedImageStyle)layer.getStyle(ReferencedImageStyle.class); return irs.getImageryLayerDataset(); } *** *** Note: in my proyect i have a xml map with layers and images paths, all them with the same projection. Regards! _ -- ___ 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 load ESRI shapefiles by code
Thanks for the help guys! I`ve solved it by the following code: (maybe there are some things no needed, like options, but it works!!) DataSource dataSource = (DataSource)LangUtil.newInstance(StandardReaderWriterFileDataSource.Shapefile.class); MapString, Object options = new HashMapString, Object(); MapString, Object properties = new HashMapString, Object(); properties.put(DataSource.FILE_KEY, c://roads.shp); properties.putAll(options); dataSource.setProperties(properties); DataSourceQuery dataSourceQuery = new DataSourceQuery(dataSource, null, roads); ArrayList exceptions = new ArrayList(); String layerName = dataSourceQuery.toString(); Connection connection = dataSourceQuery.getDataSource().getConnection(); try { FeatureCollection dataset = dataSourceQuery.getDataSource().installCoordinateSystem( connection.executeQuery(dataSourceQuery.getQuery(), exceptions, null), CoordinateSystemRegistry.instance(context.getWorkbenchContext().getBlackboard())); if (dataset != null) { LayerManager layerManager = context.getWorkbenchContext().getLayerManager(); Layer layer = new Layer(layerName, layerManager.generateLayerFillColor(), dataset, layerManager); layerManager.addLayerable(categoryName, (Layerable) layer); layer.setDataSourceQuery(dataSourceQuery); layer.setFeatureCollectionModified(false); layer.setVisible(true); } } finally { connection.close(); } ** _ -- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] How to load ESRI shapefiles by code
Hi all! i'm working on a project, with OpenJump 1.3.1, that it needs to load a set of ESRI Shapefiles from a path to any category of the map. I`ve seen the following code to load a shapefile, of the method open from DataSourceFileLayerLoader class. The problem is that this uses a monitor of a dialog that i haven´t, and i tried use this code but i couldn`t make the dataset. ** Connection connection = dataSourceQuery.getDataSource().getConnection(); try { FeatureCollection dataset = dataSourceQuery.getDataSource().installCoordinateSystem( connection.executeQuery(dataSourceQuery.getQuery(), exceptions, monitor), CoordinateSystemRegistry.instance(workbenchContext.getBlackboard())); if (dataset != null) { LayerManager layerManager = workbenchContext.getLayerManager(); Layer layer = new Layer(layerName, layerManager.generateLayerFillColor(), dataset, layerManager); Category category = TaskUtil.getSelectedCategoryName(workbenchContext); layerManager.addLayerable(category.getName(), layer); layer.setName(layerName); layer.setDataSourceQuery(dataSourceQuery); * ¿ How can i load a shapefile by code in a simple way without an OpenFileWizard ? . Thanks in advance! _ -- ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel