Thank you for reply.<div><br></div><div>But I'm afraid that such solution won't fit our system, because for example there can be situation when POI belong to region. And also I think it can cause some problems with ORM.</div>
<div><br></div><div>Michal K.<br><br><div class="gmail_quote">On Mon, Apr 9, 2012 at 2:22 PM, Francois Hugues <span dir="ltr"><<a href="mailto:hugues.francois@irstea.fr">hugues.francois@irstea.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think it could be better to have a table for each kind of object because they will have different attributes (for an example, in a matter of scale, a POI belong to a city, a city belong to a province which is part of a sub_region which is included into a state and the continent is composed of several states).<br>

<br>
Hugues<br>
<br>
-----Message d'origine-----<br>
De : <a href="mailto:postgis-users-bounces@postgis.refractions.net">postgis-users-bounces@postgis.refractions.net</a> [mailto:<a href="mailto:postgis-users-bounces@postgis.refractions.net">postgis-users-bounces@postgis.refractions.net</a>] De la part de mkubenka<br>

Envoyé : lundi 9 avril 2012 13:31<br>
À : <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
Objet : [postgis-users] How to design a database for continents, countries, regions, cities and POIs?<br>
<div class="HOEnZb"><div class="h5"><br>
I'm brand new to GIS programming and I am designing a GIS application. Target<br>
is to create system with continents, countries, regions (including states,<br>
sub-regions, provinces), cities and places in cities. Each of this elements<br>
will contain some text information and related stuff. As database we are<br>
going to use PostgreSQL with PostGIS.<br>
<br>
My question is how to design database for this system? I was thinking of 2<br>
tables polygons and points, but I'm not sure if it's good way of thinking.<br>
<br>
--<br>
View this message in context: <a href="http://postgis.17.n6.nabble.com/How-to-design-a-database-for-continents-countries-regions-cities-and-POIs-tp4715669p4715669.html" target="_blank">http://postgis.17.n6.nabble.com/How-to-design-a-database-for-continents-countries-regions-cities-and-POIs-tp4715669p4715669.html</a><br>

Sent from the PostGIS - User mailing list archive at Nabble.com.<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>
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></div>