[postgis-tickets] [PostGIS] #2870: Binary insert into geography column results in value being inserted as geometry.
PostGIS
trac at osgeo.org
Thu Aug 14 15:00:12 PDT 2014
#2870: Binary insert into geography column results in value being inserted as
geometry.
------------------------+---------------------------------------------------
Reporter: andrewdone | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.1.4
Component: postgis | Version: 2.1.x
Keywords: |
------------------------+---------------------------------------------------
Comment(by pramsey):
It's actually an error in the function bindings. The bytea=>geography path
is bound into the same function as the bytea=>geometry path. Try this:
{{{
CREATE OR REPLACE FUNCTION geography(bytea)
RETURNS geography
AS '$libdir/postgis-2.1','geography_from_binary'
LANGUAGE 'c' IMMUTABLE STRICT;
}}}
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2870#comment:10>
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