[ 
https://issues.apache.org/jira/browse/TINKERPOP-2558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18147000#comment-18147000
 ] 

ASF GitHub Bot commented on TINKERPOP-2558:
-------------------------------------------

GumpacG commented on code in PR #3809:
URL: https://github.com/apache/tinkerpop/pull/3809#discussion_r4622671284


##########
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/language/grammar/GenericLiteralVisitor.java:
##########
@@ -588,6 +599,40 @@ public Object visitBinaryLiteral(final 
GremlinParser.BinaryLiteralContext ctx) {
         }
     }
 
+    /**
+     * Parses a geometry literal into its value, for callers that hold a 
context but no
+     * {@link Traversal}, such as the language translators.
+     */
+    public static Geometry parseGeometry(final 
GremlinParser.GeometryLiteralContext ctx) {
+        return (Geometry) LITERAL_ONLY_VISITOR.visitGeometryLiteral(ctx);
+    }

Review Comment:
   Removed, and the translators now use a literalVisitor held by 
TranslateVisitor.





> GEO Spatial APIs
> ----------------
>
>                 Key: TINKERPOP-2558
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2558
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: process
>    Affects Versions: 3.5.0
>            Reporter: Jitesh
>            Priority: Major
>
> Provide support for Geo based APIs (predicates, objects, etc)
>  
>  



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to