Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [udig-devel] Custom Renderer

Thanks! 

-----Original Message-----
From: udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx
[mailto:udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Justin
Deoliveira
Sent: Thursday, June 16, 2005 11:04 AM
To: User-friendly Desktop Internet GIS
Subject: Re: [udig-devel] Custom Renderer

The link between udig and a geotools data store is the catalog. You will need
to extend the net.refractions.udig.catalog.ServiceExtension
extenstion point. This involves the implementation of three classes.

1. net.refractions.udig.catalog.ServiceExtension, which is responsible for
taking in connection parameters (a url in the case of most file data
stores) and creating a service from it.

2. net.refractions.udig.catalog.IService, the handle to your data store.

3. net.refractions.udig.catalog.IGeoResource, the handle to you feature
source.

After the catalog handles have been written, all you should need to do is add
another file format by extending the
net.refractions.udig.catalog.ui.fileFormat extension point.

For an example, check out the net.refractions.udig.catalog.shp plugin. 
Your dxf catalog plugin will end up looking very similar to it.



Edwards, Wendy A ERDC-CERL-IL Contractor wrote:
> OK, I've written some classes - right now, I have an extension of 
> AbstractFileDataStore, but I can make a FeatureSource too.  I've 
> written a couple of test classes, including one with the Geotools 
> LiteRenderer2 (which Udig is apparently using), and the results are 
> encouraging.  So can you give me more specific information about how to
plug this into Udig?
> 
> Thanks,
> Wendy
> 
> -----Original Message-----
> From: Jody Garnett [mailto:jgarnett@xxxxxxxxxxxxxxx]
> Sent: Monday, May 23, 2005 11:25 AM
> To: User-friendly Desktop Internet GIS; Edwards, Wendy A ERDC-CERL-IL 
> Contractor
> Subject: Re: [udig-devel] Custom Renderer
> 
> Edwards, Wendy A ERDC-CERL-IL Contractor wrote:
> 
>>Thanks!  DXF is a vector format for CAD.  I already have code to 
>>convert a CAD file to a geotools FeatureCollection.  So would the best 
>>approach at this point be to just turn it into a FeatureSource (which 
>>the UDIG renderer can already deal with)?
> 
> 
> Yes !
> 
> If we can do that then everything else will just kind of work.  And if 
> we have support for a CAD format that includes its own per feature 
> styling it would make a great tutorial for writing a Renderer.
> 
> I wonder if you could attend the GeoTools meeting today? It would be 
> nice to get DBF its own geotools plugin to play with.
> 
> That said you are welcome to develop your datastore on the udig 
> subversion repository (or even supply a jar if you are under source code
restrictions).
> 
> This will be exciting, access to more data is always a good thing.
> 
> Jody
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net 
> http://lists.refractions.net/mailman/listinfo/udig-devel


-- 
Justin Deoliveira
Refractions Research Inc.
Email: jdeolive@xxxxxxxxxxxxxxx
Phone: 250.885.4387
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel


Back to the top