abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reese, Nathan" <nre...@integrity-apps.com>
Subject RE: Abdera geo extension and international dateline
Date Wed, 14 Apr 2010 23:13:11 GMT
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.ko123@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 <nreese@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
>
>



Mime
View raw message