Hi <font color="#888888">Luís<br><font color="#330033"><br>I have a table "mytable" with 2 columns: "id" and "mygeo". <br>"mygeo" with geometry type is POINT<br><br>I used "</font></font>GeometryType" function to determine what geometry type of column "mygeo":<br>
   - SELECT GeometryType(mygeo) FROM mytable;<br>If "mytable" table has no data that the result of above query is NULL (<b>I can't know geometry type of column "mygeo"</b> )<br>If "mytable" table has data that the result is "POINT"<br>
<br>how to know a geometry type of "mytable" column if it has no data? Using "GeometryType" function or anothers functions to chek it.<br><font color="#888888"><font color="#330033"><br>Cheers<br></font></font><br>
<div class="gmail_quote">2010/7/2 Luís de Sousa <span dir="ltr"><<a href="mailto:luis.a.de.sousa@gmail.com">luis.a.de.sousa@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi nguyen,<br>
<br>
Though the select Nicolas sent will inform you of the type recorded in<br>
the PostGis tables, this may not be coincident with the type of your<br>
table's geometry. The exact type is the one checked by the<br>
enforce_geotype constraint.<br>
<font color="#888888"><br>
Luís<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Liem Nguyen<br>Developer<br>Axon Active Corp.<br>----------------------------------------------------------------------------<br>Direct Line      : +84 38 948 4645<br>
Fax                  : +84 38 811 3489<br>Mobile Phone  : +84 168 994 8897<br>Skype ID         : liemnguyendl2204<br>Email               : <a href="mailto:liem.nguyen@axonactive.net">liem.nguyen@axonactive.net</a> / <a href="mailto:liemnguyendl@gmail.com">liemnguyendl@gmail.com</a><br>
Web Site          : <a href="http://axonactive.vn">http://axonactive.vn</a><br>Address           : 87 Thang Long Street,Gate 2 Ward 4,<br>                          Tan Binh District, HCM city, Vietnam.<br><br>