How to select coordinate from mysql database -


i can select column of type 'point' using

select astext(column) mytable; 

it returns:

'point(1.2, 3.4)' 

but can select as

'1.2, 3.4' 

? can done in backend (of course) can mysql convert me?

there special functions st_x, st_y, e.g.:

select   concat(st_x(point_column), ', ', st_y(point_column))   points_table 

Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -