ViktorGo86 commented on PR #28740:
URL: https://github.com/apache/flink/pull/28740#issuecomment-7124968699

   > > Thanks for adding `GEOGRAPHY` support.
   > > Do you also plan to add a native `GEOMETRY` type in the future? It would 
be useful to have both, especially for planar/projected data and 
interoperability with systems like Iceberg and PostGIS.
   > 
   > Thanks, this is a useful distinction.
   > 
   > This PR intentionally introduces `GEOGRAPHY` only. Its contract is 
geographic coordinates in OGC:CRS84, represented as 2D ISO WKB; it does not 
provide planar/projected semantics or preserve arbitrary CRS/SRID metadata. 
Although the WKB payload uses geometry primitives such as `POINT`, 
`LINESTRING`, and `POLYGON`, that does not make it a native `GEOMETRY` type.
   > 
   > We do not currently have a concrete plan to add a native `GEOMETRY` type. 
It would raise separate design questions around CRS/SRID handling, conversion 
rules, and function semantics, and would need its own community discussion and 
proposal if pursued.
   
   Thanks for clarifying, David. Keeping this PR focused on GEOGRAPHY makes 
sense. I worked on native GEO support in StarRocks, and our 4.2 branch can 
already read both GEOGRAPHY and GEOMETRY from Parquet-backed Iceberg v3 tables. 
[StarRocks 4.2 type 
mapping](https://github.com/StarRocks/starrocks/blob/branch-4.2/docs/en/data_source/catalog/iceberg/iceberg.md#iceberg-type-mapping)
   
   I saw the Flink and BigQuery readback results in this thread. If there’s a 
small Iceberg snapshot you can share, or a script to recreate one, I’d be happy 
to read it with StarRocks and compare results.
   
   For a separate GEOMETRY discussion on the Flink dev list, I’d suggest 
starting with one projected point in EPSG:3857. Can it make a round trip 
through Flink and Iceberg with its coordinates and CRS intact?


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