[postgis-users] error in online PostGIS docs?

Olivier Courtin olivier.courtin at oslandia.com
Tue Jul 27 11:14:23 PDT 2010

On Jul 27, 2010, at 7:33 PM, Rick wrote:

Hi Rick,

> This refers to the documentation whose main page is : http://postgis.refractions.net/docs/index.html
> I've been experimenting with getting geometry in different formats.
> On this page: http://postgis.refractions.net/docs/ST_AsGeoJSON.html  
> it is possible to get a dictionary like object that includes an  
> object bounding box.  I like this.
> However I am not getting the results set out in the doc.  Unless I'm  
> missing something, either the function is wrong, or the docs are  
> wrong.
> We are discussing the fourth parameter in the call ST_AsGeoJSON()   
> The documentation says that if 1 is set, a bbox is returned, it is  
> not.  a bbox is included if 2 is set.  Other option values appear to  
> have no effect.  (see docs)

The first ST_GeoJSON implementation came with 1.3.4

The four parameter option slightly changes since 1.4.0 (with bbox set  
to 1)
as you mention if.
Do you refer to the right doc version ?

SELECT postgis_full_version();
To get PosTGIS version...

ST_AsGeoJSON doc from 1.3 branch

ST_AsGeoJSON doc from 1.4 branch


More information about the postgis-users mailing list