[PostGIS] #5739: ST_AsGeoJSON docs should have an example of CRS / bbox

PostGIS trac at osgeo.org
Thu Jun 6 12:42:21 PDT 2024


#5739: ST_AsGeoJSON docs should have an example of CRS / bbox
----------------------------+---------------------------
  Reporter:  robe           |      Owner:  robe
      Type:  defect         |     Status:  new
  Priority:  medium         |  Milestone:  PostGIS 3.5.0
 Component:  documentation  |    Version:  3.4.x
Resolution:                 |   Keywords:
----------------------------+---------------------------
Description changed by robe:

Old description:

> Mentioned in irc/matrix, and sounds like a good idea to me
>
> ```
> Hi, I'm trying to understand the GeoJSON implementation in Postgis.
> Specifically, the
> [documentation](https://postgis.net/docs/ST_AsGeoJSON.html) mentions that
> the `options` parameter allows you to include bbox and CRS in the output.
> However, the [spec](https://www.rfc-editor.org/rfc/rfc7946#section-3)
> only makes mention of the `bbox` field. This
> 12:54 PM
> leaves me somewhat unclear on the field name used for CRS information
> (based on documentation alone), especially since the postgis
> documentation page does not include any examples where either bbox or crs
> is included. Do anyone know how these fields are encoded in the GeoJSON
> produced by `ST_AsGeoJson`?
> ```

New description:

 Mentioned in irc/matrix, and sounds like a good idea to me



 ----
 Hi, I'm trying to understand the GeoJSON implementation in Postgis.
 Specifically, the
 [documentation](https://postgis.net/docs/ST_AsGeoJSON.html) mentions that
 the `options` parameter allows you to include bbox and CRS in the output.
 However, the [spec](https://www.rfc-editor.org/rfc/rfc7946#section-3) only
 makes mention of the `bbox` field. This
 12:54 PM
 leaves me somewhat unclear on the field name used for CRS information
 (based on documentation alone), especially since the postgis documentation
 page does not include any examples where either bbox or crs is included.
 Do anyone know how these fields are encoded in the GeoJSON produced by
 `ST_AsGeoJson`?

--
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5739#comment:1>
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