Open ariesdevil opened 4 months ago
Currently only geos::Geometry<'_> impl all funcs in GeozeroGeometry, other types like Ewkb will use the default impl in trait definition.
geos::Geometry<'_>
GeozeroGeometry
Ewkb
The default impls are as follows so we cannot get dims and srid for types like Ewkb:
dims
srid
fn dims(&self) -> CoordDimensions { CoordDimensions::xy() } /// SRID of geometry fn srid(&self) -> Option<i32> { None }
And I need parse srid manually when do transform: https://github.com/datafuselabs/databend/pull/14615/files#diff-9be506d723a6d34b70933330d0e09aac81d43cb005f941978b94acad13cdb622R154
Currently only
geos::Geometry<'_>
impl all funcs inGeozeroGeometry
, other types likeEwkb
will use the default impl in trait definition.The default impls are as follows so we cannot get
dims
andsrid
for types likeEwkb
: