Christopher,

I just spent a couple of hours going through the code and Javadoc for
this part of OpenJUMP in response to a question asked on the mailing
list. I summarized the results of my research on the OpenJUMP wiki:

http://openjump.org/wiki/show/File+DataSource+Notes

If I understand the code correctly you create a DataSource to
represent your source of features, you then create a Connection class
that can be used to query a FeatureCollection containing features from
the DataSource. This Connection would use a Reader and Writer
internally to access the file. All of this would be wrapped in a
plug-in.

If we are working with data that might not be represented as a group
of Feature objects, but as something else, (like annotations perhaps)
then it might be better to avoid the DataSource framework and work
directly with the Workbench trough a custom plug-in.

Let me know if you have more questions. I can help you with
implementing a DataSource for TIN files if that's what you are
currently working on.

The Sunburned Surveyor

On Mon, Jun 9, 2008 at 3:09 PM, Paul Austin <[EMAIL PROTECTED]> wrote:
> Christopher,
>
> The data sources are more useful for database connections where you don't
> load the whole file into memory at one time. Also data sources are the way
> that the link to the reader is done when saving a project. The data source
> is associated with the layer and then when you open the project it uses the
> data source to open the data.
>
> Paul
>
> On Mon, Jun 9, 2008 at 7:48 AM, Christopher <[EMAIL PROTECTED]> wrote:
>>
>> That seems to be the way most of the data input output
>> is done. I'm just wondering why the whole datasource
>> bit came about if it only winds up being a wrapper for
>> JUMPReader & JUMPWriter.
>>
>> Thank  you for the feedback,
>> --Christopher
>>
>> --- Paul Austin <[EMAIL PROTECTED]> wrote:
>>
>> > Christopher,
>> >
>> > The easiest way is to use the
>> >
>> com.vividsolutions.jump.io.datasource.StandardReaderWriterDataSource
>> > to
>> > just wrap a JUMp Reader and Jump Writer.
>> >
>> > If you then register it using
>> > InstallStandardDataSourceQueryChoosersPlugIn it will
>> > show up in the
>> > Open/Save dialogs.
>> >
>> > Paul
>> >
>>
>>
>>
>>
>>
>> -------------------------------------------------------------------------
>> 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
>
>
> -------------------------------------------------------------------------
> 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
>
>

-------------------------------------------------------------------------
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

Reply via email to