Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strange error: Can't render polygon

Tags:

ios

mkmapview

I use a MKMapView to display about 700 annotations in total. My issue is that sometimes I get a huge log like this:

2013-06-05 17:32:12.395 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 324): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.396 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 480): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.396 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 30): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.396 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.396 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 1818): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 234): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 90): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 174): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 162): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 186): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 114): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 120): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.399 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 78): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.399 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 126): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.399 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 192): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.399 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.399 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 30): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.400 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 156): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.400 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.400 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.400 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 84): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.400 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 30): featureID: 1547811419 key: 73.35.7 (512)

I've been unable to find anything regarding the error, and am completely baffled. There are no real visual discrepancies that i can see, and there are no other errors. Anyone got any idea what this is all about?

like image 507
Tapppi Avatar asked Jun 05 '13 14:06

Tapppi


1 Answers

I also had the same problem once in iOS6.1.
I was zooming out the map based on a coordinate which was (0.00000,0.00000).
In my code:-
CLLocationCoordinate2D theCoordinate ;
    theCoordinate.latitude = [[self.dicOfMAP objectForKey:@"latitude"] doubleValue];
    theCoordinate.longitude = [[self.dicOfMAP objectForKey:@"longitude"] doubleValue];

    self.pointAnnotation.coordinate = theCoordinate;

the value of theCoordinate was(0.0,0.0).
So check the value of coordinate.
like image 128
Tanvi Jain Avatar answered Sep 29 '22 11:09

Tanvi Jain