[MDEV-4759] OPENGIS - artificial (not oficial) support to circle Created: 2013-07-05 Updated: 2014-03-03 Resolved: 2014-03-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | roberto spadim | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | opengis | ||
| Description |
|
opengis is very nice, but we don't have a CIRCLE (ok it's mercator and blablabla), maybe we could use a circle->polygon converter.... example:
could return a circle with radius 10, center point(20,30) we will do something like... (cos and sin are degree not radian)
with this we create a poligon in each circle point this function could return something like:
i didn't read the mariadb gis source yet, but i think it's a easy function
|
| Comments |
| Comment by roberto spadim [ 2013-07-05 ] |
|
Example: at spatial.cc (mariadb 10.0.3 - line 181) Geometry *Geometry::create_from_wkt(Geometry_buffer *buffer, if (trs->get_next_word(&name)) { trs->set_error_msg("Geometry name expected"); return NULL; } if (!(ci= find_class(name.str, name.length)) || |
| Comment by Alexey Botchkov [ 2014-03-03 ] |
|
ST_BUFFER(POINT(10,20), 30) returns just the polygon-from-circle centered in the POINT. |