jiayuasu commented on code in PR #2956:
URL: https://github.com/apache/sedona/pull/2956#discussion_r3254206878
##########
python/sedona/spark/raster/raster_serde.py:
##########
@@ -216,3 +253,248 @@ def _read_utf8_string_map(bio: BytesIO) ->
Optional[Dict[str, str]]:
value = _read_utf8_string(bio)
params[key] = value
return params
+
+
+def serialize(raster: "InDbSedonaRaster") -> Optional[bytes]:
+ """Serialize an InDbSedonaRaster to the Sedona binary format.
+
+ The output bytes are compatible with the JVM's Serde.deserialize().
+ Only InDbSedonaRaster is supported. OutDb and LazyLoad rasters
Review Comment:
Please remove references to outdb since they don't exist here
--
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]