AW: [udig-devel] ShapeType changed illegally from Point to Undefined

Jesse Eichar jeichar at refractions.net
Wed Nov 8 08:33:04 PST 2006


Ok Fair enough.  I will look into this issue and see if I can resolve  
it.

Jesse

On 8-Nov-06, at 7:11 AM, Schneider, Michael wrote:

> Hi,
>
> I'm sorry to say so, but it seems to be worse with RC 5. I now use  
> the download from today (RC 5) as stand-alone, and the RC 4 SDK  
> version, so I can compare them directly.
>
> Using shapetype Multipoint: RC 5 only shows one of three points in  
> the shapefile; with the same shapefile RC 4 shows all three.
> Using shapetype Point with 3 records: RC 4 shows all when all 3 are  
> visible, but after zooming shows only one when 2 should be visible.  
> In contrast RC 5 only shows 1 when all 3 are visible and when  
> zooming in so that the one which is shown stays visible, it  
> disappears!
>
> Michael
>
> Von: udig-devel-bounces at lists.refractions.net [mailto:udig-devel- 
> bounces at lists.refractions.net] Im Auftrag von Jesse Eichar
> Gesendet: Mittwoch, 8. November 2006 13:08
> An: User-friendly Desktop Internet GIS
> Betreff: Re: [udig-devel] ShapeType changed illegally from Point to  
> Undefined
>
> 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.BasicFeatureRender 
>> er.render(BasicFeatureRenderer.java:293)
>>
>>         at  
>> net.refractions.udig.render.internal.feature.basic.BasicFeatureRender 
>> er.render(BasicFeatureRenderer.java:205)
>>
>>         at  
>> net.refractions.udig.project.internal.render.impl.TilingRenderer.rend 
>> er(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.BasicFeatureRender 
>> er.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
>
> _______________________________________________
> 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/31183c15/attachment.html


More information about the udig-devel mailing list