SELECT polygons.id-contour FROM settlements, polygons, contours, points WHERE type=`Parti` AND settlements.id-boundary=polygons.id-boundary AND polygons.id-contour=contours.id-contour AND contours.id-point=points.id-point ORDER BY polygons.id-contour, point-num GROUP BY name
CREATE TABLE Points (Ptid INT NOT NULL IDENTITY, Xcoord FLOAT NULL, Ycoord FLOAT NULL, PRIMARY KEY (Ptid))
CREATE TABLE Polygons (idPolygons INT NOT NULL IDENTITY, idPoint INTEGER NOT NULL, name VARCHAR(50), pointOrder INTEGER NULL, PRIMARY KEY (idPolygons) FOREIGN KEY (idPoint)
CREATE TABLE Pgs (idPg INT NOT NULL IDENTITY, name varchar(50), PRIMARY KEY (idPg), FOREIGN KEY(idPolygons))