<html style="direction: ltr;">
<head>
<meta content="text/html; charset=windows-1255"
http-equiv="Content-Type">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="preferred-charset" text="#660000"
bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 10/01/2013 09:21, Lester Anderson
wrote:<br>
</div>
<blockquote
cite="mid:CAE3taFCB8LTrQS9GPbJ4GX=kL3dAFwr5-=+9k-tSctqueBubYg@mail.gmail.com"
type="cite"> Hello,<br>
<br>
Given say two digitised polylines, is it possible to create a new
polyline between the two target lines that would be the exact
median line? <br>
<br>
</blockquote>
<br>
If you store your vectors in a spatialite database (or PostGIS) then
it would be something like:<br>
# Create the target line vector<br>
CREATE TABLE median (pk_uid PRIMARY KEY AUTOINCREMENT);<br>
SELECT AddGeometryColumn("median","LINESTRING",<your
srid>,"geometry",2);<br>
# make the median and insert into table<br>
INSERT INTO median SELECT MakeLine(<br>
ST_LineInterpolatePoint(line1.geometry, 0.5),
ST_LineInterpolatePoint(line2, 0.5) )<br>
AS geometry<br>
FROM line1, line2<br>
<br>
Cheers,<br>
Micha<br>
<blockquote
cite="mid:CAE3taFCB8LTrQS9GPbJ4GX=kL3dAFwr5-=+9k-tSctqueBubYg@mail.gmail.com"
type="cite">Thanks<br>
<br>
Lester<br>
<br>
This mail was received via Mail-SeCure System.<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>
This mail was received via Mail-SeCure System.
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Micha Silver
GIS Consulting
052-3665918
<a class="moz-txt-link-freetext" href="http://www.surfaces.co.il">http://www.surfaces.co.il</a>
</pre>
</body>
</html>