You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MySQL stores geometry with a 4 byte SRID prefix before the WKB (doc). I guess the format is different than PostGIS's EWKB though, as parsing the whole field doesn't produce valid results. Skipping the first for bytes works though, like this:
produces this error: Uncaught Error: first argument must be a string or Buffer. According to Node, subarray() just creates a new buffer pointing to a subset of the same data. Would be nice to not have to duplicate the data in order to parse it. Fairly minor, I admit.
The text was updated successfully, but these errors were encountered:
MySQL stores geometry with a 4 byte SRID prefix before the WKB (doc). I guess the format is different than PostGIS's EWKB though, as parsing the whole field doesn't produce valid results. Skipping the first for bytes works though, like this:
but using just the output from
subarray
:produces this error:
Uncaught Error: first argument must be a string or Buffer
. According to Node,subarray()
just creates a new buffer pointing to a subset of the same data. Would be nice to not have to duplicate the data in order to parse it. Fairly minor, I admit.The text was updated successfully, but these errors were encountered: