[postgis-tickets] [PostGIS] #3006: Numeric overflow when executing AddRasterConstraints
PostGIS
trac at osgeo.org
Mon Dec 1 09:47:53 PST 2014
#3006: Numeric overflow when executing AddRasterConstraints
--------------------+-------------------------------------------------------
Reporter: rtorre | Owner: dustymugs
Type: defect | Status: new
Priority: high | Milestone: PostGIS 2.1.5
Component: raster | Version: 2.1.x
Keywords: |
--------------------+-------------------------------------------------------
Comment(by robe):
rtorre,
I'll try to come with a better scale precision to use. The reason swe
don't use round is since the raster values are stored as numeric, round
doesn;t work.
So for example:
{{{
SELECT round( (1252219.04682188555)::double precision,10);
}}}
would give you an error of:
ERROR: function round(double precision, integer) does not exist
So safest to just keep it as numeric cast and increase the casting scale
and precision.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/3006#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list