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

   `EPSG:4326` has  a unique CRS implementation that accepts an EPSG and OGC 
code.  This was not working with the auth code's `srid()` function. 
   
   Current:
   ```
   > SELECT ST_SRID(ST_SetSrid(ST_GeomFromText('POINT (100 100)'), 4326));
   Execution error: CRS has no SRID
   ```
   
   After fix:
   ```
   > SELECT ST_SRID(ST_SetSrid(ST_GeomFromText('POINT (100 100)'), 4326));
   ┌──────────────────────────────────────────────────────────────────────────┐
   │ st_srid(st_setsrid(st_geomfromwkt(Utf8("POINT (100 100)")),Int64(4326))) │
   │                                  uint32                                  │
   ╞══════════════════════════════════════════════════════════════════════════╡
   │                                                                     4326 │
   └──────────────────────────────────────────────────────────────────────────┘
   ```
   
   # Testing
   unit test + query validation


-- 
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