[udig-devel] Developing a new file format plugin

Jody Garnett jgarnett at refractions.net
Thu Oct 19 15:00:15 PDT 2006


Paul Austin wrote:
> Hi Jordy,
>
> I'm looking at several formats including GPX (GPS Exchange), SAIF and 
> any others I find useful, once I have them up and running I will look 
> at making them available to the wider community. Not sure when that 
> we'll be however.
No worries, and if you want svn access to host the work in progress that 
is cool too.
Jody
>
> Cheers,
> Paul
>
> On Thu, 2006-10-19 at 13:54 -0700, Jody Garnett wrote:
>> Hi Paul that is todays topic in the training course I am doing, so yes 
>> there is documentation but it is part of our training course.
>> > Is there any documentation or worked examples on how to create a new 
>> > reader/writer for file formats not supported by uDig.
>> In the programmers guide you will find a discussion of IService and 
>> IGeoResource (the two interfaces you will need to implement to represent 
>> your file format) ...  From there you will need to use that eclipse 
>> house rule "monkey see monkey do" and copy one of the import wizards (I 
>> think there may be a special extention point just to describe file 
>> formats with their filename extensions).
>> - 
>> http://udig.refractions.net/help/topic/net.refractions.udig.doc/html/2%20Catalog.html
>>
>> You can look in the svn repository for the sample code use in the 
>> training course, it does include an example of doing this for a quick 
>> text based file.
>> - 
>> http://svn.geotools.org/udig/trunk/tutorials/net.refractions.udig.tutorials.catalog.property/
>>
>>  From there you need to define what you want to do? If you just want 
>> access to your file you can make a quick ResolveAdapater that will open 
>> up the file from the URI and connection parameters.
>>
>> If you want to see your file on screen you can define your own renderer.
>> - 
>> http://udig.refractions.net/help/topic/net.refractions.udig.doc/html/7%20Renderers.html
>>
>> Once again there is an example of doing this for the property file 
>> format mentioned above:
>> - 
>> http://svn.geotools.org/udig/trunk/tutorials/net.refractions.udig.tutorials.render.property/
>>
>> If you want to turn your own file format into Features (and make use of 
>> all the visualization and editing goodness in uDig) you will need to 
>> look into how to make a geotools datastore, there is a tutorial on this 
>> here (but it is a little out of date):
>> - http://docs.codehaus.org/display/GEOTOOLS/DataStore+Walkthrough
>>
>> Note you can use this to quickly create a "readonly" data source, or 
>> invest more time and do read/write.
>> > I have the actual reader/writer that can read the file format I just 
>> > need to be able to integrate it into the uDig app.
>> See above, you can do a minimal bit of work to get something into the 
>> catalog and then on screen, or you can create a datastore.
>>
>> If your file format is interesting to more people then just you let me 
>> know and we can set you up with uDig svn community folder so you can 
>> share your work.
>>
>> Jody
>> _______________________________________________
>> User-friendly Desktop Internet GIS (uDig)
>> http://udig.refractions.net
>> http://lists.refractions.net/mailman/listinfo/udig-devel
>>     
> ------------------------------------------------------------------------
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>   



More information about the udig-devel mailing list