Sunburned Surveyor wrote: Hi,
> I did a little reading in the old JUMP Developer Guide and the > OpenJUMP Javadoc. I was wondering if you could indicate to me which > method is used to obtain the FeatureCollection from the DataSource. Is > it the installCoordinateSystem method? I see that it returns a > FeatureCollection, but it seems like an odd name. I was expecting to > find a getFeatureCollection method or something similar. I'm currently using the following mechanism. I extend the class com.vividsolutions.jump.io.datasource.StandardReaderWriterFileDataSource as follows: public static class DeeMapInfoFile extends StandardReaderWriterFileDataSource { public DeeMapInfoFile() { super( new DeegreeMapInfoReader(), null, new String[] { "mid", "mif" } ); } } with the DeegreeMapInfoReader implementing the com.vividsolutions.jump.io.JUMPReader interface with the method public FeatureCollection read( DriverProperties dp ) throws Exception; A solution would be to add an ExtendedJUMPReader with an additional method that gets called with the layer or something later on. That would enable old plugins to continue to work, and a simple instanceof tells us with which reader we're dealing. Best regards, Andreas -- l a t / l o n GmbH Aennchenstrasse 19 53177 Bonn, Germany phone ++49 +228 18496-12 fax ++49 +228 1849629 http://www.lat-lon.de http://www.deegree.org ------------------------------------------------------- On June 17 is deegree day - Am 17. Juni ist deegree day http://deegree.org/deegreeday
signature.asc
Description: Digital signature
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php
_______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel