StreamingRenderer is just the update to LiteRenderer2.  It still just
draws a context to a Graphics2D object, as far as I can tell.  I have
been working on some stuff for "dynamic layers" using piccolo but I
only have it working for Point data at this point.

-Tom

On 11/2/05, Wendy Schafer <[EMAIL PROTECTED]> wrote:
> I've gotten this error message before, but I believe my data still
> displayed. My guess is that something else is causing the problem.
>
> I'm curious about this StreamingRenderer class.  Is it part of the
> GeoTools package?  I'm looking for a way to have geotools automatically
> and effeciently repaint when data is added, modified, or deleted.
>
> Wendy
>
> Tom Howe wrote:
> > Hi,
> > I'm having a problem when I try to display a layer using the
> > StreamingRenderer.
> >
> > With this little test class:
> >
> > static class MapPanel extends JPanel {
> >               MapContext context;
> >
> >               StreamingRenderer renderer;
> >
> >               public MapPanel(MapContext context) {
> >                       this.context = context;
> >                       this.renderer = new StreamingRenderer();
> >                       renderer.setContext(context);
> >                       setBackground(Color.WHITE);
> >               }
> >
> >               public void paint(Graphics g) {
> >                       super.paint(g);
> >                       if (context.getLayerCount() == 0) {
> >                               return;
> >                       }
> >                       Graphics2D g2d = (Graphics2D) g;
> >                       renderer.paint(g2d, new Rectangle(500, 500), context
> >                                       .getAreaOfInterest());
> >               }
> >       }
> >
> > when I try to display the panel with one layer, I get this error:
> >
> > Nov 2, 2005 10:08:22 AM org.geotools.map.DefaultMapContext getLayerBounds
> > SEVERE: Data source and map context coordinate system differ, yet it
> > was not possible to get a projected bounds estimate...
> > org.opengis.referencing.operation.OperationNotFoundException: Bursa
> > wolf parameters required.
> >       at 
> > org.geotools.referencing.operation.DefaultCoordinateOperationFactory.createOperationStep(DefaultCoordinateOperationFactory.java:1097)
> >       at 
> > org.geotools.referencing.operation.DefaultCoordinateOperationFactory.createOperationStep(DefaultCoordinateOperationFactory.java:1163)
> >       at 
> > org.geotools.referencing.operation.DefaultCoordinateOperationFactory.createOperationStep(DefaultCoordinateOperationFactory.java:909)
> >       at 
> > org.geotools.referencing.operation.DefaultCoordinateOperationFactory.createOperation(DefaultCoordinateOperationFactory.java:232)
> >       at org.geotools.referencing.CRS$1.factory(CRS.java:125)
> >       at org.geotools.referencing.CRS.visit(CRS.java:143)
> >       at org.geotools.referencing.CRS.transform(CRS.java:123)
> >       at 
> > org.geotools.map.DefaultMapContext.getLayerBounds(DefaultMapContext.java:499)
> >       at 
> > org.geotools.map.DefaultMapContext.getAreaOfInterest(DefaultMapContext.java:583)
> >       at 
> > repast.plugins.gisBaseLayerLoader.WizardTest$MapPanel.paint(WizardTest.java:109)
> >       at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
> >       at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
> >       at javax.swing.JComponent._paintImmediately(Unknown Source)
> >       at javax.swing.JComponent.paintImmediately(Unknown Source)
> >       at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
> >       at 
> > javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown
> > Source)
> >       at java.awt.event.InvocationEvent.dispatch(Unknown Source)
> >       at java.awt.EventQueue.dispatchEvent(Unknown Source)
> >       at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown 
> > Source)
> >       at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> >       at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> >       at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> >       at java.awt.EventDispatchThread.run(Unknown Source)
> >
> >
> > Based on some posts that I have seen I tried using this line:
> >
> > FactoryFinder.getCoordinateOperationFactory(new Hints(
> >                               Hints.LENIENT_DATUM_SHIFT, Boolean.TRUE));
> >
> > but it didn't help.  Any thoughts would be most appreciated.
> >
> > Thanks,
> > Tom
> >
> >
> > -------------------------------------------------------
> > SF.Net email is sponsored by:
> > Tame your development challenges with Apache's Geronimo App Server. Download
> > it for free - -and be entered to win a 42" plasma tv or your very own
> > Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> > _______________________________________________
> > Geotools-gt2-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> >
> >
> >
>


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to