Re: [OpenMap Users] ESRI shape files won't be displayed

From: Jan Peters-Anders <petersja_at_gmx.at>
Date: Tue, 10 Aug 2004 16:00:21 +0200 (MEST)

Hi Don,

thanks for all these rapid replies!

With you code I am now getting tons of these error message below when I
activate the layer:

*********************snip**************************************

sun.dc.pr.PRException: endPath: bad path
        at sun.dc.pr.Rasterizer.endPath(Unknown Source)
        at sun.java2d.pipe.DuctusRenderer.createShapeRasterizer(Unknown Source)
        at sun.java2d.pipe.DuctusShapeRenderer.renderPath(Unknown Source)
        at sun.java2d.pipe.DuctusShapeRenderer.fill(Unknown Source)
        at sun.java2d.pipe.PixelToShapeConverter.fillPolygon(Unknown Source)
        at sun.java2d.SunGraphics2D.fillPolygon(Unknown Source)
        at com.bbn.openmap.omGraphics.OMPoly.render(OMPoly.java:772)
        at com.bbn.openmap.omGraphics.OMGraphicList.render(OMGraphicList.java:835)
        at com.bbn.openmap.omGraphics.OMGraphicList.render(OMGraphicList.java:835)
        at com.bbn.openmap.omGraphics.OMGraphicList.render(OMGraphicList.java:835)
        at
com.bbn.openmap.layer.policy.StandardRenderPolicy.paint(StandardRenderPolicy.java:83)
        at
com.bbn.openmap.layer.OMGraphicHandlerLayer.paint(OMGraphicHandlerLayer.java:439)
        at javax.swing.JComponent.paintChildren(Unknown Source)
        at com.bbn.openmap.MapBean.paintChildrenWithBorder(MapBean.java:873)
        at com.bbn.openmap.BufferedMapBean.paintChildren(BufferedMapBean.java:140)
        at com.bbn.openmap.BufferedMapBean.paintChildren(BufferedMapBean.java:104)
        at javax.swing.JComponent.paint(Unknown Source)
        at com.bbn.openmap.MapBean.paint(MapBean.java:806)
        at javax.swing.JComponent.paintChildren(Unknown Source)
        at javax.swing.JComponent.paint(Unknown Source)
        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)
sun.dc.pr.PRException: endPath: bad path
        at sun.dc.pr.Rasterizer.endPath(Unknown Source)
        at sun.java2d.pipe.DuctusRenderer.createShapeRasterizer(Unknown Source)
        at sun.java2d.pipe.DuctusShapeRenderer.renderPath(Unknown Source)
        at sun.java2d.pipe.DuctusShapeRenderer.draw(Unknown Source)
        at sun.java2d.pipe.PixelToShapeConverter.drawPolygon(Unknown Source)
        at sun.java2d.SunGraphics2D.drawPolygon(Unknown Source)
        at com.bbn.openmap.omGraphics.OMPoly.render(OMPoly.java:794)
        at com.bbn.openmap.omGraphics.OMGraphicList.render(OMGraphicList.java:835)
        at com.bbn.openmap.omGraphics.OMGraphicList.render(OMGraphicList.java:835)
        at com.bbn.openmap.omGraphics.OMGraphicList.render(OMGraphicList.java:835)
        at
com.bbn.openmap.layer.policy.StandardRenderPolicy.paint(StandardRenderPolicy.java:83)
        at
com.bbn.openmap.layer.OMGraphicHandlerLayer.paint(OMGraphicHandlerLayer.java:439)
        at javax.swing.JComponent.paintChildren(Unknown Source)
        at com.bbn.openmap.MapBean.paintChildrenWithBorder(MapBean.java:873)
        at com.bbn.openmap.BufferedMapBean.paintChildren(BufferedMapBean.java:140)
        at com.bbn.openmap.BufferedMapBean.paintChildren(BufferedMapBean.java:104)
        at javax.swing.JComponent.paint(Unknown Source)
        at com.bbn.openmap.MapBean.paint(MapBean.java:806)
        at javax.swing.JComponent.paintChildren(Unknown Source)
        at javax.swing.JComponent.paint(Unknown Source)
        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)
sun.dc.pr.PRException: endPath: bad path
        at sun.dc.pr.Rasterizer.endPath(Unknown Source)
        at sun.java2d.pipe.DuctusRenderer.createShapeRasterizer(Unknown Source)
        at sun.java2d.pipe.DuctusShapeRenderer.renderPath(Unknown Source)
        at sun.java2d.pipe.DuctusShapeRenderer.fill(Unknown Source)
        at sun.java2d.pipe.PixelToShapeConverter.fillPolygon(Unknown Source)
        at sun.java2d.SunGraphics2D.fillPolygon(Unknown Source)
        at com.bbn.openmap.omGraphics.OMPoly.render(OMPoly.java:772)
        at com.bbn.openmap.omGraphics.OMGraphicList.render(OMGraphicList.java:835)
        at com.bbn.openmap.omGraphics.OMGraphicList.render(OMGraphicList.java:835)
        at com.bbn.openmap.omGraphics.OMGraphicList.render(OMGraphicList.java:835)
        at
com.bbn.openmap.layer.policy.StandardRenderPolicy.paint(StandardRenderPolicy.java:83)
        at
com.bbn.openmap.layer.OMGraphicHandlerLayer.paint(OMGraphicHandlerLayer.java:439)
        at javax.swing.JComponent.paintChildren(Unknown Source)
        at com.bbn.openmap.MapBean.paintChildrenWithBorder(MapBean.java:873)
        at com.bbn.openmap.BufferedMapBean.paintChildren(BufferedMapBean.java:140)
        at com.bbn.openmap.BufferedMapBean.paintChildren(BufferedMapBean.java:104)
        at javax.swing.JComponent.paint(Unknown Source)
        at com.bbn.openmap.MapBean.paint(MapBean.java:806)
        at javax.swing.JComponent.paintChildren(Unknown Source)
        at javax.swing.JComponent.paint(Unknown Source)
        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)
sun.dc.pr.PRException: endPath: bad path
        at sun.dc.pr.Rasterizer.endPath(Unknown Source)
        at sun.java2d.pipe.DuctusRenderer.createShapeRasterizer(Unknown Source)
        at sun.java2d.pipe.DuctusShapeRenderer.renderPath(Unknown Source)
        at sun.java2d.pipe.DuctusShapeRenderer.draw(Unknown Source)
        at sun.java2d.pipe.PixelToShapeConverter.drawPolygon(Unknown Source)
        at sun.java2d.SunGraphics2D.drawPolygon(Unknown Source)
        at com.bbn.openmap.omGraphics.OMPoly.render(OMPoly.java:794)
        at com.bbn.openmap.omGraphics.OMGraphicList.render(OMGraphicList.java:835)
        at com.bbn.openmap.omGraphics.OMGraphicList.render(OMGraphicList.java:835)
        at com.bbn.openmap.omGraphics.OMGraphicList.render(OMGraphicList.java:835)
        at
com.bbn.openmap.layer.policy.StandardRenderPolicy.paint(StandardRenderPolicy.java:83)
        at
com.bbn.openmap.layer.OMGraphicHandlerLayer.paint(OMGraphicHandlerLayer.java:439)
        at javax.swing.JComponent.paintChildren(Unknown Source)
        at com.bbn.openmap.MapBean.paintChildrenWithBorder(MapBean.java:873)
        at com.bbn.openmap.BufferedMapBean.paintChildren(BufferedMapBean.java:140)
        at com.bbn.openmap.BufferedMapBean.paintChildren(BufferedMapBean.java:104)
        at javax.swing.JComponent.paint(Unknown Source)
        at com.bbn.openmap.MapBean.paint(MapBean.java:806)
        at javax.swing.JComponent.paintChildren(Unknown Source)
        at javax.swing.JComponent.paint(Unknown Source)
        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)
sun.dc.pr.PRException: endPath: bad path
        at sun.dc.pr.Rasterizer.endPath(Unknown Source)
        at sun.java2d.pipe.DuctusRenderer.createShapeRasterizer(Unknown Source)
        at sun.java2d.pipe.DuctusShapeRenderer.renderPath(Unknown Source)
        at sun.java2d.pipe.DuctusShapeRenderer.fill(Unknown Source)

Thank you again

Jan

> Try this instead:
>
> test.class=com.bbn.openmap.plugin.esri.EsriPlugIn
> test.prettyName=Austria Federal Boundaries
> test.shp=y:/peters/openmapdata/lgrenz_m34.shp
> test.shx=y:/peters/openmapdata/lgrenz_m34.shx
> test.dbf=y:/peters/openmapdata/lgrenz_m34.dbf
> test.lineColor=ff000000
> test.fillColor=ffff0000
>
>
> The LayerHandler will figure out that it's a plugin and configure a
> layer for it automatically.
>
> - Don
>
>
> On Aug 10, 2004, at 9:34 AM, Jan Peters-Anders wrote:
>
> > Hello again,
> >
> > now I am getting closer to uderstanding the principles behind OpenMap,
> > still
> > my ESRI shape files won't be displayed. If I use the code below in my
> > openmap.properties, the shapes seem to load (at least I don't get an
> > error
> > message), the layer is in the layer list and can be chosen for
> > display. The
> > problem is, that nothing is displayed. I still have my world political
> > boundaries and the graticule, but nothing else. When I use the
> > PlugInLayer
> > class instead I get the error message:
> >
> > *** ERROR ***
> > LayerHandler: Skipped "test" - unable to create
> > *************
> > Here's my code:
> >
> > ******************************************************
> >
> > #ESRI Testlayer Austria
> >
> > #test.class=com.bbn.openmap.plugin.PlugInLayer
> > test.class=com.bbn.openmap.plugin.esri.EsriLayer
> > test.prettyName=Austria Federal Boundaries
> > test.plugin=com.bbn.openmap.plugin.esri.EsriPlugIn
> > test.plugin.shp=file://y:/peters/openmapdata/lgrenz_m34.shp
> > test.plugin.shx=file://y:/peters/openmapdata/lgrenz_m34.shx
> > test.plugin.dbf=file://y:/peters/openmapdata/lgrenz_m34.dbf
> > test.plugin.lineColor=ff000000
> > test.plugin.fillColor=ffff0000
> >
> > Thank you very much in advance
> >
> > Jan
> >
> > --
> > Remember, Linux is a wigwam: No Windows. No Gates. Apache inside.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > .
> >
> > NEU: WLAN-Router für 0,- EUR* - auch für DSL-Wechsler!
> > GMX DSL = supergünstig & kabellos http://www.gmx.net/de/go/dsl
> >
> > --
> > [To unsubscribe to this list send an email to "majdart_at_bbn.com"
> > with the following text in the BODY of the message "unsubscribe
> > openmap-users"]
> >
> >
>
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Don Dietrick, dietrick_at_bbn.com
> BBN Technologies, Cambridge, MA
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>

-- 
Remember, Linux is a wigwam: No Windows. No Gates. Apache inside. 
.
NEU: WLAN-Router für 0,- EUR* - auch für DSL-Wechsler!
GMX DSL = supergünstig & kabellos http://www.gmx.net/de/go/dsl
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Aug 10 2004 - 10:01:25 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:05 EDT