MySQL Forums
Forum List  »  GIS

Re: How to get the SRID of a geometry column
Posted by: William Choy
Date: January 07, 2010 01:06AM

For Drupal, I like to put the Authors UID as the SRID value.

create table geom(g point) engine=myisam;
insert into geom (g) values (pointfromtext('point(1 1)', 101));
insert into geom (g) values (pointfromtext('point(1 2)', 102));
insert into geom (g) values (pointfromtext('point(2 2)', 202));
insert into geom (g) values (pointfromtext('point(10 1)', 101));
insert into geom (g) values (pointfromtext('point(10 2)', 102));
insert into geom (g) values (pointfromtext('point(20 2)', 202));
select astext(g), SRID(g) from geom;
select astext(g), SRID(g) from geom WHERE SRID(g) = 102;

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: How to get the SRID of a geometry column
9968
January 07, 2010 01:06AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.