>Using the geodesic measuring algorithm, this also works already.

Not for area.

> Here you could use the sketch handlers after applying my patch, and 
> then split the polygon at the maxExtent bounds (patches for polygon 
> splitting welcome :-) ).

Andreas, the code does work but only after applying your patches. There 
was no way for application to "solve" the problem by splitting geometry 
without them. Also the patch is making an assumption about 179 0, -179 
0. If extent is across dateline, then the joining line you would make 
with say the path handler crosses the dateline, rather than going around 
the world (which is what it used to do).

> You may want to try the SVG2 renderer I am currently working on. There is a 
> chance that it works with geometries that exceed the world bounds (like the 
> ones you get from my patched sketch handlers when drawing over the date line 
> with sciteCompliant set to false). The new renderer development is an ongoing 
> process and can be found in this sandbox: 
> http://svn.openlayers.org/sandbox/ahocevar/renderer-ng
I would also need to put same logic into canvas.js. However, this must 
make assumptions on line directions for 179 0, -179 0 if you are doing 
this at this level. For the moment, I am working with your patches and 
seeing what are the unresolved issues. I had next to no time on this 
over last few days but should be able to get back to it this afternoon.

-- 
Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, 
Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232

Notice: This email and any attachments are confidential. If received in error 
please destroy and immediately notify us. Do not copy or disclose the contents.

_______________________________________________
Dev mailing list
Dev@openlayers.org
http://openlayers.org/mailman/listinfo/dev

Reply via email to