prantogg opened a new pull request, #469:
URL: https://github.com/apache/sedona-db/pull/469

   Implements the `ST_AsGeoJSON` function for converting geometry and geography 
objects to GeoJSON format with support for multiple output types (Simple, 
Feature, FeatureCollection).
   
   Simple GeoJSON geometry:
   ```
   SELECT ST_AsGeoJSON(ST_Point(1.0, 2.0));
   -- {"type":"Point","coordinates":[1.0,2.0]}
   ```
   
   As Feature:
   ```
   SELECT ST_AsGeoJSON(ST_Point(1.0, 2.0), 'Feature');
   -- 
{"type":"Feature","geometry":{"type":"Point","coordinates":[1.0,2.0]},"properties":null}
   ```
   
   As FeatureCollection
   ```
   SELECT ST_AsGeoJSON(ST_Point(1.0, 2.0), 'FeatureCollection');
   -- {"type":"FeatureCollection","features":[...]}
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to