WFS-T Compatibility with Postgis 2.0

Description

When I saved a feature in a WFS Layer,
Geoserver uses the postgis function 'geomfromtext' instead of 'ST_geomfromtext'. But 'geomfromtext' doesn't exist in Postgis 2.0.

It works after creating these functions in postgres
<blockquote>
CREATE OR REPLACE FUNCTION geomfromtext(_texte text)
RETURNS geometry AS
$BODY$
BEGIN
RETURN st_geomfromtext(_texte);
END;
$BODY$
LANGUAGE plpgsql VOLATILE
COST 1;

CREATE OR REPLACE FUNCTION geomfromtext(_texte text, _srid integer)
RETURNS geometry AS
$BODY$
BEGIN
RETURN st_geomfromtext(_texte, _srid);
END;
$BODY$
LANGUAGE plpgsql VOLATILE
COST 1;</blockquote>

Environment

None

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

None

Affects versions

Components

Priority

Medium
Configure