Hi <font color="#888888">Nicolas,<br><br><span style="color: rgb(0, 0, 0);">Thanks for your answer, my question is really </span></font><span style="color: rgb(0, 0, 0);"> not clear</span>... but I would like to determine a geometry type by using a function, not by eyes ;)<br>
<br>Cheers.<br><br><div class="gmail_quote">On Fri, Jul 2, 2010 at 5:52 PM, Nicolas Ribot <span dir="ltr"><<a href="mailto:nicolas.ribot@gmail.com">nicolas.ribot@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 2 July 2010 06:35, nguyen liem <<a href="mailto:liemnguyendl@gmail.com">liemnguyendl@gmail.com</a>> wrote:<br>
> Hi all<br>
><br>
> I used GeometryType(geometry_column) to determine a geometry if it included<br>
> data.<br>
> If with one geometry_column with empty data, how to determine geometry type<br>
> of this ?<br>
><br>
<br>
</div>Hi.<br>
You should look at geometry_columns table, which is supposed to store<br>
metadata information about spatial component of a table.<br>
If it is empty, you should add entries to it (with<br>
probe_geometry_columns I think. look at the doc for more information<br>
on this function).<br>
Or change your tables creation scripts to call addGeometryColumn(...)<br>
to both create the geometric column in your table AND reference this<br>
table in the geometry_columns table.<br>
<font color="#888888"><br>
Nicolas<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>