Hi,
I have been investigating this and similar problems myself even recently.
The problem, or better limitation, is at the geotools level and due to
the various checks performed on the Area of Definitions of the various
CRS.
Fixing/improving this is not going to be trivial, given also the
amount of code that depends on this part.
Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy
phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928
http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini
-------------------------------------------------------
On Wed, Feb 4, 2009 at 4:02 PM, MrR08040 <MrR08040@anonymised.com> wrote:
Does anyone have any pointers on how to deal with the problem of
GeoServer not able to render polygons straddling the anti-meridian
correctly?
>From what I've been reading this is still a "bug" in GeoServer
(GeoTools?) and that it cannot be fixed easily. I'm surprised this
hasn't been addressed. We're trying to "port" our Swing-based
application using OpenMap to a web-based one using
OpenLayers/GeoServer. OpenMap seems to handle our straddling
anti-meridian polygons just fine...
One solution I've read about is to take the offending polygons and
split them along the anti-meridian, but you'll end up with a line on
the anti-meridian without some fancy SLD action. Does anyone have any
code examples on how to do all this?
Many thanks in advance!
Rob
On Tue, Aug 19, 2008 at 1:07 PM, Andrea Aime <aaime@anonymised.com> wrote:
springrider ha scritto:
Thanks for your replies.
I can not technically reshape my data. In fact from the same geographical
data source, i want to apply different projections (4326, Antartica
projection, pacific centered projection).
I need to find a solution to have my data projected based on a meridian
centered on the pacific.
Anyway, I think, there is a bug too. In fact, all the polygons which are cut
by the antimeridian are the ones not correctly displayed with the color
outside of the envelope because it seems in that configuration that the
polygons are not closed anymore. For Antartica, it is even worst, it's not
appearing anymore.
It is even more visible in that view:
http://www.fao.org/figis/geoserver/wms?bbox=-22041257.773878,-14322638.1338445,22041257.773878,13613811.2422463&styles=&Format=application/openlayers&request=GetMap&version=1.1.1&layers=fifao:ISO3_COUNTRY&width=800&height=362&srs=EPSG:3349
Do i have to add this bug into JIRA for GeoServer of For GeoTools?
Do you have any other suggestions to eade this problem?
At the moment it's not possible to do what you're asking for,
and the fix is definitely not trivial. We'd have to determine
the validity area of the destination projection, notice that
the polygons go beyond that, split them along the discontinuity
line, and render them separately.
Due to a bug in GT2 referencing, we cannot even guess where the
discontinuities are (http://jira.codehaus.org/browse/GEOT-1578).
Martin, any suggestion on how to deal with this case? How
do we figure out when polygon splitting is needed, and where?
Cheers
Andrea
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users