[OpenLayers-Users] [Geoserver-users] Outside of (-180, 180) error during saving Vector feature

Phil Scadden p.scadden at gns.cri.nz
Thu Feb 28 12:04:58 PST 2013


On 28/02/2013 4:31 p.m., ??? wrote:
> How to map them?

I would presume that you are creating the vectors in OL. However, it 
also appears that the process is creating longitudes greater than 180. 
Before the save operation, you should iterate over the coordinates to 
save converting these into the range -180:180
(ie if (lon>180) lon = lon - 360; )

If you are unfortunate enough to be dealing with vectors that cross the 
180, then you may expect some grief depending on your backend system. 
Most systems are conceived on a flat earth with the 180 line 
conveniently far from most developers. Support for the 180 line can be 
an ugly hack if supported at all.

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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130301/0a932c76/attachment.html>


More information about the Users mailing list