Description Usage Arguments Details Value Examples
Construct a geometry from OGC Well-Known text (WKT) description.
1 | st_geomfromtext(x, crs = sf::NA_crs_)
|
x |
WKT description |
crs |
coordinate reference system |
It can be used as an equivalent to type casting in postgis ('POINT(1 1)'::geometry
)
A geometry (class sfc
)
1 2 | st_geomfromtext('POLYGON((38 16,38 50,65 50,66 16,38 16))')
st_geomfromtext('POINT(-71.064544 42.28787)', crs = 4326)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.