[postgis-devel] GeoJson patch
Mark Cave-Ayland
mark.cave-ayland at siriusit.co.uk
Mon Jul 14 01:42:42 PDT 2008
Paul Ramsey wrote:
> Thanks Olivier, applied as of r2843
>
> P
Hi Olivier,
Which version of PostgreSQL are you testing against? Since
ST_AsGeoJSON() has been included, it always fails the regression tests
under PostgreSQL 8.3 with the following result:
*** geojson_expected 2008-06-29 20:16:17.000000000 +0100
--- /tmp/pgis_reg_6338/test_34_out 2008-07-14 09:40:47.000000000 +0100
***************
*** 7,13 ****
ERROR: function st_asgeojson(numeric, geometry) does not exist
LINE 1: SELECT ST_AsGeoJson(1.0, GeomFromEWKT('SRID=4326;POINT(1 1)'...
^
! HINT: No function matches the given name and argument types. You may
need to add explicit type casts.
ERROR: Only GeoJSON 1 is supported
ERROR: Only GeoJSON 1 is supported
{"type":"Point","crs":{"type":"EPSG","properties":{"code":4326}},"coordinates":[1,1]}
--- 7,13 ----
ERROR: function st_asgeojson(numeric, geometry) does not exist
LINE 1: SELECT ST_AsGeoJson(1.0, GeomFromEWKT('SRID=4326;POINT(1 1)'...
^
! HINT: No function matches the given name and argument types. You
might need to add explicit type casts.
ERROR: Only GeoJSON 1 is supported
ERROR: Only GeoJSON 1 is supported
{"type":"Point","crs":{"type":"EPSG","properties":{"code":4326}},"coordinates":[1,1]}
So in other words, we could really with a workaround for the different
message text.
ATB,
Mark.
--
Mark Cave-Ayland
Sirius Corporation - The Open Source Experts
http://www.siriusit.co.uk
T: +44 870 608 0063
More information about the postgis-devel
mailing list