Hi Stefan,

Yes, you can take example to the csvdriver which is the most recent one.
It uses :
- DataSource (replace JumpReader / JumpWriter)
     datasource creates a connection able to read/write featurecollections
     but you can use it as a read only source.
     It is a powerful abstraction which is able to manage database 
datasources
     as well as file datasources. For older drivers, Jonathan created an 
adapter
     between JumpReader/JumpWriter and the new DataSource interface

- DriverConfiguration : in csv driver, I used Paul's new framework to
define option panels. You'll see that file loader and saver using this
framework are are created separately in this configuration class.
So you can easily create a loader without creating a saver. Also, the
configuration class itself extends Extension class and will be discovered
automatically when OpenJUMP is loaded.

- Recently, I added persistence of csv driver in project file. The main 
difficulty
was that after you have saved a featureCollection using an external 
driver, the
whole project was broken if you missed the driver. It should now be able to
skip the unreadable layers.

- In another, less popular driver (for GeoConcept), I tried to manage files
containing several layers. I could achieve it with the datasource framework
but it is a bit hackish, and I've been stuck with xml-persistence mechanism
for several days.
If you do not intend to implement writer, there is no big problem. But for
a read/write multi-layer file driver I'm not yet sure what is the best 
way to
implement it (using existing frameworks).

Hope that helps,

Michaël

> Hi all - and in particular Michael,
>
> So, I think I have a fairly stable first version of my OSM reader.
> Although I still seem to miss out a couple of objects.
>
> I think it is best when I add my OSM file reader as external jar/plugin
> like you Michael did with dxf and csv or Larry with kml ... (or other
> opinions?)
>
> However, I am not sure what is needed to do so:
> I see that Michael has added for his CSV reader/writer a class
> xxxDriverConfiguration - that extends "Extension"
> and a class
> xxxDataSource - that extends "DataSource"
> and a class
> xxxDataSourceQueryChooser
>
> So I assume I need to create these three as well for proper support?
> as described in:
> http://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=How_to_write_a_new_driver
> ?
>
> Because right now I am just having a menu function that opens its own
> file dialog.
>
> What else is to do - in particular as I do only have a reader... e.g. do
> I need to create java2xml files?
>
> I hope I get this finished soon.
>
> best,
> stefan
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to