Conversation
This was referenced Apr 17, 2022
Owner
Author
|
@asmeikal Thank you for testing #68 (comment) |
Owner
Author
|
This change is included in v0.6.0 https://github.com/paulmach/orb/releases/tag/v0.6.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for encoding and decoding of extended WKB
data.
The API interface looks like, please provide feedback
Inserting geometry into a database
Depending on the database different formats and functions are supported.
PostgreSQL and PostGIS
PostGIS stores geometry as EWKB internally. As a result it can be inserted without
a wrapper function.
MySQL/MariaDB
MySQL and MariaDB
store geometry
data in WKB format with a 4 byte SRID prefix.
Reading geometry from a database query
As stated above, different databases supported different formats and functions.
PostgreSQL and PostGIS
When working with PostGIS the raw format is EWKB so the wrapper function is not necessary
MySQL/MariaDB