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

Schneider, Michael michaelms.schneider at siemens.com
Wed Nov 8 07:11:31 PST 2006


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.BasicFeatureRenderer.
render(BasicFeatureRenderer.java:293)

	        at
net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.
render(BasicFeatureRenderer.java:205)

	        at
net.refractions.udig.project.internal.render.impl.TilingRenderer.render(
TilingRenderer.java:79) 
	        at
net.refractions.udig.project.internal.render.impl.RenderExecutorImpl$Ren
derJob.startRendering(RenderExecutorImpl.java:286)

	        at
net.refractions.udig.project.internal.render.impl.RenderExecutorImpl$Ren
derJob.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(ShapefileRead
er.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(Shapefile
Renderer.java:489) 
	        at
org.geotools.renderer.shape.ShapefileRenderer.processStylersNoCaching(Sh
apefileRenderer.java:291) 
	        at
org.geotools.renderer.shape.ShapefileRenderer.paint(ShapefileRenderer.ja
va:1286) 
	        at
org.geotools.renderer.shape.ShapefileRenderer.paint(ShapefileRenderer.ja
va:205) 
	        at
net.refractions.udig.render.internal.feature.basic.BasicFeatureRenderer.
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/855e72e3/attachment-0001.html


More information about the udig-devel mailing list