<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
W dniu 2012-04-11 21:36, Micha Silver pisze:
<blockquote cite="mid:4F85DD3D.7060102@arava.co.il" type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<style>body p { margin-bottom: 0cm; margin-top: 0pt; } </style> On
04/11/2012 10:15 PM, Piotr Pachół wrote:
<blockquote cite="mid:4F85D857.1060008@gmail.com" type="cite">Hello,
<br>
I have table in PosGIS, which has 2 geometries: geometry(Point)
and geometry(MultiPolygon). <br>
Two geometries is because each object/record of table has 2
representations: as point and as polygon. <br>
In Qgis this table is displayed as two layers: point layer and
polygon layer. <br>
When I create new object I have problem, because I can't
add/edit at the same time two geometries in one record of table.
<br>
When I add one object in point layer and one object in polygon
layer I have 2 records in PostGIS table - I would like to have
one record. <br>
<br>
</blockquote>
<br>
I can imagine a trigger that would update the point geometry with
a new polygon's centroid after each insert of a polygon. Is that
what you expect? the point geometry = polygon centroid?<br>
<br>
</blockquote>
No, it is not what I expect. I mean that one object can have more
then one representation. It can have in the same time polygon and
and point geometry (not polygon centroid) but also you can imagine
one object with two polygon geometries: one with exact coordinates
(topographic localization) and the second one distorted
(cartographic generalization).<br>
<blockquote cite="mid:4F85DD3D.7060102@arava.co.il" type="cite">
However I can't see what you expect to happen when you add a new
point. What polygon are you expecting to be created in the polygon
geometry column?<br>
<br>
</blockquote>
I expect to add myself in Qgis both geometries and I would like that
these geometries will be saved in one record of PostGIS table. <br>
<blockquote cite="mid:4F85DD3D.7060102@arava.co.il" type="cite"> <br>
<blockquote cite="mid:4F85D857.1060008@gmail.com" type="cite">Could
you help me ? <br>
Or may be it would be possible to add new option/icon in edition
toolbox ? <br>
(Icon should be active when there is more then one geometry in
PostGIS table <br>
and should make possible to add second, third... geometry
editing just inserted record with it's first geometry). <br>
<br>
Regards, <br>
Piotr <br>
_______________________________________________ <br>
Qgis-user mailing list <br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>
<br>
<br>
This mail was received via Mail-SeCure System. <br>
<br>
<br>
</blockquote>
<p><br>
</p>
<br>
<pre class="moz-signature" cols="72">--
Micha Silver
GIS Consultant, Arava Development Co.
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.surfaces.co.il">http://www.surfaces.co.il</a></pre>
</blockquote>
<br>
</body>
</html>