[SCM] PostGIS branch master updated. 3.5.0alpha2-28-g5144b6598
git at osgeo.org
git at osgeo.org
Thu Aug 22 09:10:52 PDT 2024
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".
The branch, master has been updated
via 5144b6598d7c4dbf9812bffca42316b2fef65290 (commit)
via 9e564dd008f20d3e99874d84ce8f1340df90bfeb (commit)
from e3529a98caef2a0018fea994feff2c15e270ea1b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5144b6598d7c4dbf9812bffca42316b2fef65290
Merge: e3529a98c 9e564dd00
Author: pramsey <pramsey at cleverelephant.ca>
Date: Thu Aug 22 09:10:50 2024 -0700
Merge pull request 'Add BBOX and CRS options example for ST_AsGeoJSON function #5739' (!211) from danf/postgis:st_asgeojson_bbox_crs_example into master
Reviewed-on: https://git.osgeo.org/gitea/postgis/postgis/pulls/211
commit 9e564dd008f20d3e99874d84ce8f1340df90bfeb
Author: Dan <dan.faudemer at gmail.com>
Date: Mon Aug 19 16:48:33 2024 +0200
Add BBOX and CRS options example for ST_AsGeoJSON function #5739
diff --git a/doc/reference_output.xml b/doc/reference_output.xml
index f04988142..9317c3af7 100644
--- a/doc/reference_output.xml
+++ b/doc/reference_output.xml
@@ -767,6 +767,11 @@ FROM (VALUES (1, 'one', 'POINT(1 1)'::geometry)) AS t(id, name, geom);</programl
<para>3D geometries are supported:</para>
<programlisting>SELECT ST_AsGeoJSON('LINESTRING(1 2 3, 4 5 6)');</programlisting>
<screen>{"type":"LineString","coordinates":[[1,2,3],[4,5,6]]}</screen>
+<para>Options argument can be used to add BBOX and CRS in GeoJSON output:</para>
+<programlisting> SELECT ST_AsGeoJSON(ST_SetSRID('POINT(1 1)'::geometry, 4326), 9, 4|1);</programlisting>
+<screen>
+ {"type":"Point","crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG::4326"}},"bbox":[1.000000000,1.000000000,1.000000000,1.000000000],"coordinates":[1,1]}
+</screen>
</refsection>
<refsection>
<title>See Also</title>
-----------------------------------------------------------------------
Summary of changes:
doc/reference_output.xml | 5 +++++
1 file changed, 5 insertions(+)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list