<div dir="ltr">Hey,<div>you seem to mix 2 different things.</div><div><br></div><div>_You can do what you want using the regular postgis function</div><div>You would write a trigger on your polygon column, os that on update, you also update other touching polygons (you would need to do polygon breanking into lines, which may become difficult if you have inner ring).</div>
<div>Sorry to say that this may not be a good idea to use this as a topological model (a lot of data duplication, non standart topology model)</div><div><br></div><div>_You can do what you want (with a tweak) with postgis topology</div>
<div>In postgis topology you have shared lines and points, then polygons are defined upon those (like : edge 23 then edge 43 then edge 46 form the polygon 1)</div><div>So out of the box, when modifying a shared line, all surfaces are implicitly modified.</div>
<div>The small problem you may have is that the surfaces are computed each time you need it, which is slower than just store it like a polygon.</div><div><br></div><div>If you need some precision about the data model behind postgis topology : <a href="http://trac.osgeo.org/postgis/wiki/PostgisTopology_Data_Model">http://trac.osgeo.org/postgis/wiki/PostgisTopology_Data_Model</a></div>
<div><br></div><div>Cheers,</div><div>Rémi-C<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/3 Jan Hartmann <span dir="ltr"><<a href="mailto:j.l.h.hartmann@uva.nl" target="_blank">j.l.h.hartmann@uva.nl</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<font face="Times New Roman, Times, serif">Hi all,<br>
<br>
I have written a simple OpenLayers-application to edit a PostGIS
polygon layer: read one polygon from the server as GeoJSON, adapt
it interactively, and write it back again via GeoJSON. Points are
only moved, not created or deleted.<br>
<br>
The polygon layer is topologically correct: all adjoining polygons
share the same points. With QGIS I can choose "topological
editing", to automatically move corresponding points from
adjoining polygons. With the GeoJSON application that is not
possible: whenever I move a boundary point of one polygon, the
corresponding points on adjoining polygons remain where they are.<br>
<br>
Is it possible with the new topology methods in PostGIS to write
the following update procedure: whenever a changed polygon is
written back into the database, all corresponding points on
neighbouring polygons will be looked up and changed as well? I
guess I would need some sort of pointer for all boundary points to
all other boundary points that share the same location.<span class="HOEnZb"><font color="#888888"><br>
<br>
Jan <br>
</font></span></font>
</div>
<br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br></blockquote></div><br></div>