[OpenLayers-Users] display a border at the end of the world

杨华杰 yhjhoo at gmail.com
Sun Mar 10 18:01:12 PDT 2013


Hi Phil

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.


Regards,
Hua Jie


On Mon, Mar 11, 2013 at 5:10 AM, Phil Scadden <p.scadden at gns.cri.nz> wrote:

>
>  I want to do this because when the user draw something outside this
>> range, the feature can not save to geoserver.
>>
> 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.
>
> 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.
>
> ______________________________**_________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/openlayers-**users<http://lists.osgeo.org/mailman/listinfo/openlayers-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130311/ebb0bb88/attachment.html>


More information about the Users mailing list