ngaur9 commented on code in PR #608:
URL: https://github.com/apache/incubator-sedona/pull/608#discussion_r851817126
##########
docs/archive/api/sql/GeoSparkSQL-Constructor.md:
##########
@@ -155,6 +155,24 @@ FROM polygontable
SELECT
ST_PolygonFromText('-74.0428197,40.6867969,-74.0421975,40.6921336,-74.0508020,40.6912794,-74.0428197,40.6867969',
',') AS polygonshape
```
+## ST_LineFromText
Review Comment:
I have moved it below ST_GeomFromWKT. Let me know if it has to be moved to
some other place or file.
##########
sql/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/Constructors.scala:
##########
@@ -94,6 +94,37 @@ case class ST_PolygonFromText(inputExpressions:
Seq[Expression])
}
}
+/**
+ * Return a line from a string. The string must be plain string and each
coordinate must be separated by a delimiter.
+ *
+ * @param inputExpressions
+ */
+case class ST_LineFromText(inputExpressions: Seq[Expression])
Review Comment:
I referred ST_GeomFromWKT function call and added a LINE filter. Let me
know if it needs modification or refactoring.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]