<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Nicola,<br>
<br>
The idea of ogrlineref was follow:<br>
1. You have layer with some lines and some reper points with known
linear coordinates<br>
2. The reper points divide lines on equal parts (e.i. 1000 m) - this
is important that parts should be equal<br>
3. The result file will have special structure (required fields:
beg, end, scale, and some optional)<br>
4. During referencing ogrlineref make attribute query and get
needed part based on beg and end fields (which is rather fast), and
than calc point position inside this part.<br>
<br>
In your case, the simple way is to extract begin and end point of
your lines and make them reper points. After that all steps are
usual. <br>
<br>
There is no sense to move other fields into the parts file from your
original datasource. But you can use -lf option to store some value
and use it in future for join with your original data.<br>
<pre class="moz-signature" cols="72">Best regards,
Dmitry</pre>
<div class="moz-cite-prefix">07.06.2016 15:19, Nicola Baraldo
(ICONSULTING) пишет:<br>
</div>
<blockquote
cite="mid:VI1PR0201MB1790F62976FCB86846906BD3E75D0@VI1PR0201MB1790.eurprd02.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@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:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.StileMessaggioDiPostaElettronica18
{mso-style-type:personal;
font-family:"Tahoma",sans-serif;
color:windowtext;
font-weight:normal;
font-style:normal;}
span.StileMessaggioDiPostaElettronica19
{mso-style-type:personal-reply;
font-family:"Tahoma",sans-serif;
color:windowtext;
font-weight:normal;
font-style:normal;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif">Hi
guys,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif"
lang="EN-US">I am trying to split some routes into segments
of the same length (dynamic segmentation) using ogrlineref
command.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif"
lang="EN-US">My data is stored in a shapefile containing a
set of paths, for each path I know the length in meters.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif">I
have tried ogrlineref with –create, –get_coord and -
get_subline.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif"
lang="EN-US">For the first option I don’t have a reper
datasource to provide because I don’t have mile-stones, are
they really necessaries?<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif"
lang="EN-US">The second and third options give me the
following error for each path contained in the input
shapefile; with –get_coord I have tried both options “–m 0”
and “–m 1000”, with –get_subline I have tried “-mb 0 -me 1”
options.<o:p></o:p></span></p>
</div>
</blockquote>
<br>
<blockquote
cite="mid:VI1PR0201MB1790F62976FCB86846906BD3E75D0@VI1PR0201MB1790.eurprd02.prod.outlook.com"
type="cite">
<div class="WordSection1"><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif"
lang="EN-US">Can someone help me using this command? Is there
a better way to perform dynamic segmentation using GDAL?<o:p></o:p></span>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif"
lang="EN-US">Moreover my shapefile contains also a lot of
other fields, there is a way to keep these information also
in the output file?<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif"
lang="EN-US">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif"
lang="EN-US">Nicola<o:p></o:p></span></p>
</div>
<br>
<pre wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
</blockquote>
<br>
</body>
</html>