There is an option so you can stop all threads.  That may help. 

I would first and foremost create a unit test for your datastore that ensures that the correct features are being created and returned correctly.  Streaming Renderer has seen quite a bit of abuse so I'd suggest that there is a problem with your feature reader.  In the unit test make use a Query that restricts the returned feature to only having a geometry.  For example:

Filter f=//create a bbox filter
Query q=new DefaultQuery( "typename", filter, new String[]{ featureType.getDefaultGeometry().getName } );

If a query like that works correctly then Streaming Renderer _should_ work as well.

Jesse

Johan C. de Koning wrote:

Thanks for your answer. I don’t get any features inside the StreamingRenderer, so I have to fix this.

 

The problem is that I think it has something to do with threading. When I add breakpoints to the WFSFeatureReader (to see how WFS is working), rendering gives the same error because StreamingRenderer doesn’t get any feature. Is there something I can do to make debugging possible but do not interrupt the threads?

 

Best regards,

 

Johan de Koning

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Jesse Eichar
Sent: Thursday, January 26, 2006 6:19 PM
To: User-friendly Desktop Internet GIS
Subject: Re: [udig-devel] Problems with rendering own DataStore

 

If you are on 1.1 you can get more information if you turn tracing on.  It will tell you more about what is happening at the renderer level. 

Second try putting a break point on StreamingRenderer line 1071 (or so,  the line in processStylers() that says if (!reader.hasNext()) ...)  and make sure that you are getting features.

Second check the line in process() around line 1115 that says:  if ((filter == null) || filter.contains(feature)) and make sure that the filter accepts the feature.

If both of these are true then check the geometry of the feature and make sure it is accurate. 

Jesse

Johan C. de Koning wrote:

Hello,

 

I created a new Udig catalog plugin for getting data from our Oracle Application Server (from EJB). I created a new DataStore, DataStoreFactory and FeatureReader to get the data from the server. It looks like this is working correctly. Things as layer summary are working and are giving the right schema. Only rendering is not working. I don’t know what I am doing wrong. Maybe somebody can give me a clue which could give the following error

 

Error: Problem rendering: Exception rendering layer DefaultMapLayer[ Test, VISIBLE, style=StyleImpl<NO_PARENT>[name=Default Styler],[EMAIL PROTECTED], query=Query: [Request All Features]

 

Maybe this is really less information but I don’t know where to start in relation with the code.

 

Best regards,

 

Johan de Koning

 


 
_______________________________________________
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

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to