<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle18
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
/* List Definitions */
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>
</head>
<body bgcolor=white lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>For step 1) The Openlayers example “./examples/select-feature.html”
shows how to select a vector feature. </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>For step 2-3, ,f you are using postgis
server side, there was a thread recently on the PostGIS listserv that involved
some code for splitting a polygon with a line. I think this might work for
you. Since you already have the capability to draw new shapes you may wish to
change steps 2-3 to:</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>2) draw a line</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>and then simply use the function from
PostGIS to split your selected polygon. </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>The thread pertaining to this is here:</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><a
href="http://postgis.refractions.net/pipermail/postgis-users/2008-May/019892.html">http://postgis.refractions.net/pipermail/postgis-users/2008-May/019892.html</a>
</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Robert W. Burgholzer</span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Surface Water Modeler</span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Office of Water Supply and Planning</span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Virginia</span></font><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'> </span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>Department</span></font><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> of
Environmental Quality</span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'><a href="mailto:rwburgholzer@deq.virginia.gov">rwburgholzer@deq.virginia.gov</a></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>804-698-4405</span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Open Source Modeling Tools:</span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial'><a href="http://sourceforge.net/projects/npsource/">http://sourceforge.net/projects/npsource/</a></span></font></p>
</div>
<p class=MsoNormal style='margin-left:.5in'><font size=2 color=black
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:windowtext'>-----Original
Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> dev-bounces@openlayers.org
[mailto:dev-bounces@openlayers.org] <b><span style='font-weight:bold'>On Behalf
Of </span></b>Dipl. Inf. Carsten Eider<br>
<b><span style='font-weight:bold'>Sent:</span></b> </span></font><font size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'>Friday, June 13, 2008</span></font><font size=2 color=black
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:windowtext'>
</span></font><font size=2 color=black face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;color:windowtext'>4:25 AM</span></font><font size=2
color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'><br>
<b><span style='font-weight:bold'>To:</span></b> users@openlayers.org;
dev@openlayers.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [OpenLayers-Dev] OL-Based
GeoEditor</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'>Hi folks,<br>
<br>
i am working on a small geo-editor for an agricultural project in
rhine-palatinat/germany, visit <a href="http://www.agroconnect.de">http://www.agroconnect.de</a>
for more information.<br>
Upto now my editor has the following features:</span></font></p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in'><font size=2
color=black face=Symbol><span style='font-size:10.0pt;font-family:Symbol'>·<font
size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>
</span></font></span></font>new polygon, plain OL</p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in'><font size=2
color=black face=Symbol><span style='font-size:10.0pt;font-family:Symbol'>·<font
size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>
</span></font></span></font>edit polgon, plain OL</p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in'><font size=2
color=black face=Symbol><span style='font-size:10.0pt;font-family:Symbol'>·<font
size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>
</span></font></span></font>delete polygon, plain OL</p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in'><font size=2
color=black face=Symbol><span style='font-size:10.0pt;font-family:Symbol'>·<font
size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>
</span></font></span></font>union polygon, OL with a javaserver in the backend</p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'>Coming feaures:</span></font></p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in'><font size=2
color=black face=Symbol><span style='font-size:10.0pt;font-family:Symbol'>·<font
size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>
</span></font></span></font>split polygon into 2 elements, OL with server
backend</p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in'><font size=2
color=black face=Symbol><span style='font-size:10.0pt;font-family:Symbol'>·<font
size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>
</span></font></span></font>group polygons</p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'>At the moment i am
hanging a bit with the split-feature. <br>
My idea is</span></font></p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt'>1.<font
size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>
</span></font></span></font>select polygon</p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt'>2.<font
size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>
</span></font></span></font>select first point/vertix as starting point</p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt'>3.<font
size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>
</span></font></span></font>select second point as ending point</p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt'>4.<font
size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>
</span></font></span></font>do split</p>
<p class=MsoNormal style='margin-left:1.0in;text-indent:-.25in'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt'>5.<font
size=1 face="Times New Roman"><span style='font:7.0pt "Times New Roman"'>
</span></font></span></font>remove polygon and add the new ones</p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt'>Step 4 will be done on
serverside,but could also be done on clientside.<br>
<br>
Any ideas how to realize steps 1-3. Should i use several controls (Select and
Modify) or<br>
should i subclass Control.ModifyFeature ?<br>
<br>
Any hints will be appreciated.<br>
<br>
<br>
</span></font></p>
<pre style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>-- </span></font></pre><pre style='margin-left:.5in'><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Mit freundlichen Grüßen / Yours faithfully</span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>Carsten Eider</span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'> </span></font></pre><pre style='margin-left:
.5in'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Dipl. Inf. (FH)</span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'> </span></font></pre><pre style='margin-left:
.5in'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Kompetenzzentrum für Innovative Informationssysteme</span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'> </span></font></pre><pre style='margin-left:
.5in'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'>c/o Fachhochschhule Bingen / University of applied sciences Bingen</span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'> </span></font></pre><pre style='margin-left:
.5in'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Berlinstraße 109</span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>55411 Bingen</span></font></pre><pre style='margin-left:
.5in'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'> </span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>Tel: +49 (0) 6721 / 409-179</span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>Fax: +49 (0) 6721 / 409-158</span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>email: <a href="mailto:eider@fh-bingen.de">eider@fh-bingen.de</a></span></font></pre><pre
style='margin-left:.5in'><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt'>Internet: iis.fh-bingen.de </span></font></pre></div>
</body>
</html>