On 05/27/2011 04:24 PM, Dane Springmeyer wrote:
>> I once wrote a simple map renderer in Java where I included a heuristic >> algorithm to split "wrapping" polygons in two on the fly while rendering >> -- detect the dateline crossover in the polygon's vertices, and in case >> it happens create a second polygon on the fly and assign subsequent >> vertices to it until it crosses back again. >> >> Would you be in favour of such a feature ever being introduced in >> Mapnik? > > If clipping the data ahead of time fixes your problem, that seems like the > best recommended route. If not, then let's discuss more. Just clipping the shifted data would leave me without the portions that are shifted out to one side. But I found a way now to do it with OGR tools alone, generating *two* shapefiles, one with the original shifted by angle, the other by angle-360 (for positive angles), merging both and clipping the result. So I guess for me it's not worth the effort right now diving into the code. Best, Flo _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

