[postgis-devel] Geography Coercion
Sandro Santilli
strk at keybit.net
Wed Nov 14 00:18:26 PST 2012
Sounds good to me but turn the DEBUG into a WARNING or at least NOTICE
so the confusion would be less "mortal" for the occasional person that
doesn't want normalization.
Also, I noticed that ptarray_force_geodetic is making a copy of each
coordinate rather than using the known alignment.
--strk;
On Tue, Nov 13, 2012 at 02:24:37PM -0800, Paul Ramsey wrote:
> I'd like to hear if anyone has objection to the following patch for 2.1:
>
> http://trac.osgeo.org/postgis/ticket/799
>
> Basically when accepting a geography, it forces the coordinates into
> the -180/180 range by wrapping it into the appropriate place on the
> globe. Currently when handed out-of-range values, we error out.
>
> This patch will be "nicer" for most people and mortally confusing for
> the very occasional person who accidentally gets their data normalized
> when an error would have been more instructive (and causing them to
> appropriately fix their data)
>
> I'm in favor of it, I think it'll result is more good things and few bad things.
>
> P.
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel
--
http://www.cartodb.com - Map, analyze and build applications with your data
~~ http://strk.keybit.net
More information about the postgis-devel
mailing list