[postgis-users] Display GEOGRAPHY polygons crossing date line

iam_gilbey simonbolivar.uk at gmail.com
Tue Oct 16 02:54:13 PDT 2012


Thanks for that info - it's something else to consider.

Conclusion: Google Earth cannot display GEOGRAPHY data that crosses that
date line, without a hack such as making a table of split geographies.

Does anyone disagree? (please disagree...!)

Thanks, James

On 12 October 2012 17:47, Paul Ramsey-4 [via PostGIS] <
ml-node+s17n5000464h47 at n6.nabble.com> wrote:

> Even if you split the shapes, GEarth renders polygons in a non-normal
> kind of way which you might find unacceptable
>
> http://blog.opengeo.org/2010/08/10/shape-of-a-polygon/
>
> The quick fix is to render them as lines, not polygons. there's no fix
> to get them to fill using great circle edges, GEarth just doesn't work
> that way.
>
> P.
>
> On Fri, Oct 12, 2012 at 4:03 AM, iam_gilbey <[hidden email]<http://user/SendEmail.jtp?type=node&node=5000464&i=0>>
> wrote:
>
> > I have many polygons, including several that cross the date line. They
> are
> > stored as GEOGRAPHY and work perfectly with PostGIS v2.0.1, PostgreSQL
> 9.1.3
> > on windows XP. I can serve this data using Geoserver (v2.1), and view it
> > using open layers, where the polygons crossing the date line render
> > correctly.
> >
> > I cannot however convert the data into KML (viewed in Google Earth 5.1),
> or
> > view it in Quantum GIS (v1.7), without the date line polygons being
> wrapped
> > around the earth.
> >
> > I appreciate that this isn't strictly a postGIS problem, however being
> faced
> > with the stark choice between splitting my data about the date line
> > (inelegant) or not using Google Earth (unacceptable to users), I don't
> know
> > where else to turn!
> >
> > Do you know of:
> > a) a way to get the data to render correctly in Google Earth; or
> > b) where else I should ask?
> >
> > Thanks!
> >
> >
> >
> > --
> > View this message in context:
> http://postgis.17.n6.nabble.com/Display-GEOGRAPHY-polygons-crossing-date-line-tp5000443.html
> > Sent from the PostGIS - User mailing list archive at Nabble.com.
> > _______________________________________________
> > postgis-users mailing list
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=5000464&i=1>
> > http://postgis.refractions.net/mailman/listinfo/postgis-users
> _______________________________________________
> postgis-users mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=5000464&i=2>
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://postgis.17.n6.nabble.com/Display-GEOGRAPHY-polygons-crossing-date-line-tp5000443p5000464.html
>  To unsubscribe from Display GEOGRAPHY polygons crossing date line, click
> here<http://postgis.17.n6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5000443&code=c2ltb25ib2xpdmFyLnVrQGdtYWlsLmNvbXw1MDAwNDQzfC02NjUzNjYwMDI=>
> .
> NAML<http://postgis.17.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://postgis.17.n6.nabble.com/Display-GEOGRAPHY-polygons-crossing-date-line-tp5000443p5000515.html
Sent from the PostGIS - User mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20121016/edd26598/attachment.html>


More information about the postgis-users mailing list