Closed benjamincoven closed 3 years ago
I forget to add the Janusgraph mapper:
gremlin> mapper = GraphSONMapper.build().version(GraphSONVersion.V3_0).addRegistry(JanusGraphIoRegistry.instance()).crea
te().createMapper()
==>org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper@5d1e0fbb
gremlin> mapper.writeValueAsString(Geoshape.circle(37.97, 23.72, 50))
==>{"@type":"janusgraph:Geoshape","@value":{"geometry":{"@type":"g:Map","@value":["type","Circle","coordinates",{"@type":"g:List","@value":[{"@type":"g:Double","@value":23.72},{"@type":"g:Double","@value":37.97}]},"radius",{"@type":"g:Int32","@value":50},"properties",{"@type":"g:Map","@value":["radius_units","km"]}]}}}
I am trying to know how Janusgraph serialize circle in graphson and when trying to do this in Gremlin console I am getting the following error:
Please include configurations and logs if available.
For confirmed bugs, please report:
Stack Trace (if you have one)