ck,

Thanks for the links.  Good to know where the rule of 179 comes from.

Looks like the code just needs to use absolute values.  See attached code to 
fix the problem.  Can you check this in for me?

Thanks,

Nathan 


-----Original Message-----
From: ck [mailto:ch.ko...@googlemail.com]
Sent: Wed 4/14/2010 5:06 PM
To: dev@abdera.apache.org
Subject: Re: Abdera geo extension and international dateline
 
Hi Nathan,

I googled a bit around and found the following in the official GeoRSS
Wiki: http://www.georss.org/gml#Polygon
http://www.georss.org/Encodings#Geometry
At first view it seems the current implementation is a bit too simple
regarding the edge cases. Would like to have a look into the
specification draft/document, but didn't find it.

regards

ck




2010/4/14 Reese, Nathan <nre...@integrity-apps.com>:
> I am using the abdera geo extension to geo-tag Atom feeds.  The exception
> "RuntimeException: Values are greater than 179 degrees" is thrown when
> generating a valid polygon that crosses the international dateline (see
> attached junit).
>
> The exception is getting thrown by the method
> org.apache.abdera.ext.geo.Multiple verify179Rule.  I am not sure what this
> method is attempting to accomplish or why the same value is used to verify
> both latitude and longitude values.  Any insight would be greatly
> beneficial.
>
> Nathan
>
>


Attachment: Multiple.java
Description: Multiple.java

Reply via email to