[udig-devel] ShapeType changed illegally from Point to Undefined
Jesse Eichar
jeichar at refractions.net
Wed Nov 8 04:08:02 PST 2006
Hi,
I remember trying to fix a related problem. It occurred when a new
shapefile is created then points are added to the file. Try uDig
1.1RC5 and see if this problem is fixed. If it isn't let me know and
I will make sure I can fix it.
I'm quickly having a look at the code right now to see if there is
any obvious problem.
Jesse
On 8-Nov-06, at 2:51 AM, Schneider, Michael wrote:
> Hi,
>
> as you know meanwhile I'm working with shapefiles and marks in uDIG.
>
> Marking several points using a shapefile you have two possibilities:
> 1) Use a shapetype of multipoint with one record of all the points
> (that's what I did up to now) - drawback: you only have one item in
> the feature info table.
>
> 2) Use a shapetype of point with one record for every point - then
> you have number of point items in the feature info table
>
> But when I do it the 2nd way I encounter the following problem:
> When all the points are shown it is fine, but when I pan or scale
> so that at least one point is not visible anymore all but 1
> dispappear, although there should be more than 1! By the way: the
> feature info table still shows all points.
>
> This does not happen when working with a MultiPoint shapefile.
>
> That's the exception I got:
>
> !ENTRY net.refractions.udig.project 2 0 2006-11-08 11:03:47.902
> !MESSAGE Problem beim Rendern:ShapeType changed illegally from
> Point to Undefined
> !STACK 0
> net.refractions.udig.project.render.RenderException: Problem beim
> Rendern:ShapeType changed illegally from Point to Undefined
>
> at
> net.refractions.udig.render.internal.feature.basic.BasicFeatureRendere
> r.render(BasicFeatureRenderer.java:293)
>
> at
> net.refractions.udig.render.internal.feature.basic.BasicFeatureRendere
> r.render(BasicFeatureRenderer.java:205)
>
> at
> net.refractions.udig.project.internal.render.impl.TilingRenderer.rende
> r(TilingRenderer.java:79)
> at
> net.refractions.udig.project.internal.render.impl.RenderExecutorImpl
> $RenderJob.startRendering(RenderExecutorImpl.java:286)
>
> at
> net.refractions.udig.project.internal.render.impl.RenderExecutorImpl
> $RenderJob.run(RenderExecutorImpl.java:351)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
> Caused by: java.lang.IllegalStateException: ShapeType changed
> illegally from Point to Undefined
> at
> org.geotools.data.shapefile.shp.ShapefileReader.nextRecord
> (ShapefileReader.java:453)
> at org.geotools.data.shapefile.shp.ShapefileReader.recordAt
> (ShapefileReader.java:566)
> at org.geotools.renderer.shape.IndexInfo$Reader.next
> (IndexInfo.java:294)
> at
> org.geotools.renderer.shape.ShapefileRenderer.processShapefile
> (ShapefileRenderer.java:489)
> at
> org.geotools.renderer.shape.ShapefileRenderer.processStylersNoCaching(
> ShapefileRenderer.java:291)
> at org.geotools.renderer.shape.ShapefileRenderer.paint
> (ShapefileRenderer.java:1286)
> at org.geotools.renderer.shape.ShapefileRenderer.paint
> (ShapefileRenderer.java:205)
> at
> net.refractions.udig.render.internal.feature.basic.BasicFeatureRendere
> r.render(BasicFeatureRenderer.java:278)
>
> ... 5 more
>
> Any ideas?
>
> Michael
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.refractions.net/pipermail/udig-devel/attachments/20061108/c44c35b5/attachment-0001.html
More information about the udig-devel
mailing list