Actually what we need is some hierarchical base for relationship between countries, cities, regions, etc. Main goal of the application will be collecting data from many sources about specific cities, regions, countries and so on, and store it in database. Let's say we will have city Rome, we collect some info about this city into database from couple sources. And we need to know that Rome is in province Rome, sub-region Lazio in region Lazio, country Italy. So system should be flexible to allow create such relation from real world.<div>
<br></div><div>That's why I would choose two tables:</div><div><br></div><div>1) `polygons` - which can store countries, regions, sub-regions, provinces etc.</div><div>2) `points` - which can store cities and POIs</div>
<div><br></div><div>Thanks.</div><div><br></div><div>Michal K. <br><br><div class="gmail_quote">On Mon, Apr 9, 2012 at 6:53 PM, Andrea Peri <span dir="ltr"><<a href="mailto:aperi2007@gmail.com">aperi2007@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><pre>>Thank's for your reply.
>
>I think we'll go same ways as you describe - use two main tables `polygons`
>and `points` and couple supporting tables which handle relationships
>and additional content.
>
>Michal K.</pre><br>Hi,<br>If you plan to use two tables of kind polygons and point, and don't plan to use an explicit line table, <br>I guess you should use the new postgis topology feature.<br><br>You should create a topology (node,edge,face) and apply a TopoGeometry over that topology.<br>

Where the topogeometry should be the "polygons" you will use in your main table. <br><br>This approach is really important because otherwise the polygons you will use in the main table don't be really topology to each-other.<br>

<br>Please don't understimate the important of postgis topology.<br>Expecially when you plan to describe temathics informations like city boundaries, countries and so on.<br>The simple relationships between polygons is not sufficient to grant a really exact separation between two countries :)<br>

When we don't use topology we found often some little area where there is two or more cities :)<span class="HOEnZb"><font color="#888888"><br><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>
-----------------<br><br>
</font></span><br>_______________________________________________<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>
<br></blockquote></div><br></div>