<div dir="ltr">Hi Phil<div><br></div><div style>Your bet is correct. Any tips on convert the coordinate? It's not just a point when you draw with openlayer, the shape can be line and polygon.</div><div style><br></div>
<div style><br></div><div style>Regards,</div><div style>Hua Jie</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 11, 2013 at 5:10 AM, Phil Scadden <span dir="ltr"><<a href="mailto:p.scadden@gns.cri.nz" target="_blank">p.scadden@gns.cri.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I want to do this because when the user draw something outside this range, the feature can not save to geoserver.<br>
</blockquote></div>
Hmm, I am not so sure. What it must have to save properly is coordinates that match the coordinate range defined for the base set (which I will bet are the CITE -180:180). However, drawing across the 180 is only possible in OL if you drop cite. Your code on the client then ("featureadded" event??), should convert the feature coordinates to -180:180 and then save it geoserver. Maintaining topology of polygons is probably a mission though I still suspect it is possible with client-end programming. You may need to insert points on the 180 line before saving a polygon. Its a case of try and see.<br>

<br>
Notice: This email and any attachments are confidential.<br>
If received in error please destroy and immediately notify us.<br>
Do not copy or disclose the contents.<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/openlayers-<u></u>users</a><br>
</blockquote></div><br></div>