On Tue, Nov 22, 2011 at 11:04 AM, Evan Martin
<geoserver@anonymised.com> wrote:
Thanks, Andrea. So it sounds like there is currently no (built-in) way to
visualise my polygon properly. Perhaps a setting could be added to GeoServer
that allows it to work both ways: the "obvious to the code" way (current)
and the "obvious to the user" way (shortest)?
Ideally, I think it should go the short way by default - surely that's what
most people would expect? If anyone does want a polygon going all the way
around the globe they could simply add an intermediate point, eg. -180 0,0
0, 180 0. But I'm less concerned about the default behaviour and more about
just being able to visualise this somehow, even if it requires some tweaks.
Definitely not the default, for a few reasons:
- it would break the functionality of people that gave funding to GeoServer to
deal, at least partially, with the dateline, that would be most ungrateful
- it would break upgrades, as the behavior changes without the admin changing
anything in the configuration
The functionality you want could be surely added as optional behavior, I
agree it would be useful for those dong mapping across the dateline.
It is probably not trivial to add though.
The code to be modified is in the GeoTools render module, along with some
modifications to GeoServer to add the flag.... patches welcomed 
Btw, I believe you can get what you want already if you change the coordinates
and make the polygons cross the dateline also in aritmetic terms, that is,
go from 175 to 195. That's how people map polygons crossing the dateline
today, I believe.
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------