-
-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get Geometry data. #414
Comments
I try to change data type.
I got error like,
|
Can you post your types.Geometry struct? First of all, try changing: and see if you can pull the raw data. Next, if you want to automatically convert your map to Geometry object, you need to add gorethink tags in your struct declaration, like so:
When that's done, you should be able to replace |
@iKonrad Thanks~
I add tag like this,
If I use |
You need to specify the right struct for the Location in your Gps struct as well, so gorethink knows how to convert your objects:
|
@iKonrad Sorry, I got error like below,
|
same here |
(。・∀・)ノ゙Hi, I'm using rethinkDB to storage geometry data. But when I want to get data from rethinkdb, I got trouble.
My code:
I got data like below, type was nil,
I change the type of re to
types.Geometry
, error message I got like this,Or, how to use
ToGeoJSON
?Thx~ @dancannon
The text was updated successfully, but these errors were encountered: